* [PATCH] emacs: push mark before signature on reply
@ 2014-03-28 18:04 Jani Nikula
2014-03-29 7:08 ` Tomi Ollila
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jani Nikula @ 2014-03-28 18:04 UTC (permalink / raw)
To: notmuch
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 | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index b16a10ecd379..ba3ef275ec5e 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))
--
1.9.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] emacs: push mark before signature on reply
2014-03-28 18:04 [PATCH] emacs: push mark before signature on reply Jani Nikula
@ 2014-03-29 7:08 ` Tomi Ollila
2014-03-30 7:03 ` Mark Walters
2014-03-30 22:33 ` David Bremner
2 siblings, 0 replies; 4+ messages in thread
From: Tomi Ollila @ 2014-03-29 7:08 UTC (permalink / raw)
To: Jani Nikula, notmuch
On Fri, Mar 28 2014, Jani Nikula <jani@nikula.org> wrote:
> 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.
> ---
LGTM. +1
> emacs/notmuch-mua.el | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
> index b16a10ecd379..ba3ef275ec5e 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))
>
> --
> 1.9.0
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] emacs: push mark before signature on reply
2014-03-28 18:04 [PATCH] emacs: push mark before signature on reply Jani Nikula
2014-03-29 7:08 ` Tomi Ollila
@ 2014-03-30 7:03 ` Mark Walters
2014-03-30 22:33 ` David Bremner
2 siblings, 0 replies; 4+ messages in thread
From: Mark Walters @ 2014-03-30 7:03 UTC (permalink / raw)
To: Jani Nikula, notmuch
LGTM +1
Best wishes
Mark
On Fri, 28 Mar 2014, Jani Nikula <jani@nikula.org> wrote:
> 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 | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
> index b16a10ecd379..ba3ef275ec5e 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))
>
> --
> 1.9.0
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] emacs: push mark before signature on reply
2014-03-28 18:04 [PATCH] emacs: push mark before signature on reply Jani Nikula
2014-03-29 7:08 ` Tomi Ollila
2014-03-30 7:03 ` Mark Walters
@ 2014-03-30 22:33 ` David Bremner
2 siblings, 0 replies; 4+ messages in thread
From: David Bremner @ 2014-03-30 22:33 UTC (permalink / raw)
To: Jani Nikula, notmuch
Jani Nikula <jani@nikula.org> writes:
> 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.
Pushed.
d
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-03-30 22:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-28 18:04 [PATCH] emacs: push mark before signature on reply Jani Nikula
2014-03-29 7:08 ` Tomi Ollila
2014-03-30 7:03 ` Mark Walters
2014-03-30 22:33 ` David Bremner
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).