# HG changeset patch
# User Thien-Thi Nguyen <ttn@gnuvola.org>
# Date 1124059804 0
# Node ID 3423c3c7a8b9e7895f97217181a7b82e375e7bc8
# Parent  baff064fbe629208f3e7976bd2efc3890cd91403
Fix dependency bug: Wrap `desktop-buffer-mode-handlers'
modification in `eval-after-load' form.

diff -r baff064fbe62 -r 3423c3c7a8b9 lisp/mail/rmail.el
--- a/lisp/mail/rmail.el	Sun Aug 14 17:36:02 2005 +0000
+++ b/lisp/mail/rmail.el	Sun Aug 14 22:50:04 2005 +0000
@@ -4086,8 +4086,9 @@
       (kill-buffer (current-buffer))
       nil)))
 
-(add-to-list 'desktop-buffer-mode-handlers
-             '(rmail-mode . rmail-restore-desktop-buffer))
+(eval-after-load 'desktop
+  '(add-to-list 'desktop-buffer-mode-handlers
+                '(rmail-mode . rmail-restore-desktop-buffer)))
 
 (provide 'rmail)