From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#16651: 24.3.50; desktop saves temporary buffers Date: Thu, 06 Feb 2014 10:44:35 +0200 Organization: JURTA Message-ID: <87d2j0ei5s.fsf@mail.jurta.org> References: <87eh3ing77.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391677338 6923 80.91.229.3 (6 Feb 2014 09:02:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Feb 2014 09:02:18 +0000 (UTC) Cc: 16651@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 06 10:02:21 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 1WBKqi-0000mP-7R for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Feb 2014 10:02:20 +0100 Original-Received: from localhost ([::1]:35270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBKqh-0002ce-TR for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Feb 2014 04:02:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBKqY-0002cT-RB for bug-gnu-emacs@gnu.org; Thu, 06 Feb 2014 04:02:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBKqQ-0003xW-PN for bug-gnu-emacs@gnu.org; Thu, 06 Feb 2014 04:02:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBKqQ-0003xQ-Mb for bug-gnu-emacs@gnu.org; Thu, 06 Feb 2014 04:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WBKqP-0002oW-Vj for bug-gnu-emacs@gnu.org; Thu, 06 Feb 2014 04:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Feb 2014 09:02:01 +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.139167732010803 (code B ref 16651); Thu, 06 Feb 2014 09:02:01 +0000 Original-Received: (at 16651) by debbugs.gnu.org; 6 Feb 2014 09:02:00 +0000 Original-Received: from localhost ([127.0.0.1]:52075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBKqO-0002oB-74 for submit@debbugs.gnu.org; Thu, 06 Feb 2014 04:02:00 -0500 Original-Received: from [69.163.184.122] (port=47297 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBKqM-0002o3-JQ for 16651@debbugs.gnu.org; Thu, 06 Feb 2014 04:01:59 -0500 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.184.122]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 8167530342DB05; Thu, 6 Feb 2014 01:01:56 -0800 (PST) In-Reply-To: (Glenn Morris's message of "Wed, 05 Feb 2014 16:42:12 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) 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:84720 Archived-At: >> I see two possible solutions: skip saving all buffers with the >> leading space in the buffer name, > > I cannot imagine any reason why such buffers should ever be saved in a > desktop. Such buffers can be skipped by this patch. I hope this doesn't contradict the arguments made in bug#3833. === modified file 'lisp/desktop.el' --- lisp/desktop.el 2014-01-31 06:42:29 +0000 +++ lisp/desktop.el 2014-02-06 08:38:32 +0000 @@ -350,11 +353,11 @@ (defcustom desktop-locals-to-save :type '(repeat symbol) :group 'desktop) -(defcustom desktop-buffers-not-to-save nil +(defcustom desktop-buffers-not-to-save "^ " "Regexp identifying buffers that are to be excluded from saving." :type '(choice (const :tag "None" nil) regexp) - :version "23.2" ; set to nil + :version "24.4" ; skip invisible temporary buffers :group 'desktop) ;; Skip tramp and ange-ftp files