Function: rmail-widen-to-current-msgbeg

rmail-widen-to-current-msgbeg is a byte-compiled function defined in rmail.el.gz.

Signature

(rmail-widen-to-current-msgbeg FUNCTION)

Documentation

Call FUNCTION with point at start of internal data of current message.

Assumes that bounds were previously narrowed to display the message in Rmail. The bounds are widened enough to move point where desired, then narrowed again afterward.

FUNCTION may not change the visible text of the message, but it may change the invisible header text.

Source Code

;; Defined in /usr/src/emacs/lisp/mail/rmail.el.gz
;; Unused (save for commented out code in rmailedit.el).
(defun rmail-widen-to-current-msgbeg (function)
  "Call FUNCTION with point at start of internal data of current message.
Assumes that bounds were previously narrowed to display the message in Rmail.
The bounds are widened enough to move point where desired, then narrowed
again afterward.

FUNCTION may not change the visible text of the message, but it may
change the invisible header text."
  (save-excursion
    (unwind-protect
	(progn
	  (narrow-to-region (rmail-msgbeg rmail-current-message)
			    (point-max))
	  (goto-char (point-min))
	  (funcall function))
	;; Note: we don't use save-restriction because that does not work right
	;; if changes are made outside the saved restriction
	;; before that restriction is restored.
      (narrow-to-region (rmail-msgbeg rmail-current-message)
			(rmail-msgend rmail-current-message)))))