emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#17873: closed (24.4.50; `desktop-save')


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#17873: closed (24.4.50; `desktop-save')
Date: Thu, 03 Jul 2014 00:22:05 +0000

Your message dated Thu, 03 Jul 2014 02:47:06 +0300
with message-id <address@hidden>
and subject line Re: bug#17873: 24.4.50; `desktop-save'
has caused the debbugs.gnu.org bug report #17873,
regarding 24.4.50; `desktop-save'
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
17873: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17873
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.4.50; `desktop-save' Date: Sun, 29 Jun 2014 09:47:07 -0700 (PDT)
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 address@hidden
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''



--- End Message ---
--- Begin Message --- Subject: Re: bug#17873: 24.4.50; `desktop-save' Date: Thu, 03 Jul 2014 02:47:06 +0300 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu)
Version: 24.4

> Yes (assuming that is the behavior).  But it is slightly better to
> stick with the active voice for both parts of the last sentence:
>
>   ...compare... and if the desktop information has not changed since
>      ^^^^^^^
>   it was last saved then do not rewrite the file.
>                          ^^^^^^^^^^^^^^

Thanks, fixed.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]