[comp.emacs] file completion in mh-e subfolders

gildea@EXPO.LCS.MIT.EDU (Stephen Gildea) (05/17/91)

    I recently discovered that I can have subfolders of folders. My problem is
    that I don't have file completion for subfolders as I do for the top level
    folders. Can anyone tell me how to make this work?

Put this line in your .emacs file:
(setq mh-recursive-folders t)

Also, the function "my-visit-folder" that you define is just mh-rmail
with an argument.  For example, if you have mh-rmail on C-x r as I do,
then C-u C-x r eliminates the need for the extra function.  Or, if you
really don't want to type the third keystroke, you can shorten the
definition to this:

(defun my-visit-folder ()
  "Scan an MH mailbox without first incorporating new mail.
  (interactive)
  (require 'mh-e)
  (mh-rmail t))

Note that the "interactive" form always comes first.

 < Stephen
   MIT X Consortium