emacs-pretest-bug
[Top][All Lists]
Advanced

[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: Tue, 05 Apr 2005 12:43:38 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> The problem is triggered in vhdl-template-field, it seems that
> read-from-minibuffer switches to the point position of the wrong window.

I don't know how to fix it, but I've traced it to the following problem:

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

after the M-: command, point in the second window is set back to the same
position as it is in the first window.

If we do

   M-: (save-window-excursion
         (let ((win (selected-window)))
           (select-window (next-window)) (select-window win))) RET

instead, it works correctly.
So it seems to be a problem in set-window-configuration, but the code there
is sufficiently tricky that I can't find the problem off hand.  And I won't
have time to delve into it any time soon.  Can someone else take a look
at it?


        Stefan




reply via email to

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