]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: push mark before signature on reply
authorJani Nikula <jani@nikula.org>
Fri, 28 Mar 2014 18:04:25 +0000 (20:04 +0200)
committerDavid Bremner <david@tethera.net>
Sun, 30 Mar 2014 22:22:05 +0000 (19:22 -0300)
We push mark on reply so user can cut the quote. Push the mark before
signature, if any, instead of end of buffer so the signature is
preserved.

This is consistent with message-kill-to-signature.

emacs/notmuch-mua.el

index b16a10ecd37977183a28e06d172f465bbccece40..ba3ef275ec5ef03f894602499f224cce99130ed1 100644 (file)
@@ -226,8 +226,12 @@ list."
        ;; Quote the original message according to the user's configured style.
        (message-cite-original))))
 
        ;; Quote the original message according to the user's configured style.
        (message-cite-original))))
 
-  (goto-char (point-max))
+  ;; Push mark right before signature, if any.
+  (message-goto-signature)
+  (unless (eobp)
+    (end-of-line -1))
   (push-mark)
   (push-mark)
+
   (message-goto-body)
   (set-buffer-modified-p nil))
 
   (message-goto-body)
   (set-buffer-modified-p nil))