From: Carl Worth Date: Tue, 27 Apr 2010 06:12:58 +0000 (-0700) Subject: emacs: Use message-signature-separator rather than hard-coded string. X-Git-Tag: 0.3~8 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/notmuch.git/commitdiff_plain/3dac7305c24220ec7a46db8d08d7b5eb0401d02d 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 for pointing this out. --- diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 9fbb94a6..bd06e3cb 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -101,7 +101,7 @@ list." ;; insert the message body - but put it in front of the signature ;; if one is present (goto-char (point-max)) - (if (re-search-backward "-- " nil t) + (if (re-search-backward message-signature-separator nil t) (forward-line -1) (goto-char (point-max))) (insert body))