[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 23.1: Is delete-windows-on supposed to change the current buffer?
From: |
Stefan Monnier |
Subject: |
Re: 23.1: Is delete-windows-on supposed to change the current buffer? |
Date: |
Fri, 31 Jul 2009 14:56:36 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
> `delete-windows-on' deletes all windows showing `mh-show-buffer'. If,
> for example, `mh-show-buffer' is shown in the selected window and that
> window is the only window on its frame, and that frame is the only
> frame, another buffer is shown in that window and becomes the current
> buffer. window_loop handles this as
> if (EQ (window, selected_window))
> Fset_buffer (w->buffer);
> unchanged since the past release.
My guess is that the switch from Fdisplay_buffer to the Elisp version of
code, causes the windows to be created slightly differently, and this in
turn causes delete-windows-on in this particular case to cycle through
the windows in a different order.
In any case, the answer is that delete-windows-on should be expected to
change the current-buffer, so if you want it to stay unchanged, you need
save-excursion.
Stefan