# HG changeset patch # User Lars Hansen # Date 1123702791 0 # Node ID a7d19794a559820e11be9d5d037cc9a883a7d83b # Parent bde8cc177550902b1e911712b93f107e6226c3f8 Add handler to desktop-buffer-mode-handlers. (Info-restore-desktop-buffer): Remove autoload cookie. (Info-mode): Add autoload cookie. diff -r bde8cc177550 -r a7d19794a559 lisp/info.el --- a/lisp/info.el Wed Aug 10 19:39:32 2005 +0000 +++ b/lisp/info.el Wed Aug 10 19:39:51 2005 +0000 @@ -3255,6 +3255,8 @@ (defvar tool-bar-map) +;; Autoload cookie needed by desktop.el +;;;###autoload (defun Info-mode () "Info mode provides commands for browsing through the Info documentation tree. Documentation in Info is divided into \"nodes\", each of which discusses @@ -4179,7 +4181,6 @@ (if (not (member Info-current-file '("apropos" "history" "toc"))) (list Info-current-file Info-current-node))) -;;;###autoload (defun Info-restore-desktop-buffer (desktop-buffer-file-name desktop-buffer-name desktop-buffer-misc) @@ -4193,6 +4194,9 @@ (Info-find-node first second) (current-buffer)))) +(add-to-list 'desktop-buffer-mode-handlers + '(Info-mode . Info-restore-desktop-buffer)) + (provide 'info) ;; arch-tag: f2480fe2-2139-40c1-a49b-6314991164ac