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 21:41:18 +0200 Message-ID: <85hczijgdd.fsf@lola.goethe.zz> References: <85wt8eomzp.fsf@lola.goethe.zz> <85r6yml5s9.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1157744514 19283 80.91.229.2 (8 Sep 2006 19:41:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Sep 2006 19:41:54 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 08 21:41: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 1GLmEP-0001iu-Nl for ged-emacs-devel@m.gmane.org; Fri, 08 Sep 2006 21:41:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLmEP-000654-AU for ged-emacs-devel@m.gmane.org; Fri, 08 Sep 2006 15:41:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GLmEC-00064W-9z for emacs-devel@gnu.org; Fri, 08 Sep 2006 15:41:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GLmEB-00061z-Le for emacs-devel@gnu.org; Fri, 08 Sep 2006 15:41:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLmEB-00061i-Fn for emacs-devel@gnu.org; Fri, 08 Sep 2006 15:41:27 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GLmEq-0005Ic-Co for emacs-devel@gnu.org; Fri, 08 Sep 2006 15:42:08 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1GLmE2-0001jH-Pt; Fri, 08 Sep 2006 15:41:19 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 471031C40B5B; Fri, 8 Sep 2006 21:41:18 +0200 (CEST) Original-To: rms@gnu.org In-Reply-To: <85r6yml5s9.fsf@lola.goethe.zz> (David Kastrup's message of "Fri\, 08 Sep 2006 17\:47\:02 +0200") 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:59580 Archived-At: --=-=-= David Kastrup writes: > 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: I have added another change, since it looks like otherwise we might get a timer leak. I am checking in the following change then, all in all: --=-=-= Content-Type: text/x-patch Content-Disposition: inline *** desktop.el 25 Jun 2006 14:24:14 +0200 1.102 --- desktop.el 08 Sep 2006 21:36:39 +0200 *************** *** 862,869 **** ;; 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) ;; `desktop-create-buffer' puts buffers at end of the buffer list. --- 862,870 ---- ;; Desktop file found, process it. (let ((desktop-first-buffer nil) (desktop-buffer-ok-count 0) ! (desktop-buffer-fail-count 0) ! desktop-save) ! (desktop-lazy-abort) ;; Evaluate desktop buffer. (load (desktop-full-file-name) t t t) ;; `desktop-create-buffer' puts buffers at end of the buffer list. --=-=-= -- 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 --=-=-=--