[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Point of wrong window used in read-from-minibuffer?

From: Stefan Monnier
Subject: Re: Point of wrong window used in read-from-minibuffer?
Date: Wed, 13 Apr 2005 13:50:32 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> I don't think that comment is true.  Since that window was selected,
> and becomes selected again, it's point value is not used.
> Temporarily, during the body of the save-window-excursion, it is not
> selected and its point value is used; but when the
> save-window-excursion exits, once again it is selected, so its point
> value once again does not matter.  So it can't be correct to day
> that its point value gets "moved".

If you try my example again:

      % emacs -Q
      [ type in some random text]
      C-x 2
      [ move point elsewhere ]
      M-: (save-window-excursion (select-window (next-window))) RET

you'll see that at the end the second window's point is being set to the
value of the first window's point.  I.e. the window's point is being moved,
even though the body of the save-window-excursion has no point motion to
speak of.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]