changeset 64955:dfba32942470

Fix dependency bug: Wrap `desktop-buffer-mode-handlers' modification in `eval-after-load' form.
author Thien-Thi Nguyen <ttn@gnuvola.org>
date Sun, 14 Aug 2005 12:40:02 +0000
parents cef86e3d06ae
children 65d8bcaaafc0
files lisp/dired.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired.el	Sun Aug 14 10:03:15 2005 +0000
+++ b/lisp/dired.el	Sun Aug 14 12:40:02 2005 +0000
@@ -3292,8 +3292,9 @@
       (when desktop-missing-file-warning (sit-for 1))
       nil)))
 
-(add-to-list 'desktop-buffer-mode-handlers
-             '(dired-mode . dired-restore-desktop-buffer))
+(eval-after-load 'desktop
+  '(add-to-list 'desktop-buffer-mode-handlers
+                '(dired-mode . dired-restore-desktop-buffer)))
 
 
 (if (eq system-type 'vax-vms)