unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: 3833@emacsbugs.donarmstrong.com
Subject: bug#3833: 23.0.96; Default for desktop-buffers-not-to-save omits files
Date: Sun, 12 Jul 2009 23:35:01 +0300	[thread overview]
Message-ID: <87ocrp64l6.fsf@mail.jurta.org> (raw)
In-Reply-To: <87eislivw4.fsf@stupidchicken.com> (Chong Yidong's message of "Sun, 12 Jul 2009 14:44:27 -0400")

>> I think that variable's default should be nil.  I think it is up to
>> the user to decide that she doesn't want to record some of the
>> buffers/files.  It is no business of desktop.el to decide for the
>> user.  Especially since there is no way of telling desktop.el to
>> override the value of desktop-buffers-not-to-save for some specific
>> buffer, short of renaming the buffer.
>
> I agree that .log should be removed.  However, the two other items seem
> to make sense: Gnus and FTP sessions, because desktop.el can't recreate
> those.  If you'd like to remove .log, please go ahead and do so on the
> trunk.

I find the value ".log" useful because it helps not to load usually
large log files, but I agree that this should be a personal preference
because it is natural to expect that desktop.el will restore all files
it can recreate.

As for Gnus and FTP sessions, we could try to ignore them using
`desktop-modes-not-to-save' or `desktop-buffer-mode-handlers'
if they have a non-default mode.

>> Similarly with desktop-files-not-to-save: its default should be nil,
>> IMO.
>
> These are remote (Tramp/ange-ftp) files.  Again, I think the rationale
> is that desktop.el can't recreate them properly.

recentf.el uses two predicates `file-remote-p' and `file-readable-p' to
decide which files should be kept.  Maybe desktop.el should do the same?

-- 
Juri Linkov
http://www.jurta.org/emacs/





  parent reply	other threads:[~2009-07-12 20:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-12 18:44 bug#3833: 23.0.96; Default for desktop-buffers-not-to-save omits files Chong Yidong
2009-07-12 19:46 ` Eli Zaretskii
2009-07-12 20:21   ` Reiner Steib
2009-07-13  2:06     ` Chong Yidong
2009-07-13  2:47       ` Eli Zaretskii
2009-07-13  4:30         ` Chong Yidong
2009-07-13 18:48           ` Eli Zaretskii
2009-07-16 18:24             ` Eli Zaretskii
2009-07-14 20:03   ` Stefan Monnier
2009-07-18 12:00     ` Eli Zaretskii
2009-07-12 20:35 ` Juri Linkov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-07-12 18:06 Eli Zaretskii

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=87ocrp64l6.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=3833@emacsbugs.donarmstrong.com \
    --cc=cyd@stupidchicken.com \
    /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).