From: Klaus Zeitler <kzeitler@lucent.com>
Cc: emacs-pretest-bug@gnu.org
Subject: Re: gnus-carpal-mode and mouse-autoselect-window
Date: Wed, 30 Mar 2005 13:01:23 +0200 [thread overview]
Message-ID: <q5gfyydz9bw.fsf@lucent.com> (raw)
In-Reply-To: <v9vf8h8yec.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Thu, 24 Feb 2005 22:02:19 +0100")
>>>>> "Reiner" == Reiner Steib <reinersteib+gmane@imap.cc> writes:
Reiner>
Reiner> Or did you mean to add (goto-char (point-min)) _after_ the `if'
Reiner> clause?
>>
>> I've added it right at the end of the save-excursion, i.e. the function
>> ends like this:
>> --- snip ---
>> (set-window-point (get-buffer-window (current-buffer))
>> (point-min)))
>> (goto-char (point-min))
>> ))))
>> --- snip ---
Reiner>
Reiner> Thus it is only done if the `set-window-point' statement is also
Reiner> executed. I would guess that the `set-window-point' statement
Reiner> should already do this, but maybe I'm missing something.
I finally found some time to debug this and would like to clarify one thing
before I set this problem aside.
It seems to me as if set-window-point and goto-char don't do the same thing.
set-window-point basically executes the following statements:
--- snip ---
if (w == XWINDOW (selected_window)
&& XBUFFER (w->buffer) == current_buffer)
Fgoto_char (pos);
else
set_marker_restricted (w->pointm, pos, w->buffer);
--- snip ---
when called from gnus-carpal-setup-buffer, XWINDOW(selected_window) is true,
but (XBUFFER (w->buffer) == current_buffer) is false. Thus
set_marker_restricted is called and not goto_char.
It's not clear to me what the function set_marker_restricted does and if
that does what is expected to be done when called in gnus-carpal-setup-buffer.
Klaus
--
------------------------------------------
| Klaus Zeitler Lucent Technologies |
| Email: kzeitler@lucent.com |
------------------------------------------
---
For perfect happiness, remember two things:
(1) Be content with what you've got.
(2) Be sure you've got plenty.
next prev parent reply other threads:[~2005-03-30 11:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-18 9:42 Klaus Zeitler
2005-02-21 15:09 ` Reiner Steib
2005-02-24 13:16 ` Klaus Zeitler
2005-02-24 21:02 ` Reiner Steib
2005-03-30 11:01 ` Klaus Zeitler [this message]
2005-04-04 6:18 ` Richard Stallman
2005-02-25 9:47 ` Kim F. Storm
2005-03-07 15:07 ` Klaus Zeitler
2005-03-07 19:03 ` Reiner Steib
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=q5gfyydz9bw.fsf@lucent.com \
--to=kzeitler@lucent.com \
--cc=emacs-pretest-bug@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).