From: Drew Adams <drew.adams@oracle.com>
To: 17873@debbugs.gnu.org
Subject: bug#17873: 24.4.50; `desktop-save'
Date: Sun, 29 Jun 2014 09:47:07 -0700 (PDT) [thread overview]
Message-ID: <c882ef46-0e45-4422-8639-162a0e7ac2a4@default> (raw)
1. The doc string says:
If AUTO-SAVE is non-nil, compare the saved contents to the one last saved,
and don't save the buffer if they are the same.
Saved contents of what? One what last saved? Saved contents cannot be
compared to "the one" anything.
I think you mean "compare the current desktop information to that in the
desktop file." If you are avoiding saving (because the contents are the
same) then you cannot speak of comparing the "saved contents" - the
contents have not yet been saved.
And what buffer? This is about saving a desktop in a desktop-file.
There is no notion of a buffer here - at the user level. The code puts
the desktop info into a buffer (which then might get saved), but that is
implementation-level.
What `desktop-save' does needs to be described at a user level (what,
not how, unless that is important to users). Just say that if the
desktop information has not changed since it was last saved then the
file is not rewritten.
2. I also have a question about the behavior: Why is writing the
file even when the content is unchanged the default behavior? Why the
need to specify AUTO-SAVE instead of an optional SAVE-EVEN-IF-NO-CHANGE?
Is this just for backward compatibility? (Before AUTO-SAVE was
introduced the behavior was to update the file even if the desktop
info was not changed.)
In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
of 2014-06-17 on ODIEONE
Bzr revision: 117359 monnier@iro.umontreal.ca-20140617193358-2t1nl1te9gc2mqrx
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/c/Devel/emacs/snapshot/trunk
--enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'
LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
-Ic:/Devel/emacs/include''
next reply other threads:[~2014-06-29 16:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-29 16:47 Drew Adams [this message]
2014-06-29 23:59 ` bug#17873: 24.4.50; `desktop-save' Juri Linkov
2014-06-30 2:10 ` Drew Adams
2014-07-02 23:47 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c882ef46-0e45-4422-8639-162a0e7ac2a4@default \
--to=drew.adams@oracle.com \
--cc=17873@debbugs.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.