From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Problem with desktop.el Date: Fri, 08 Sep 2006 17:47:02 +0200 Message-ID: <85r6yml5s9.fsf@lola.goethe.zz> References: <85wt8eomzp.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1157730591 1764 80.91.229.2 (8 Sep 2006 15:49:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Sep 2006 15:49:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 08 17:49:50 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 1GLibt-0004wz-Vx for ged-emacs-devel@m.gmane.org; Fri, 08 Sep 2006 17:49:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLibt-0005Kp-FX for ged-emacs-devel@m.gmane.org; Fri, 08 Sep 2006 11:49:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GLiag-0003gt-FD for emacs-devel@gnu.org; Fri, 08 Sep 2006 11:48:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GLiaf-0003eY-EK for emacs-devel@gnu.org; Fri, 08 Sep 2006 11:48:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLiaf-0003e3-7b for emacs-devel@gnu.org; Fri, 08 Sep 2006 11:48:25 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GLibH-0008LK-Oo for emacs-devel@gnu.org; Fri, 08 Sep 2006 11:49:03 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1GLiaW-0001t0-Nx; Fri, 08 Sep 2006 11:48:17 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id AE1FF1C40B5B; Fri, 8 Sep 2006 17:47:02 +0200 (CEST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Fri\, 08 Sep 2006 11\:12\:34 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:59571 Archived-At: --=-=-= Richard Stallman writes: > There are two problems here, I think. One is that a desktop was saved > while loading it was still in progress. > > It should be easy to prevent with an explicit test: don't save the > desktop when in the middle of reading one. Could you write the code > to do that? I think maybe the following would do the trick: --=-=-= Content-Type: text/x-patch Content-Disposition: inline *** desktop.el 25 Jun 2006 14:24:14 +0200 1.102 --- desktop.el 08 Sep 2006 17:36:48 +0200 *************** *** 862,868 **** ;; Desktop file found, process it. (let ((desktop-first-buffer nil) (desktop-buffer-ok-count 0) ! (desktop-buffer-fail-count 0)) (setq desktop-lazy-timer nil) ;; Evaluate desktop buffer. (load (desktop-full-file-name) t t t) --- 862,869 ---- ;; Desktop file found, process it. (let ((desktop-first-buffer nil) (desktop-buffer-ok-count 0) ! (desktop-buffer-fail-count 0) ! desktop-save) (setq desktop-lazy-timer nil) ;; Evaluate desktop buffer. (load (desktop-full-file-name) t t t) --=-=-= -- David Kastrup, Kriemhildstr. 15, 44793 Bochum --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--