From: Mark Walters <markwalters1009@gmail.com>
To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
Subject: Re: [PATCH] emacs: remove use of message-send-hook
Date: Sat, 11 Mar 2017 01:10:55 +0000 [thread overview]
Message-ID: <87y3wcobxc.fsf@qmul.ac.uk> (raw)
In-Reply-To: <87k27wsnct.fsf@tethera.net>
On Fri, 10 Mar 2017, David Bremner <david@tethera.net> wrote:
> Mark Walters <markwalters1009@gmail.com> writes:
>
>> + (let (tag-change
>> + post-send-tag-changes)
>> + ;; post-send-tag-changes are tag-changes to apply after sending,
>> + ;; but we need to store them now as the compose buffer is
>> + ;; typically killed before message-send-and-exit returns.
>> + (push (notmuch-message-mark-replied t) post-send-tag-changes)
>> + (push (notmuch-draft--mark-deleted t) post-send-tag-changes)
>> + (letf (((symbol-function 'message-do-fcc) #'notmuch-maildir-message-do-fcc))
>> + (if exit
>> + (message-send-and-exit arg)
>> + (message-send arg)))
>> + (dolist (tag-change post-send-tag-changes)
>> + (when tag-change
>> + (apply #'notmuch-tag tag-change))))))
Hi
> Would it be possible to concatenate the two lists and only call
> notmuch-tag once? It seems like that should be notably faster.
I think that it's not possible as they are tagging different
messages. We could probably do something with --batch but that would
mean some change in notmuch-tag itself.
Best wishes
Mark
next prev parent reply other threads:[~2017-03-11 1:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-17 20:54 [PATCH] emacs: remove use of message-send-hook Mark Walters
2017-03-10 23:50 ` David Bremner
2017-03-11 1:10 ` Mark Walters [this message]
2017-03-11 13:37 ` David Bremner
2017-03-11 14:08 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y3wcobxc.fsf@qmul.ac.uk \
--to=markwalters1009@gmail.com \
--cc=david@tethera.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).