Re: [Orgmode] Re: Link to MH-E message that has been refiled

2008-06-13 Thread Carsten Dominik

Applied, thanks.

- Carsten

On Jun 13, 2008, at 8:47 PM, Thomas Baumann wrote:


and there's a bug with org-mhe-get-message-folder-from-index returning
"nil" instead of nil

fixed with the patch below

diff --git a/lisp/org-mhe.el b/lisp/org-mhe.el
index eb2c9ab..7f0d7f4 100644
--- a/lisp/org-mhe.el
+++ b/lisp/org-mhe.el
@@ -141,8 +141,8 @@ So if you use sequences, it will now work."
  "Return the name of the message folder in a 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.


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Link to MH-E message that has been refiled

2008-06-13 Thread Thomas Baumann
and there's a bug with org-mhe-get-message-folder-from-index returning
"nil" instead of nil

fixed with the patch below

diff --git a/lisp/org-mhe.el b/lisp/org-mhe.el
index eb2c9ab..7f0d7f4 100644
--- a/lisp/org-mhe.el
+++ b/lisp/org-mhe.el
@@ -141,8 +141,8 @@ So if you use sequences, it will now work."
   "Return the name of the message folder in a 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.


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Link to MH-E message that has been refiled

2008-06-13 Thread Thomas Baumann
Hi,

there are two possibilities:

a) use namazu, mairix or another search engine which is supported by
   MH-E and customize mh-searcher to use that engine

b) customize org-mhe-search-all-folders

Thomas



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode