From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: improving function "mode-line-unbury-buffer" in bindings.el Date: Thu, 18 Jul 2002 08:56:05 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200207181456.g6IEu5W25120@aztec.santafe.edu> References: <20020712.103500.40922275.tune@bg.wakwak.com> <200207141522.g6EFMRW20484@aztec.santafe.edu> <20020715.021323.100571771.tune@bg.wakwak.com> <200207161329.g6GDTOb22043@aztec.santafe.edu> <5xr8i3emlx.fsf@kfs2.cua.dk> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1027004427 17749 127.0.0.1 (18 Jul 2002 15:00:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 18 Jul 2002 15:00:27 +0000 (UTC) Cc: tune@bg.wakwak.com, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17VClW-0004cA-00 for ; Thu, 18 Jul 2002 17:00:26 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17VCxS-00086m-00 for ; Thu, 18 Jul 2002 17:12:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17VCkS-00078h-00; Thu, 18 Jul 2002 10:59:20 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17VChN-0006vF-00; Thu, 18 Jul 2002 10:56:09 -0400 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.11.6) with ESMTP id g6IEuAB00051; Thu, 18 Jul 2002 08:56:10 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g6IEu5W25120; Thu, 18 Jul 2002 08:56:05 -0600 (MDT) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: storm@cua.dk In-Reply-To: <5xr8i3emlx.fsf@kfs2.cua.dk> (storm@cua.dk) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5859 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5859 Here is what is CLAIMED to happen with bury-buffer: When you use bury-buffer to bury the buffer in the selected window, the NEXT buffer to be shown in the selected window is chosen with a preference to show a buffer which has previously been shown in a window. What I see in the code of Fother_buffer is that it prefers the buffers that have been shown in this frame before. However, burying a buffer removes it from the frame's buffer list (this is a recent bug fix). So as you cycle in this way, the frame's buffer list will empty out and you will indeed get all the non-hidden buffers. - doing bury-buffer once will bury xyz and show *scratch*, and - doing bury-buffer again will bury *scratch* and show xyz. I get *Messages* the third time now.