From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Hansen Newsgroups: gmane.emacs.devel Subject: Re: [tutufan@gmail.com: restoring emacs session fails for missing files] Date: Thu, 18 May 2006 18:37:54 +0200 Message-ID: <446CA2E2.3090701@soem.dk> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1147970308 19072 80.91.229.2 (18 May 2006 16:38:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 May 2006 16:38:28 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 18 18:38:26 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FglVz-0003Pw-1e for ged-emacs-devel@m.gmane.org; Thu, 18 May 2006 18:38:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FglVy-0001sB-5T for ged-emacs-devel@m.gmane.org; Thu, 18 May 2006 12:38:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FglVl-0001s3-K5 for emacs-devel@gnu.org; Thu, 18 May 2006 12:38:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FglVj-0001rr-Qz for emacs-devel@gnu.org; Thu, 18 May 2006 12:38:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FglVj-0001ro-L3 for emacs-devel@gnu.org; Thu, 18 May 2006 12:38:03 -0400 Original-Received: from [212.99.225.245] (helo=odin.broadcom.dk) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FglYp-0002xC-CA; Thu, 18 May 2006 12:41:15 -0400 Original-Received: from pppoe3-ves.broadcom.dk ([212.99.255.42] helo=[10.17.0.131]) by odin.broadcom.dk with esmtp (Exim 4.24; FreeBSD) id 1FglUf-0003bL-4r; Thu, 18 May 2006 18:36:57 +0200 User-Agent: Debian Thunderbird 1.0.2 (X11/20060423) X-Accept-Language: en-us, en Original-To: bob@rattlesnake.com In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:54703 Archived-At: 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.