unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 16651@debbugs.gnu.org
Subject: bug#16651: 24.3.50; desktop saves temporary buffers
Date: Thu, 06 Feb 2014 10:44:35 +0200	[thread overview]
Message-ID: <87d2j0ei5s.fsf@mail.jurta.org> (raw)
In-Reply-To: <vg61otnsnf.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 05 Feb 2014 16:42:12 -0500")

>> 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






  parent reply	other threads:[~2014-02-06  8:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-05  7:58 bug#16651: 24.3.50; desktop saves temporary buffers Juri Linkov
2014-02-05 17:05 ` Drew Adams
2014-02-05 21:42 ` Glenn Morris
2014-02-05 22:07   ` Drew Adams
2014-02-06  8:45     ` Juri Linkov
2014-02-06  8:44   ` Juri Linkov [this message]
2014-02-06  9:06     ` Andreas Schwab
2014-02-07  7:53       ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d2j0ei5s.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=16651@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).