[850] in Athena Bugs

home help back first fref pref prev next nref lref last post

OK, let's try again: bug with mh-rmail mode in emacs

daemon@ATHENA.MIT.EDU (jik@ATHENA.MIT.EDU)
Wed Sep 7 22:35:59 1988

From: <jik@ATHENA.MIT.EDU>
Date: Wed, 7 Sep 88 22:35:12 EDT
To: bugs@ATHENA.MIT.EDU
OK, Henry, let's try this again:

When gnuemacs mh-rmail mode attempts to compose a template for sending
out a message, it is supposed to first check for a "components" file
in the user's mail directory, then, if that file does not exist, fall
back to the default mh components file.

The default mh components file is located in /usr/new/mh/lib/components.  
However, because the variable mh-lib is set incorrectly in the
emacs-lisp file /usr/athena/lib/gnuemacs/lisp/paths.el (see lines
46-50 in that file), emacs cannot find the default components file
when it fails to locate a user's customized one.  It then delivers the
error "Can't find components," and it cannot compose a template for
the message and therefore the message send fails.

In order to fix this, one of the following two patches would have to
be added to paths.el, and then emacs would have to be recompiled with
the new version of paths.el:
---cut here---
47a48
>       ((file-exists-p "/usr/new/mh/lib") "/usr/new/mh/lib/")
---cut here---
The diff above fixes the problem by checking for /usr/new/mh/lib IN
ADDITION TO checking for /usr/new/lib/mh, which is what it looks for
now.  The diff below looks for /usr/new/mh/lib INSTEAD OF
/usr/new/lib/mh.  The first diff might be preferable, since this takes
into account that some systems might still have files stored under
/usr/new/lib/mh.
---cut here---
47c47
<   (cond ((file-exists-p "/usr/new/lib/mh") "/usr/new/lib/mh/")
---
>   (cond ((file-exists-p "/usr/new/mh/lib") "/usr/new/mh/lib/")
---cut here---

I hope that I have explained the problem enough to look forward to a
solution in the next release.  In the meantime, users can avoid the
problem by placing the line 
  (setq mh-lib "/usr/new/mh/lib/")
into their .emacs files.

  --> Jonathan Kamens
      Project Athena Watchmaker
      SIPB (Student Information Processing Board) Member
      Volunteer OLC Consultant
      jik@ATHENA.MIT.EDU

home help back first fref pref prev next nref lref last post