From: Stefan Monnier <monnier@iro.umontreal.ca>
To: martin rudalics <rudalics@gmx.at>
Cc: Jeffrey C Honig <jch@honig.net>, emacs-devel@gnu.org
Subject: Re: 23.1: Is delete-windows-on supposed to change the current buffer?
Date: Fri, 31 Jul 2009 14:56:36 -0400 [thread overview]
Message-ID: <jwvtz0sr8dn.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <4A72B471.5030701@gmx.at> (martin rudalics's message of "Fri, 31 Jul 2009 11:08:01 +0200")
> `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
next prev parent reply other threads:[~2009-07-31 18:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-30 22:13 23.1: Is delete-windows-on supposed to change the current buffer? Jeffrey C Honig
2009-07-31 9:08 ` martin rudalics
2009-07-31 15:49 ` Jeffrey C Honig
2009-07-31 16:11 ` martin rudalics
2009-07-31 17:11 ` Bill Wohler
2009-07-31 18:56 ` Stefan Monnier [this message]
2009-07-31 20:17 ` Bill Wohler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvtz0sr8dn.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=jch@honig.net \
--cc=rudalics@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.