Function: message-kill-to-signature
message-kill-to-signature is an interactive and byte-compiled function
defined in message.el.gz.
Signature
(message-kill-to-signature &optional ARG)
Documentation
Kill all text up to the signature.
If a numeric argument or prefix arg is given, leave that number of lines before the signature intact.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/message.el.gz
(defun message-kill-to-signature (&optional arg)
"Kill all text up to the signature.
If a numeric argument or prefix arg is given, leave that number
of lines before the signature intact."
(interactive "P" message-mode)
(save-excursion
(save-restriction
(let ((point (point)))
(narrow-to-region point (point-max))
(message-goto-signature)
(unless (eobp)
(if (and arg (numberp arg))
(forward-line (- -1 arg))
(end-of-line -1)))
(unless (= point (point))
(kill-region point (point))
(unless (bolp)
(insert "\n")))))))