diff options
author | Carl Worth <cworth@cworth.org> | 2010-04-26 23:12:58 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-04-26 23:12:58 -0700 |
commit | 3dac7305c24220ec7a46db8d08d7b5eb0401d02d (patch) | |
tree | ec8b7e0b930936d7dd8dd92fe7ac193255b18132 | |
parent | 173a195da97613bf25efbc248e27305ea23de70c (diff) |
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.
-rw-r--r-- | emacs/notmuch-mua.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 9fbb94a..bd06e3c 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)) |