GNU bug report logs -
#17351
Trunk emacs splats .emacs.desktop at startup
Previous Next
Reported by: Alan Mackenzie <acm <at> muc.de>
Date: Sat, 26 Apr 2014 18:09:02 UTC
Severity: important
Done: Juri Linkov <juri <at> jurta.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Morning, Juri.
On Sun, Apr 27, 2014 at 11:22:39AM +0300, Juri Linkov wrote:
> > This is horrible. I started a GUI emacs session, and there were errors
> > loading the desktop. I loaded the file .emacs.desktop into my emacs
> > session to see what the problem was. And lo and behold, that file had
> > already been overwritten by Emacs. :-(
> I lost my desktop too. :-( After starting a GUI session, loading the
> desktop failed to read \.\.\. characters. I see the only way how
> \.\.\. got into the desktop: some mode temporarily changed the buffer-local
> value of `print-length' that abbreviated a value while saving the desktop.
> I added precautions against this problem on the emacs-24 branch.
> But the remaining problem is that it overwrote the desktop with the
> broken file while leaving no backups of the previous desktop.
> > This is crazy. What's the point of overwriting .emacs.desktop at
> > startup? It's either going to be overwriting itself with a functionally
> > identical copy, or (as in the current case) its going to be losing
> > information needed for debugging.
> If after startup you paused for 30 seconds then auto-saving overwrote
> your desktop indeed. It seems we need to keep a backup of the desktop
> from the previous session when saving the desktop in a new session
> for the case when the desktop gets broken by the errors in it.
Yes, I think so. This needs to be mentioned in the manual, too. 30
seconds seems a very short time (by default) to trigger this saving of
the desktop. Especially when there's been no change since the previous
save.
--
Alan Mackenzie (Nuremberg, Germany).
This bug report was last modified 10 years and 290 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.