From: David Bremner <david@tethera.net>
To: Mark Walters <markwalters1009@gmail.com>, notmuch@notmuchmail.org
Subject: Re: [PATCH v3] emacs: add notmuch-address-post-completion-hook
Date: Thu, 03 Nov 2016 15:00:24 -0300 [thread overview]
Message-ID: <87k2ckl9zb.fsf@tesseract.cs.unb.ca> (raw)
In-Reply-To: <87twbo7aot.fsf@qmul.ac.uk>
Mark Walters <markwalters1009@gmail.com> writes:
> Hi
>
> Would it be worth putting the run-hook after the (insert chosen) rather
> than before? That would mean that the hook had access to the full new
> header. It would also mean that it wouldn't matter if the hook changed
> the buffer -- as it is I think the replace might go wrong as we replace
> beg to end and those seem to be integer-points not markers
agreed.
>
> One final query -- this function will be called when completing any of
> To: Cc: Bcc: From: and some other less common headers. We could pass an
> argument which says which header we are on but that is probably more
> complexity than necessary. However, it is probably worth documenting
> that it may be called from these headers in the defcustom for the hook.
>
Just changing the doc sounds sensible to me. Adding extra arguments
sounds complicated since we are also calling the hook from within
the nothmuch-company backend.
d
next prev parent reply other threads:[~2016-11-03 18:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-03 0:36 [PATCH] emacs: add notmuch-address-post-completion-hook David Bremner
2016-11-03 9:27 ` Mark Walters
2016-11-03 11:38 ` David Bremner
2016-11-03 11:56 ` [PATCH v3] " David Bremner
2016-11-03 17:08 ` Mark Walters
2016-11-03 18:00 ` David Bremner [this message]
2016-11-04 1:02 ` [PATCH v4] " David Bremner
2016-11-04 6:33 ` Mark Walters
2016-11-04 15:53 ` David Bremner
2016-11-12 19:07 ` Tomi Ollila
2016-11-12 21:39 ` David Bremner
2016-11-13 7:34 ` Mark Walters
2016-11-13 12:39 ` Tomi Ollila
2016-11-13 13:03 ` [PATCH] emacs: rename notmuch-address-completion-hook to notmuch-address-post-completion-functions David Bremner
2016-11-13 17:28 ` 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=87k2ckl9zb.fsf@tesseract.cs.unb.ca \
--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).