Browse Source

Bug fix with return value of `org-mhe-get-message-folder-from-index'.

Patch from Thomas Baumann.
Carsten Dominik 17 years ago
parent
commit
02fab14a70
1 changed files with 3 additions and 3 deletions
  1. 3 3
      lisp/org-mhe.el

+ 3 - 3
lisp/org-mhe.el

@@ -138,11 +138,11 @@ So if you use sequences, it will now work."
       )))
 
 (defun org-mhe-get-message-folder-from-index ()
-  "Return the name of the message folder in a index folder buffer."
+  "Return the name of the message folder in an index folder buffer."
   (save-excursion
     (mh-index-previous-folder)
-    (re-search-forward "^\\(+.*\\)$" nil t)
-    (message "%s" (match-string 1))))
+    (if (re-search-forward "^\\(+.*\\)$" nil t)
+	(message "%s" (match-string 1)))))
 
 (defun org-mhe-get-message-folder ()
   "Return the name of the current message folder.