Function: mh-to-field
mh-to-field is an interactive and byte-compiled function defined in
mh-letter.el.gz.
Signature
(mh-to-field)
Documentation
Move to specified header field.
The field is indicated by the previous keystroke (the last
keystroke of the command) according to the list in the variable
mh-to-field-choices.
Create the field if it does not exist.
Set the mark to point before moving.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-letter.el.gz
(defun mh-to-field ()
"Move to specified header field.
The field is indicated by the previous keystroke (the last
keystroke of the command) according to the list in the variable
`mh-to-field-choices'.
Create the field if it does not exist.
Set the mark to point before moving."
(interactive)
(expand-abbrev)
(let ((target (cdr (or (assoc (char-to-string (logior last-input-event ?`))
mh-to-field-choices)
;; also look for a char for version 4 compat
(assoc (logior last-input-event ?`)
mh-to-field-choices))))
(case-fold-search t))
(push-mark)
(cond ((mh-position-on-field target)
(let ((eol (point)))
(skip-chars-backward " \t")
(delete-region (point) eol))
(if (and (not (eq (logior last-input-event ?`) ?s))
(save-excursion
(backward-char 1)
(not (looking-at "[:,]"))))
(insert ", ")
(insert " ")))
(t
(if (mh-position-on-field "To:")
(forward-line 1))
(insert (format "%s \n" target))
(backward-char 1)))))