emacs-devel
[Top][All Lists]
Advanced

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

Patch to desktop.el


From: Lars Hansen
Subject: Patch to desktop.el
Date: Thu, 28 Aug 2003 11:28:58 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1

Please install the patch below.

Although I am working on some more minor changes to desktop.el (including 
documentation), I think this patch should installed now. It fixes a bug that 
might be quite annoying.

ChangeLog entry:

        * desktop.el (desktop-buffer-dired): Change name of local variable
        to be different from buffer local variable `dired-directory'.

Patch:

address@hidden:~/emacs/emacs-cvs$ diff -c desktop-1.61.el desktop.el
*** desktop-1.61.el     2003-08-18 23:29:36.000000000 +0200
--- desktop.el  2003-08-28 11:04:16.000000000 +0200
***************
*** 835,845 ****
       ;; First element of `desktop-buffer-misc' is the value of 
`dired-directory'.
       ;; This value is a directory name, optionally with with shell wildcard or
       ;; a directory name followed by list of files.
!       (let* ((dired-directory (car desktop-buffer-misc))
!            (dir (if (consp dired-directory) (car dired-directory) 
dired-directory)))
        (if (file-directory-p (file-name-directory dir))
            (progn
!             (dired dired-directory)
              (mapcar 'dired-maybe-insert-subdir (cdr desktop-buffer-misc))
              (current-buffer))
          (message "Directory %s no longer exists." dir)
--- 835,847 ----
       ;; First element of `desktop-buffer-misc' is the value of 
`dired-directory'.
       ;; This value is a directory name, optionally with with shell wildcard or
       ;; a directory name followed by list of files.
!       (let* ((dired-dir (car desktop-buffer-misc))
!            (dir (if (consp dired-dir) (car dired-dir) dired-dir)))
        (if (file-directory-p (file-name-directory dir))
            (progn
!             (dired dired-dir)
!               ;; The following elements of `desktop-buffer-misc' are the keys
!               ;; from `dired-subdir-alist'.
              (mapcar 'dired-maybe-insert-subdir (cdr desktop-buffer-misc))
              (current-buffer))
          (message "Directory %s no longer exists." dir)






reply via email to

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