[comp.mail.mh] mh under gnu-emacs

deng@max.bnl.gov (Dong-Ping Deng) (10/09/90)

I have a problem running mh under gnu-emacs. Whence mh-rmail is loaded in
emacs, it says something: Searching for program: no file or directory of
/usr/local/mh/inc. 

I told my postmaster about it, it seems he didn't know how to fix it. Could
any explain what is actually happening ?  Note, mh works fine without emacs.

Thanks in advance.

Dong-Ping Deng

---
dp

murray@ils.nwu.edu (Thomas Murray) (10/09/90)

>I have a problem running mh under gnu-emacs. Whence mh-rmail is loaded in
>emacs, it says something: Searching for program: no file or directory of
>/usr/local/mh/inc. 

I am not an emacs of mh expert, but what I think is happening is that
the mh program 'inc' is not in directory /usr/local/mh/inc.  There are
two possible fixed to this:

	1) move 'inc' (and all the other mh programs) to /usr/local/mh/
	2) make a link from /usr/local/mh/ to where the mh programs are
    		located.

-tom murray (murray@ils.nwu.edu)

merlyn@iwarp.intel.com (Randal Schwartz) (10/10/90)

In article <2097@anaxagoras.ils.nwu.edu>, murray@ils (Thomas Murray) writes:
| 
| >I have a problem running mh under gnu-emacs. Whence mh-rmail is loaded in
| >emacs, it says something: Searching for program: no file or directory of
| >/usr/local/mh/inc. 
| 
| I am not an emacs of mh expert, but what I think is happening is that
| the mh program 'inc' is not in directory /usr/local/mh/inc.  There are
| two possible fixed to this:
| 
| 	1) move 'inc' (and all the other mh programs) to /usr/local/mh/
| 	2) make a link from /usr/local/mh/ to where the mh programs are
|     		located.

Or, more properly, emacs should have been told where the MH commands
where on its initial load/dump.  See mh-progs and mh-lib in
DIST/lisp/paths.el.

As a workaround, you can force mh-progs and mh-lib to whatever you
want in your .emacs file.  For example, in my .emacs file, I have:

(setq mh-progs "/local/usr/bin" mh-lib "/local/usr/lib/mh")

(Someday, I'll get around to re-dumping emacs with the proper values. :-)

Just another elisp hacker and MH user (and mh-e user),
-- 
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
| on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III      |
| merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/

spike@world.std.com (Joe Ilacqua) (10/10/90)

In <2097@anaxagoras.ils.nwu.edu> murray@ils.nwu.edu (Thomas Murray) writes:
<>I have a problem running mh under gnu-emacs. Whence mh-rmail is loaded in
<>emacs, it says something: Searching for program: no file or directory of
<>/usr/local/mh/inc. 
<I am not an emacs of mh expert, but what I think is happening is that
<the mh program 'inc' is not in directory /usr/local/mh/inc.  There are
<two possible fixed to this:
<          1) move 'inc' (and all the other mh programs) to /usr/local/mh/
<          2) make a link from /usr/local/mh/ to where the mh programs are
<                  located.

           3) add '(setq mh-progs "/usr/local/bin")' to you '.emacs' or,
              if you can, to 'default.el'.  "/usr/local/bin" above
              should be changed to reflect your local needs.
->Spike
-- 
"The World" - Public Access Unix - +1 617-739-9753  24hrs {3,12,24}00bps

murthy@algron.cs.cornell.edu (Chet Murthy) (10/10/90)

murray@ils.nwu.edu (Thomas Murray) writes:
>>I have a problem running mh under gnu-emacs. Whence mh-rmail is loaded in
>>emacs, it says something: Searching for program: no file or directory of
>>/usr/local/mh/inc. 

>I am not an emacs of mh expert, but what I think is happening is that
>the mh program 'inc' is not in directory /usr/local/mh/inc.  There are
>two possible fixed to this:

>	1) move 'inc' (and all the other mh programs) to /usr/local/mh/
>	2) make a link from /usr/local/mh/ to where the mh programs are
>    		located.

Or just add a line to your .emacs like:

(setq mh-progs "/usr/local/mh/")
(setq mh-lib "/usr/local/lib/mh/")

--chet--

hogan@csl.sri.com (Emmett Hogan) (10/10/90)

In article <2097@anaxagoras.ils.nwu.edu> murray@ils.nwu.edu (Thomas Murray) writes:

->I have a problem running mh under gnu-emacs. Whence mh-rmail is loaded in
->emacs, it says something: Searching for program: no file or directory of
->/usr/local/mh/inc. 

-I am not an emacs of mh expert, but what I think is happening is that
-the mh program 'inc' is not in directory /usr/local/mh/inc.  There are
-two possible fixed to this:

-	   1) move 'inc' (and all the other mh programs) to /usr/local/mh/
-	   2) make a link from /usr/local/mh/ to where the mh programs are
-		   located.

Or more simply find out where the mh programs (inc, show, scan, etc.)
reside (say it's in /usr/share/bin) and set the elisp variable
"mh-progs" to that directory. (you will probably need to set mh-lib
also)...just put the following lines into you .emacs file (or better
yet, have your systems people put it in the system wide "site-init.el".

(setq mh-progs "/usr/share/bin/")
(setq mh-lib "/usr/share/lib/")

Just replace /usr/share/bin and /usr/share/lib with the correct
locations for your system.

Hope this helps,
Emmett


--
-------------------------------------------------------------------
Emmett Hogan              Computer Science Lab, SRI International
Inet: hogan@csl.sri.com
UUCP: {ames, decwrl, pyramid, sun}!fernwood!hercules!hogan
USMAIL: BN179, 333 Ravenswood Ave, Menlo Park, CA  94025
PacBell: (415)859-3232 (voice), (415)859-2844 (fax)
ICBM: 37d 27' 14" North, 122d 10' 52" West
-------------------------------------------------------------------

roland@ai.mit.edu (Roland McGrath) (10/10/90)

In article <2097@anaxagoras.ils.nwu.edu> murray@ils.nwu.edu (Thomas Murray) writes:

   >I have a problem running mh under gnu-emacs. Whence mh-rmail is loaded in
   >emacs, it says something: Searching for program: no file or directory of
   >/usr/local/mh/inc. 

   I am not an emacs of mh expert, but what I think is happening is that
   the mh program 'inc' is not in directory /usr/local/mh/inc.  There are
   two possible fixed to this:

	   1) move 'inc' (and all the other mh programs) to /usr/local/mh/
	   2) make a link from /usr/local/mh/ to where the mh programs are
		   located.

A better solution is to change the values of mh-progs and mh-lib in paths.el to
the appropriate values for your set-up.
--
	Roland McGrath
	Free Software Foundation, Inc.
roland@ai.mit.edu, uunet!ai.mit.edu!roland

mpf@triplea.cs.umd.edu (Martin Farach) (10/10/90)

In article <2097@anaxagoras.ils.nwu.edu> murray@ils.nwu.edu (Thomas Murray) writes:

   >I have a problem running mh under gnu-emacs. Whence mh-rmail is loaded in
   >emacs, it says something: Searching for program: no file or directory of
   >/usr/local/mh/inc. 

   I am not an emacs of mh expert, but what I think is happening is that
   the mh program 'inc' is not in directory /usr/local/mh/inc.  There are
   two possible fixed to this:

	   1) move 'inc' (and all the other mh programs) to /usr/local/mh/
	   2) make a link from /usr/local/mh/ to where the mh programs are
		   located.

   -tom murray (murray@ils.nwu.edu)

There is a fix which doesn't involve being system manager.  Try the
lines:

(setq mh-progs "/usr/new/mh6.6/")
(setq mh-lib "/usr/new/lib/mh6.6/")


in your .emacs.  Of course you would have to replace the paths with
the appropriate paths for your system.

Martin Farach

--
Martin Farach						mpf@cs.umd.edu
University of Maryland
Department of Computer Science
College Park, Maryland 20742

mjm@reef.cis.ufl.edu (Michael Murphy) (10/11/90)

In article <2097@anaxagoras.ils.nwu.edu> murray@ils.nwu.edu (Thomas Murray) writes:

	   1) move 'inc' (and all the other mh programs) to /usr/local/mh/
	   2) make a link from /usr/local/mh/ to where the mh programs are
		   located.

A third way to fix this (and my preferred way) is to change emacs' idea of
where to look for the mh programs.  The information is in the variable
mh-progs.  M-x describe-variable said this about it:

	mh-progs's value is "/local/bin"

	Documentation:
	Directory containing MH commands

That's because i overrode the default value (which was "/usr/local/mh") in
site-init.el:

	(setq mh-progs "/local/bin")
	;; Directory containing MH commands.

The installation instructions that come with emacs remind you to do that,
but if you weren't the installer, than you probably couldn't help that.
But for your own use, you could put the above line in your .emacs.

I have also fixed emacs binaries after they were built and installed by doing
"emacs emacs", then searching for the string "/usr/local/mh", and replacing
it with "/local/bin
pad the string).  So, this only works if you're replacing the string with one 
of equal or shorter length. 

Hope this helps.

-mjm