[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: restoring emacs session fails for missing files]
From: |
Lars Hansen |
Subject: |
Re: address@hidden: restoring emacs session fails for missing files] |
Date: |
Thu, 18 May 2006 18:37:54 +0200 |
User-agent: |
Debian Thunderbird 1.0.2 (X11/20060423) |
Robert J. Chassell wrote:
>I tried this with one file. In *Messages*, I saw
>
> Desktop: File "/home/bob/foo" no longer exists.
> Desktop: 1 buffer restored, 1 failed to restore.
>
>My procedure was:
>
> 1. In Emacs, using `find-file', create a buffer named foo and
> insert some text in it.
> 2. In Emacs, save the buffer named foo to a file of the same name.
> 3. In Emacs, kill the buffer containing the file foo.
> 4. In Emacs, evaluate the expression: (desktop-save "~bob/")
> 5. In a shell, `rm foo'
> 6. In Emacs, evaluate the expression: (desktop-read "~bob/")
>
>
>
If you kill the buffer foo *before* calling desktop-save, I don't see
how it can be saved in the desktop file.
Are you shure that you killed the buffer foo before calling desktop-save?
I can reproduce your scenario if I swop steps 3 and 4. Actually I have
to do two more steps:
- Load the desktop library somehow since desktop-save isn't autoloaded.
- Create and save one more buffer (say bar) so desktop will try to
restore *two* buffers.
Anyway, what I see is the expected behaviour.
Re: address@hidden: restoring emacs session fails for missing files], Robert J. Chassell, 2006/05/18