16 Apr 22:13
Re: Hello
From: Xavier Maillard <xma <at> gnu.org>
Subject: Re: Hello
Newsgroups: gmane.mail.mh-e.user
Date: 2008-04-16 20:13:14 GMT
Subject: Re: Hello
Newsgroups: gmane.mail.mh-e.user
Date: 2008-04-16 20:13:14 GMT
> 2. How can I tell emacs that my mh_profile is not ~/.mh_profile
> but something along $MH env variable ?
MH-E should honor the MH environment variable.
It does not here with Emacs CVS. To force MH-E respect the MH
environment variable, I had to change one line in mh-utils.el as
follow:
=== modified file 'lisp/mh-e/mh-utils.el'
--- lisp/mh-e/mh-utils.el 2008-01-09 03:44:03 +0000
+++ lisp/mh-e/mh-utils.el 2008-04-16 20:07:10 +0000
@@ -186,7 +186,7 @@
(getenv "MH")))
(if (null (mh-variants))
(error "Install MH and run install-mh before running MH-E"))
- (let ((profile "~/.mh_profile"))
+ (let ((profile (or (file-readable-p "~/.mh_profile") (getenv "MH"))))
(if (not (file-readable-p profile))
(error "Run install-mh before running MH-E")))
;; Read MH profile.
Regards
Xavier
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
RSS Feed