]> git.eshelyaron.com Git - emacs.git/commitdiff
(mh-restore-desktop-buffer): Move from desktop.el. Add Parameters.
authorLars Hansen <larsh@soem.dk>
Wed, 21 Apr 2004 20:48:48 +0000 (20:48 +0000)
committerLars Hansen <larsh@soem.dk>
Wed, 21 Apr 2004 20:48:48 +0000 (20:48 +0000)
lisp/mh-e/mh-e.el

index c4b027f382f289b380272e508f4d3ef92b38de2f..1db42327b53059367dd63eea3ae059622688dce8 100644 (file)
@@ -2441,6 +2441,18 @@ well.")
                 "^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: