emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with desktop.el


From: David Kastrup
Subject: Re: Problem with desktop.el
Date: Fri, 08 Sep 2006 17:47:02 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Richard Stallman <address@hidden> 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:

*** 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]