From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#16651: 24.3.50; desktop saves temporary buffers Date: Wed, 5 Feb 2014 14:07:27 -0800 (PST) Message-ID: <99777fab-ca72-4035-b77b-6b799fc44357@default> References: <87eh3ing77.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1391638102 18777 80.91.229.3 (5 Feb 2014 22:08:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Feb 2014 22:08:22 +0000 (UTC) Cc: 16651@debbugs.gnu.org To: Glenn Morris , Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 05 23:08:28 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WBAdt-0007eQ-Kf for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Feb 2014 23:08:25 +0100 Original-Received: from localhost ([::1]:33436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBAds-0003na-Ko for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Feb 2014 17:08:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBAdh-0003nR-B5 for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2014 17:08:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBAdW-0002gd-Ub for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2014 17:08:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBAdW-0002gY-RG for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2014 17:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WBAdW-0002yG-FY for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2014 17:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Feb 2014 22:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16651 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16651-submit@debbugs.gnu.org id=B16651.139163805611381 (code B ref 16651); Wed, 05 Feb 2014 22:08:02 +0000 Original-Received: (at 16651) by debbugs.gnu.org; 5 Feb 2014 22:07:36 +0000 Original-Received: from localhost ([127.0.0.1]:51329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBAd5-0002xT-Pq for submit@debbugs.gnu.org; Wed, 05 Feb 2014 17:07:36 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:23666) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBAd2-0002xK-He for 16651@debbugs.gnu.org; Wed, 05 Feb 2014 17:07:33 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s15M7ULe021372 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 5 Feb 2014 22:07:31 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s15M7S4Y015449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 5 Feb 2014 22:07:29 GMT Original-Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s15M7S2I000805; Wed, 5 Feb 2014 22:07:28 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84647 Archived-At: > > I see two possible solutions: skip saving all buffers with the > > leading space in the buffer name, >=20 > I cannot imagine any reason why such buffers should ever be > saved in a desktop. Many, perhaps most, things a user might want (or might do) cannot be imagined, by even the most imaginative of designers. "Should" in such a context, can be applied reasonably only to the _default_ behavior. A user doing something that involves _display_ of temporary buffers (which include buffers such as `*Pp Eval Output*', `*Messages* and `*scratch*', as well as _internal_ buffers, which are buffers whose names start with a space) might well want to save the current Emacs state, including the display of such a buffer. There is no sense in deciding the behavior in a black-and-white, one-size-fits-all way. One reasonable default behavior would be to exclude such buffers from saving, but users should be able to easily customize this. Another reasonable default behavior would be to exclude all such buffers that are not displayed. It is rare that such a buffer is displayed, and if that happens it is the user who has forced it. Emacs should not assume that a displayed buffer should not be saved (except by default). In most cases the state (e.g. contents) of a temporary buffer cannot be restored, in any case. But the display of such a buffer can be recorded and restored. A user might well position `*Messages*' or `*Buffer List*' specially and want that display to be restored, regardless of the current buffer contents. An internal buffer that is displayed is no different in this respect. But again, whatever the default behavior, let users override it easily.