unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Subject: Problem with desktop.el
Date: Fri, 08 Sep 2006 09:07:06 +0200	[thread overview]
Message-ID: <85wt8eomzp.fsf@lola.goethe.zz> (raw)


Hi,

I recently had a desktop restore fail, and the reason was that instead
of the version number 206, in a lot of places instead the character
\316 had been placed.

>From scanning over the source, it would seem that this happens when
desktop restoration is not complete when one saves the desktop again.

What I imagine happened is that I accidentally started Emacs, then
pressed the "Close Window" button on the Emacs frame before loading
the desktop completed, and that Emacs then saved the incompletely
loaded desktop including inserting the version number with "insert"
while it was set to a number.

It might have happened at a read-input call asking for a "y or n"
confirmation about whether it was safe to load a particular buffer's
local variable section.

There are two problems here, I think.  One is that a desktop was saved
while loading it was still in progress.  The other is that the setting
of the desktop-file-version variable is sometimes an integer,
sometimes a string.  Maybe the latter is not a problem if desktop
saving does not happen while the load is still in progress.  But the
resulting unreadable desktop.el does not seem like a reasonable
effect.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

             reply	other threads:[~2006-09-08  7:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-08  7:07 David Kastrup [this message]
2006-09-08 15:12 ` Problem with desktop.el Richard Stallman
2006-09-08 15:47   ` David Kastrup
2006-09-08 19:41     ` David Kastrup
2006-09-08 20:29     ` Richard Stallman
2006-09-08 20:45       ` David Kastrup
2006-09-09  7:34         ` Lars Hansen

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=85wt8eomzp.fsf@lola.goethe.zz \
    --to=dak@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 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).