From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: C-x 4 b RET does not restores wrong other window Date: 18 Apr 2002 15:18:52 -0600 Organization: IHS Engineering, Electronic Systems Development Sender: bug-gnu-emacs-admin@gnu.org Message-ID: References: <200204141650.SAA00872@paddington> <200204162016.g3GKGx524217@aztec.santafe.edu> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1019164864 11860 127.0.0.1 (18 Apr 2002 21:21:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 18 Apr 2002 21:21:04 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16yJKx-000354-00 for ; Thu, 18 Apr 2002 23:21:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16yJL8-0003lD-00; Thu, 18 Apr 2002 17:21:14 -0400 Original-Received: from chx400.switch.ch ([130.59.10.2]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16yJIy-0003ZI-00 for ; Thu, 18 Apr 2002 17:19:00 -0400 Original-Received: from mail.fu-berlin.de ([160.45.11.165]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 16yJIx-0005rj-00 for gnu-emacs-bug@moderators.isc.org; Thu, 18 Apr 2002 23:18:59 +0200 Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Thu, 18 Apr 2002 23:18:58 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Thu, 18 Apr 2002 23:18:57 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 32 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: fu-berlin.de 1019164737 4936576 170.207.51.80 (16 [82742]) X-Newsreader: Gnus v5.3/Emacs 19.34 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:779 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:779 rms@gnu.org (Richard Stallman) writes: >ture@lysator.liu.se (Ture Pålsson) writes: >> 1. Start emacs with emacs -q --no-site-file >> >> 2. Type C-x 2 C-x 2. This should give you three windows, all showing >> the *scratch* buffer, with the cursor in the topmost one. >> >> 3. Type C-h f c o n s RET. This gives you the help text for 'cons' in >> the middle window, and the text "Type C-x 4 b RET to restore other >> window. C-M-v to scroll the help." in the echo area. The cursor is >> still in the topmost window. >> >> 4. Type C-x 4 b RET. I expected this to switch the middle window from >> the *Help* buffer back to *scratch*, but instead it switched the >> bottom window from *scratch* to *Messages*. >> > When there are three windows, in general--there is no single command > that will restore the proper window to its previous state. I am not > sure what change to make to improve this situation. Do you want > to work on it? I thought that that winner-mode would handle this as requested, but doing `M-x winner-mode' first and doing `C-x ' instead of `C-x 4 b' doesn't work either: it only changes the window-buffer correspondence so that there are still 3 windows. Maybe winner-mode should advise the describe-* functions, or with-output-to-temp-buffer, to DTRT. (If so, print-help-return-message should have a clause to detect winner-mode, and display the winner-undo key binding instead of switch-to-buffer-other-window.) -- Kevin Rodgers