From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: 23.1: Is delete-windows-on supposed to change the current buffer? Date: Fri, 31 Jul 2009 14:56:36 -0400 Message-ID: References: <30354.1248991980@schlepp.honig.net> <4A72B471.5030701@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249066616 13391 80.91.229.12 (31 Jul 2009 18:56:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jul 2009 18:56:56 +0000 (UTC) Cc: Jeffrey C Honig , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 31 20:56:49 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MWxHc-0002j6-Tj for ged-emacs-devel@m.gmane.org; Fri, 31 Jul 2009 20:56:49 +0200 Original-Received: from localhost ([127.0.0.1]:53718 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWxHc-00082K-80 for ged-emacs-devel@m.gmane.org; Fri, 31 Jul 2009 14:56:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWxHY-00081S-6R for emacs-devel@gnu.org; Fri, 31 Jul 2009 14:56:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWxHS-0007q8-QD for emacs-devel@gnu.org; Fri, 31 Jul 2009 14:56:42 -0400 Original-Received: from [199.232.76.173] (port=50473 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWxHS-0007q1-3p for emacs-devel@gnu.org; Fri, 31 Jul 2009 14:56:38 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:23982 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWxHR-0003pp-PK for emacs-devel@gnu.org; Fri, 31 Jul 2009 14:56:37 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsEFAGXbckpFpZgv/2dsb2JhbACBUtJChBgFhyI X-IronPort-AV: E=Sophos;i="4.43,303,1246852800"; d="scan'208";a="42637518" Original-Received: from 69-165-152-47.dsl.teksavvy.com (HELO pastel.home) ([69.165.152.47]) by ironport2-out.teksavvy.com with ESMTP; 31 Jul 2009 14:56:36 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 06FC8800B; Fri, 31 Jul 2009 14:56:36 -0400 (EDT) In-Reply-To: <4A72B471.5030701@gmx.at> (martin rudalics's message of "Fri, 31 Jul 2009 11:08:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:113476 Archived-At: > `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