changeset 55055:1df02321d7ad

(mh-restore-desktop-buffer): Move from desktop.el. Add Parameters.
author Lars Hansen <larsh@soem.dk>
date Wed, 21 Apr 2004 20:48:48 +0000
parents ee7e5daa7ffd
children c7ded215e268
files lisp/mh-e/mh-e.el
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mh-e/mh-e.el	Wed Apr 21 20:48:47 2004 +0000
+++ b/lisp/mh-e/mh-e.el	Wed Apr 21 20:48:48 2004 +0000
@@ -2441,6 +2441,18 @@
                 "^There is no other window$"))
   (add-to-list 'debug-ignored-errors mess))
 
+;;;;  Desktop support
+
+;;;###autoload
+(defun mh-restore-desktop-buffer (desktop-buffer-file-name
+                                  desktop-buffer-name
+                                  desktop-buffer-misc)
+  "Restore an mh folder buffer specified in a desktop file."
+  (with-no-warnings
+    (mh-find-path)
+    (mh-visit-folder desktop-buffer-name)
+    (current-buffer)))
+
 (provide 'mh-e)
 
 ;;; Local Variables: