unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Alan Mackenzie <acm@muc.de>
Cc: 17351@debbugs.gnu.org
Subject: bug#17351: Trunk emacs splats .emacs.desktop at startup
Date: Sun, 27 Apr 2014 12:52:01 +0300	[thread overview]
Message-ID: <87fvkzf6bi.fsf@mail.jurta.org> (raw)
In-Reply-To: <20140427091555.GA3091@acm.acm> (Alan Mackenzie's message of "Sun, 27 Apr 2014 09:15:55 +0000")

>> 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.

30 seconds of idle time before desktop auto-saving is the default value
inherited from `auto-save-timeout' used for file auto-saving.  But they
don't need to be the same.  In ~/.emacs I customized it to 60 seconds,
and maybe this default value would be better for everyone.

> Especially when there's been no change since the previous save.

Actually auto-saving already checks for changes and doesn't write the
identical desktop.  In practice this happens rarely, only when the session
left inactive, because any minuscule change in window configuration
(such as displaying a buffer with error messages) causes the desktop file
to be overwritten with new contents.





  reply	other threads:[~2014-04-27  9:52 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-26 18:04 bug#17351: Trunk emacs splats .emacs.desktop at startup Alan Mackenzie
2014-04-27  8:22 ` Juri Linkov
2014-04-27  9:15   ` Alan Mackenzie
2014-04-27  9:52     ` Juri Linkov [this message]
2014-04-27 14:31       ` Stefan Monnier
2014-04-27 22:13         ` Stefan Monnier
2014-06-22  7:05           ` Glenn Morris
2014-06-22 23:01             ` Juri Linkov
2014-06-23  0:05               ` Glenn Morris
2014-06-23 22:57                 ` Juri Linkov
2014-06-24 18:30                   ` Glenn Morris
2014-06-24 23:23                     ` Juri Linkov
2014-06-26 19:31                       ` Glenn Morris
2014-06-26 23:44                         ` Juri Linkov
2014-08-11  1:18                           ` Glenn Morris
2014-08-12  6:52                             ` Juri Linkov
2014-07-02 23:52                       ` Juri Linkov
2014-07-03  2:42                         ` Glenn Morris
2014-07-03 23:35                           ` 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

  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=87fvkzf6bi.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=17351@debbugs.gnu.org \
    --cc=acm@muc.de \
    /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).