From: David Bremner <david@tethera.net>
To: Mark Walters <markwalters1009@gmail.com>, notmuch@notmuchmail.org
Subject: Re: [PATCH] emacs: remove use of message-send-hook
Date: Fri, 10 Mar 2017 19:50:26 -0400 [thread overview]
Message-ID: <87k27wsnct.fsf@tethera.net> (raw)
In-Reply-To: <1479416079-6319-1-git-send-email-markwalters1009@gmail.com>
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))))))
Would it be possible to concatenate the two lists and only call
notmuch-tag once? It seems like that should be notably faster.
d
next prev parent reply other threads:[~2017-03-10 23:50 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 [this message]
2017-03-11 1:10 ` Mark Walters
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=87k27wsnct.fsf@tethera.net \
--to=david@tethera.net \
--cc=markwalters1009@gmail.com \
--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).