From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.bugs Subject: View-quit in *Help* restores wrong window when display-buffer-reuse-frames is t Date: Sat, 13 Oct 2007 18:28:48 +0100 Message-ID: <70FBB428-1B37-4C3B-A60D-E3A7139E384C@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1192314865 5348 80.91.229.12 (13 Oct 2007 22:34:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2007 22:34:25 +0000 (UTC) Cc: dashteacup@insightbb.com To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 14 00:34:14 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IgpYj-0003ii-WC for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Oct 2007 00:34:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgpYd-0007LP-4q for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Oct 2007 18:34:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IgpYb-0007KD-GU for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2007 18:34:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IgpYa-0007JV-Vf for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2007 18:34:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgpYa-0007JJ-Qe for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2007 18:34:04 -0400 Original-Received: from mu-out-0910.google.com ([209.85.134.190]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IgpYa-0002jq-7V for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2007 18:34:04 -0400 Original-Received: by mu-out-0910.google.com with SMTP id g7so1063471muf for ; Sat, 13 Oct 2007 15:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:references:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; bh=U3NmGGo/QmQMwNrlku9lvllw1qqp8bDIxKFwMgtKIxo=; b=es6LfNG16MeSsbNYoTXW8AWB5SNSBN4aOZgY26+Hu7ZwlilTnzwk8LxFapVaK0PoohvOK+HMCHnyMRQboNqqQDRUxJO/nGFFNBztzXCMd5i2gA6/iYJtJFgHleVpNhO7FP177Z4TVMRspVQMDV3YhUDT8efet1rQRr4TWUQ26Ag= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:references:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=MtWp5n2SBranX4zmsszbdvXHkzK9E8r7hUabV0R3meFkkIbQRiVfy1fvGE/+hrF2rcasmtK47q05nUepQTHqVM1CGZzerzocVYCYMKGRi9MwPoklxc9+a+X0OHNuwLpxE+46rbZOVNzFbM5Si3j1aHI3/WQeQu3MQmUCCNMi83A= Original-Received: by 10.86.54.3 with SMTP id c3mr3607293fga.1192314841905; Sat, 13 Oct 2007 15:34:01 -0700 (PDT) Original-Received: from ?192.168.0.1? ( [88.161.41.210]) by mx.google.com with ESMTPS id o11sm4718062fkf.2007.10.13.15.34.00 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 13 Oct 2007 15:34:01 -0700 (PDT) X-Mailer: Apple Mail (2.752.3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16744 Archived-At: I received the bug report below from an Aquamacs user. A little investigation traced this to the setting of `display-buffer- reuse-frames', which, when t, causes "View-quit" to do the wrong thing when restoring the previous window configuration. In this case, the second window in the frame gets deleted, but the first window switches to a different buffer. The following should reproduce it in a 22 branch CVS Emacs (with unrelated patches - I tried Aquamacs with -Q) and also in a 23 one (I tried Adrian Robert's Cocoa port): (progn (setq display-buffer-reuse-frames t) (describe-mode) (other-window 1) (View-quit) ) Begin forwarded message: > From: Paul Curry > Date: 10 October 2007 05:25:58 BDT > To: aquamacs-bugs@aquamacs.org > Subject: [Aquamacs-bugs] View-quit in *Help* restores wrong window > > Enter your bug report here. > > When I quit from a *Help* buffer (key q, command View-quit) in > Aquamacs > I do not get the correct (or at least expected) behavior. In other > Emacsen, if you have two buffers open in a frame -- one of which is a > *Help* buffer -- and you quit the help buffer, then the frame will > fill > out to only include the other visible buffer. In Aquamacs, however, > View-quit fills the frame with a seemingly random unrelated buffer. > > For testing purposes I tried the following sequence of commands in > both Aquamacs and Carbon Emacs: > Start Emacs > describe-mode > other-window > View-quit > --- > In Carbon Emacs I return to the *scratch* buffer, as expected; in > Aquamacs I change to the *Messages* buffer. This is reproducible > every time. > > Curious, I checked out the source code for View-quit in both Emacsen > -- they were the same. view-mode-exit (called from View-quit) was > also the same. The only difference that I can notice is the value of > view-return-to-alist. In Carbon Emacs it is: > ((# # . t)) > and in Aqumacs it's: > ((# # . quit-window)) > > My configuration is: > Aquamacs 1.2 > OS X 10.4 > not using one-buffer-one-frame-mode > opening the *Help* buffer in the current frame > (http://www.emacswiki.org/cgi-bin/wiki/AquamacsFAQ#toc17) > hundreds of lines of elisp configuration > (I hope this isn't the problem) > > In GNU Emacs 22.1.50.1 (i386-apple-darwin8.10.1, Carbon Version 1.6.0) > of 2007-10-01 on plume.sr.unh.edu - Aquamacs Distribution 1.2a > Windowing system distributor `Apple Inc.', version 10.4.10 > configured using `configure '--without-x' '--prefix=/usr/local'' > > Important settings: > value of $LC_ALL: nil > value of $LC_COLLATE: nil > value of $LC_CTYPE: nil > value of $LC_MESSAGES: nil > value of $LC_MONETARY: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: nil > value of $LANG: nil > locale-coding-system: iso-8859-1 > default-enable-multibyte-characters: t > > Major mode: Text > > Minor modes in effect: > flyspell-mode: t > auto-insert-mode: t > smart-frame-positioning-mode: t > aquamacs-styles-mode: t > recentf-mode: t > encoded-kbd-mode: t > show-paren-mode: t > delete-selection-mode: t > pc-selection-mode: t > cua-mode: t > auto-image-file-mode: t > tooltip-mode: t > mac-input-method-mode: t > mouse-wheel-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > unify-8859-on-encoding-mode: t > utf-translate-cjk-mode: t > auto-compression-mode: t > column-number-mode: t > line-number-mode: t > transient-mark-mode: t > > Recent input: > C-x C-g > C-x C-f C-n C-n C-n C-n > C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p M-b > M-b M-< M-< M-< M-< M-> M-> M-< M-x C-g M-x M-g > C-g C-g > > > Recent messages: > Public License, version 3 or later. Copyright (C) 2007 Free Software > Foundation, > Inc. (C) 2007 D. Reitter. No Warranty. > Loading emacsbug...done > Sending... > Loading mailclient...done > Loading browse-url...done > Sending...done > Loading dired...done > Mark set [7 times] > Quit [3 times] >