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

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

bug#32790: 27.0.50; point jumps unexpectedly after delete-window


From: martin rudalics
Subject: bug#32790: 27.0.50; point jumps unexpectedly after delete-window
Date: Fri, 30 Nov 2018 09:22:14 +0100

> But here it's a complete patch:

Thanks.

> (defcustom switch-to-buffer-obey-display-actions nil
>   "If non-nil, have `switch-to-buffer' run `pop-to-buffer-same-window'.

Maybe

"If non-nil, `switch-to-buffer' runs `pop-to-buffer-same-window' instead.

is better.

>      ((window-minibuffer-p)
>       (if force-same-window
>           (user-error "Cannot switch buffers in minibuffer window")
>         (pop-to-buffer buffer norecord)))
>      ((eq (window-dedicated-p) t)
>       (if force-same-window
>           (user-error "Cannot switch buffers in a dedicated window")
>         (pop-to-buffer buffer norecord)))

These ones stupefied me when I tried to study your patch yesterday.
When 'switch-to-buffer-obey-display-actions' is non-nil you do not
reset 'force-same-window' so you can get an error when this is t and
you're either in the minibuffer or the window is strongly dedicated.
Right?

martin





reply via email to

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