]> git.cworth.org Git - obsolete/notmuch-old/commitdiff
emacs: Use message-signature-separator rather than hard-coded string.
authorCarl Worth <cworth@cworth.org>
Tue, 27 Apr 2010 06:12:58 +0000 (23:12 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 27 Apr 2010 06:12:58 +0000 (23:12 -0700)
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.

emacs/notmuch-mua.el

index 9fbb94a668342f06821597d8d4c50fe509fa9ef4..bd06e3cb29764c2cc4f46de96111a4da47db622e 100644 (file)
@@ -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))