aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Jani Nikula <jani@nikula.org>2014-03-28 20:04:25 +0200
committerGravatar David Bremner <david@tethera.net>2014-03-30 19:22:05 -0300
commitd0c4cd7e58f2ccdadca9fb56efc80e9140995ed2 (patch)
treed9a713e1b56f18b6471bc86ecfec48d43c950026 /emacs
parent31fc76b782c5ebc38ec4a6d5f4fea12fe141f460 (diff)
emacs: push mark before signature on reply
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.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-mua.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index b16a10ec..ba3ef275 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -226,8 +226,12 @@ list."
;; 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)
+
(message-goto-body)
(set-buffer-modified-p nil))