From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Francesco =?UTF-8?Q?Potort=C3=AC?= Newsgroups: gmane.emacs.bugs Subject: bug#25054: 25.1; bury-buffer makes bad choice of next buffer Date: Tue, 29 Nov 2016 21:44:32 +0100 Message-ID: References: <583C81FB.1080908@gmx.at> <583D37B6.5020108@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: blaine.gmane.org 1480452317 1319 195.159.176.226 (29 Nov 2016 20:45:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2016 20:45:17 +0000 (UTC) Cc: 25054@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 29 21:45:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cBpH6-00082j-UK for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Nov 2016 21:45:13 +0100 Original-Received: from localhost ([::1]:39213 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBpHA-0003kP-Ji for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Nov 2016 15:45:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBpH0-0003gZ-Le for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2016 15:45:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBpGw-0006hN-Px for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2016 15:45:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59327) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cBpGw-0006hF-MB for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2016 15:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cBpGv-0007kI-SL for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2016 15:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Nov 2016 20:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25054 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25054-submit@debbugs.gnu.org id=B25054.148045229529749 (code B ref 25054); Tue, 29 Nov 2016 20:45:01 +0000 Original-Received: (at 25054) by debbugs.gnu.org; 29 Nov 2016 20:44:55 +0000 Original-Received: from localhost ([127.0.0.1]:46493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cBpGo-0007jl-Vk for submit@debbugs.gnu.org; Tue, 29 Nov 2016 15:44:55 -0500 Original-Received: from blade3.isti.cnr.it ([194.119.192.19]:47611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cBpGl-0007jW-Ee for 25054@debbugs.gnu.org; Tue, 29 Nov 2016 15:44:53 -0500 Original-Received: from tucano.isti.cnr.it ([146.48.81.102]) by mx.isti.cnr.it (PMDF V6.5-x6 #1251) with ESMTPSA id <01Q7WKJTW3IY9QVI45@mx.isti.cnr.it> for 25054@debbugs.gnu.org; Tue, 29 Nov 2016 21:44:32 +0100 (MET) Original-Received: from pot by tucano.isti.cnr.it with local (Exim 4.88) (envelope-from ) id 1cBpGS-0002av-B1; Tue, 29 Nov 2016 21:44:32 +0100 In-reply-to: <583D37B6.5020108@gmx.at> X-INSM-ip-source: 146.48.81.102 Auth Done X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:126262 Archived-At: > > I wonder why the default was set to t. Do you know if there is a simple > > explanation? > >To return to a previous window configuration without having to restore >it explicitly. Consider simultaneous editing of two portions of the >same buffer after C-x 2. If one of the windows is temporarily used for >showing things like help, info or completions, quitting that window >should implicitly restore previous buffer and location. > >The thread on Bug#20861 contains an explanation why your buffer "c" (one >that was never shown before in the window you created via C-x 4 b) is >unveiled there by ‘bury-buffer’. Maybe Jürgen's solution could be >improved by switching to an already visible buffer (like "c") only after >all other possibilities have been exhausted. Patches welcome ;-) Ok, after setting switch-to-visible-buffer to nil it got better, but it is not how it was with Emacs 22 (okay, I have emerged from a long time tunnel). My main problem is with the *mail* buffer (I have mail-user-agent set to 'sendmail-user-agent). After I send mail, the *mail* buffer is buried, but after a while it pops up. I would expect that, being buried, it is the last choice as the other buffer. Apparently it is not. I don't know why, and I have not time to investigate now, sorry. But if you care to suggest some ideas, I may find the time sooner or later :)