emacs: Use message-signature-separator rather than hard-coded string.

It's possible that the user has instructed message-mode to use some
other separator. If so, then that's what we should look for when
looking for the signature.

Thanks to David Edmondson <dme@dme.org> for pointing this out.
This commit is contained in:
Carl Worth 2010-04-26 23:12:58 -07:00
parent 173a195da9
commit 3dac7305c2

View file

@ -101,7 +101,7 @@ list."
;; insert the message body - but put it in front of the signature ;; insert the message body - but put it in front of the signature
;; if one is present ;; if one is present
(goto-char (point-max)) (goto-char (point-max))
(if (re-search-backward "-- " nil t) (if (re-search-backward message-signature-separator nil t)
(forward-line -1) (forward-line -1)
(goto-char (point-max))) (goto-char (point-max)))
(insert body)) (insert body))