(mh-find-path): Don't throw error if MH environment variable is being
authorBill Wohler <wohler@newt.com>
Mon, 19 May 2008 02:18:24 +0000 (02:18 +0000)
committerBill Wohler <wohler@newt.com>
Mon, 19 May 2008 02:18:24 +0000 (02:18 +0000)
used (closes SF #1946861).

lisp/mh-e/ChangeLog
lisp/mh-e/mh-utils.el

index a81f689..12997cd 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-19  Xavier Maillard <xma@gnu.org>  (tiny change)
+
+       * mh-utils.el (mh-find-path): Don't throw error if MH environment
+       variable is being used (closes SF #1946861).
+
 2008-05-19  Nick Dokos <nicholas.dokos@hp.com>  (tiny change)
 
        * mh-search.el (mh-mairix-regexp-builder): Add additional items to
index d330e60..08602b7 100644 (file)
@@ -184,9 +184,8 @@ MH-E."
                (getenv "MH")))
     (if (null (mh-variants))
         (error "Install MH and run install-mh before running MH-E"))
-    (let ((profile "~/.mh_profile"))
-      (if (not (file-readable-p profile))
-          (error "Run install-mh before running MH-E")))
+    (if (not (or (getenv "MH") (file-readable-p "~/.mh_profile")))
+        (error "Run install-mh before running MH-E"))
     ;; Read MH profile.
     (setq mh-user-path (mh-profile-component "Path"))
     (if (not mh-user-path)