emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: address@hidden: desktop package fails restoring stuff]


From: Juri Linkov
Subject: Re: address@hidden: desktop package fails restoring stuff]
Date: Tue, 06 Apr 2004 11:52:47 +0300
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

BTW, there is also a related problem with reading Info files from the
desktop file.  If the Info file saved in the desktop file doesn't exist
anymore, then the whole desktop loading fails.  The following patch
prints error messages and continues reading the desktop file.

*** emacs/lisp/desktop.el       29 Feb 2004 23:13:02 -0000      1.67
--- emacs/lisp/desktop.el       6 Apr 2004 08:33:03 -0000
***************
*** 819,827 ****
              (second (nth 1 desktop-buffer-misc)))
        (when (and first second)
          (require 'info)
          (with-no-warnings
!          (Info-find-node first second))
!         (current-buffer))))))
  
  ;; 
----------------------------------------------------------------------------
  (eval-when-compile (defvar rmail-buffer)) ; Just to silence the byte compiler.
--- 819,832 ----
              (second (nth 1 desktop-buffer-misc)))
          (when (and first second)
            (require 'info)
+             (condition-case err
                  (with-no-warnings
!                  (Info-find-node first second)
!                  (current-buffer))
!               (error
!                (message "Desktop loading error: %S" err)
!                (sit-for 1)
!                'ignored)))))))
  
  ;; 
----------------------------------------------------------------------------
  (eval-when-compile (defvar rmail-buffer)) ; Just to silence the byte compiler.

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

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