Function: mh-letter-next-header-field-or-indent

mh-letter-next-header-field-or-indent is an interactive and byte-compiled function defined in mh-letter.el.gz.

Signature

(mh-letter-next-header-field-or-indent ARG)

Documentation

Cycle to next field.

Within the header of the message, this command moves between fields that are highlighted with the face mh-letter-header-field, skipping those fields listed in mh-compose-skipped-header-fields. After the last field, this command then moves point to the message body before cycling back to the first field. If point is already past the first line of the message body, then this command indents by calling indent-relative with the given prefix argument ARG.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-letter.el.gz
(defun mh-letter-next-header-field-or-indent (arg)
  "Cycle to next field.

Within the header of the message, this command moves between
fields that are highlighted with the face
`mh-letter-header-field', skipping those fields listed in
`mh-compose-skipped-header-fields'. After the last field, this
command then moves point to the message body before cycling back
to the first field. If point is already past the first line of
the message body, then this command indents by calling
`indent-relative' with the given prefix argument ARG."
  (interactive "P")
  (let ((header-end (save-excursion
                      (goto-char (mh-mail-header-end))
                      (forward-line)
                      (point))))
    (if (> (point) header-end)
        (indent-relative arg)
      (mh-letter-next-header-field))))