[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: Sun, 17 Apr 2005 17:41:16 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> I think I agree now that the patch you installed is a bug fix
> and correct.

Good, thanks.

> The problem that point moves after
>   (save-window-excursion (select-window (next-window)))
> That's the problem I saw reported.

No, the problem is not that point is moved, but that the window's cursor
is moved.  The two are clearly related, of course.

> I'm saying that changing it to
>   (save-excursion (save-window-excursion (select-window (next-window))))
> ought to solve the problem too, and the approach is less risky.

That's true.  But what about:

    (save-window-excursion (forward-char 1) (select-window (next-window)))

I'd expect this to move the window's cursor by one char.  With the current
behavior, the cursor is moved to the same spot as the one on the other
window, which is not what we want, and wrapping it with save-excursion is
not what we want either.


reply via email to

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