Function: mh-set-help

mh-set-help is an autoloaded and byte-compiled function defined in mh-utils.el.gz.

Signature

(mh-set-help MESSAGES &optional DEFAULT)

Documentation

Set help messages.

The MESSAGES are assumed to be an associative array. It is used to show help for the most common commands in the current mode. The key is a prefix char. The value is one or more strings which are concatenated together and displayed in a help buffer if ? is pressed after the prefix character. The special key nil is used to display the non-prefixed commands.

The substitutions described in substitute-command-keys are performed as well.

If optional argument DEFAULT is non-nil, then these messages will be used if help is asked for an unknown mode.

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-utils.el.gz
;;;###mh-autoload
(defun mh-set-help (messages &optional default)
  "Set help messages.

The MESSAGES are assumed to be an associative array. It is used
to show help for the most common commands in the current mode.
The key is a prefix char. The value is one or more strings which
are concatenated together and displayed in a help buffer if ? is
pressed after the prefix character. The special key nil is used
to display the non-prefixed commands.

The substitutions described in `substitute-command-keys' are performed as
well.

If optional argument DEFAULT is non-nil, then these messages will
be used if help is asked for an unknown mode."
  (add-to-list 'mh-help-messages (cons major-mode messages))
  (if default
      (setq mh-help-default major-mode)))