GNU bug report logs - #19059
[FIX INCLUDED] desktop-read re-enables desktop autosave when it shouldn't

Previous Next

Package: emacs;

Reported by: Kelly Dean <kelly <at> prtime.org>

Date: Sat, 15 Nov 2014 08:05:03 UTC

Severity: normal

Done: Kelly Dean <kelly <at> prtime.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Kelly Dean <kelly <at> prtime.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#19059: closed ([FIX INCLUDED] desktop-read re-enables desktop
 autosave when it shouldn't)
Date: Wed, 18 Feb 2015 00:43:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 18 Feb 2015 00:41:30 +0000
with message-id <jjyVFFRGuxNm4stpCBjNJHJdQWRw9XabEI89njcIQmK <at> local>
and subject line Re: desktop-read re-enables desktop autosave when it shouldn't
has caused the debbugs.gnu.org bug report #19059,
regarding [FIX INCLUDED] desktop-read re-enables desktop autosave when it shouldn't
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
19059: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19059
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Kelly Dean <kelly <at> prtime.org>
To: bug-gnu-emacs <at> gnu.org
Subject: [FIX INCLUDED] desktop-read re-enables desktop autosave when it
 shouldn't
Date: Sat, 15 Nov 2014 06:57:15 +0000
With emacs 24.4, run emacs -Q, then do
(desktop-save-mode 1)
Notice that window-configuration-change-hook now (correctly) contains desktop-auto-save-set-timer, since desktop-save-mode defaults to enabling desktop autosave. Now do
(desktop-auto-save-disable)
Notice that desktop-auto-save-set-timer is (correctly) removed from the hook. Now do
(desktop-save "~/.emacs.d")
(desktop-read)
Notice that desktop-auto-save-set-timer is added back to the hook, which is a bug since you didn't ask for desktop autosave to be re-enabled.

This bug wasn't in 24.3, because 24.3 didn't have the desktop autosave feature.

The bug is in desktop.el of the 24.4 release, line 1191, which unconditionally calls desktop-auto-save-enable. The fix is to change that to conditionally call desktop-auto-save-enable, if desktop autosave was enabled (indicated by presence of desktop-auto-save-set-timer in the hook) prior to being disabled by the call to desktop-auto-save-disable on line 1138. Patch excluded, per request.


[Message part 3 (message/rfc822, inline)]
From: Kelly Dean <kelly <at> prtime.org>
To: 19059-done <at> debbugs.gnu.org
Subject: Re: desktop-read re-enables desktop autosave when it shouldn't
Date: Wed, 18 Feb 2015 00:41:30 +0000
Fixed in trunk.


This bug report was last modified 10 years and 152 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.