From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: 23.1: Is delete-windows-on supposed to change the current buffer? Date: Fri, 31 Jul 2009 11:08:01 +0200 Message-ID: <4A72B471.5030701@gmx.at> References: <30354.1248991980@schlepp.honig.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249031321 4848 80.91.229.12 (31 Jul 2009 09:08:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jul 2009 09:08:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jeffrey C Honig Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 31 11:08:34 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 1MWo6L-0002Xa-VO for ged-emacs-devel@m.gmane.org; Fri, 31 Jul 2009 11:08:34 +0200 Original-Received: from localhost ([127.0.0.1]:33002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWo6L-0006U5-EJ for ged-emacs-devel@m.gmane.org; Fri, 31 Jul 2009 05:08:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWo63-0006Kn-J0 for emacs-devel@gnu.org; Fri, 31 Jul 2009 05:08:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWo5y-0006Gb-1G for emacs-devel@gnu.org; Fri, 31 Jul 2009 05:08:14 -0400 Original-Received: from [199.232.76.173] (port=40789 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWo5x-0006GA-PU for emacs-devel@gnu.org; Fri, 31 Jul 2009 05:08:09 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:36580) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MWo5w-0001og-SW for emacs-devel@gnu.org; Fri, 31 Jul 2009 05:08:09 -0400 Original-Received: (qmail invoked by alias); 31 Jul 2009 09:08:05 -0000 Original-Received: from 62-47-63-229.adsl.highway.telekom.at (EHLO [62.47.63.229]) [62.47.63.229] by mail.gmx.net (mp021) with SMTP; 31 Jul 2009 11:08:05 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/EAwZVmKrEI0qnhnoAjw1aMrUSzC4ysbSqtAKcIX ysvutnyBR+cX1M User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <30354.1248991980@schlepp.honig.net> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.67 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:113448 Archived-At: > I'm debugging a problem with mh-e with 23.1. In particular > (mh-yank-cur-msg) in lisp/mh-e/mh-letter.el. > > In 23.1, unlike prior releases, this sequence changes the current > buffer: > > (if mh-delete-yanked-msg-window-flag > (delete-windows-on mh-show-buffer))) > > Is this change in behavior expected so that we should fix mh-e? Or is > this a bug in emacs 23.1 that I should report? What is your window configuration like before and after that form gets executed? `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. A similar behavior applies when the frame can be deleted or there's another window on the frame. Can you exclude that there was some change in the `mh-' part handling this? martin