Function: mh-letter-toggle-header-field-display
mh-letter-toggle-header-field-display is an autoloaded, interactive
and byte-compiled function defined in mh-utils.el.gz.
Signature
(mh-letter-toggle-header-field-display ARG)
Documentation
Toggle display of header field at point.
Use this command to display truncated header fields. This command is a toggle so entering it again will hide the field. This command takes a prefix argument ARG: if negative then the field is hidden, if positive then the field is displayed.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-utils.el.gz
;;;###mh-autoload
(defun mh-letter-toggle-header-field-display (arg)
"Toggle display of header field at point.
Use this command to display truncated header fields. This command
is a toggle so entering it again will hide the field. This
command takes a prefix argument ARG: if negative then the field
is hidden, if positive then the field is displayed."
(interactive (list nil))
(when (and (mh-in-header-p)
(progn
(end-of-line)
(re-search-backward mh-letter-header-field-regexp nil t)))
(let ((buffer-read-only nil)
(modified-flag (buffer-modified-p))
(begin (point))
end)
(end-of-line)
(setq end (1- (if (re-search-forward "^[^ \t]" nil t)
(match-beginning 0)
(point-max))))
(goto-char begin)
;; Make it clickable...
(add-text-properties begin end `(keymap ,mh-hidden-header-keymap
mouse-face highlight))
(unwind-protect
(cond ((or (and (not arg)
(text-property-any begin end 'invisible 'vanish))
(and (numberp arg)
(>= arg 0))
(and (eq arg 'long)
(> (line-beginning-position 5) end)))
(remove-text-properties begin end '(invisible nil))
(search-forward ":" (line-end-position) t)
(mh-letter-skip-leading-whitespace-in-header-field))
;; XXX Redesign to make usable by user. Perhaps use a positive
;; numeric prefix to make that many lines visible.
((eq arg 'long)
(end-of-line 4)
(mh-letter-truncate-header-field end)
(beginning-of-line))
(t (end-of-line)
(mh-letter-truncate-header-field end)
(beginning-of-line)))
(set-buffer-modified-p modified-flag)))))