]> git.notmuchmail.org Git - notmuch/commit
emacs: Use interactive specifications for tag changes in show
authorAustin Clements <amdragon@MIT.EDU>
Wed, 23 Oct 2013 00:21:56 +0000 (20:21 -0400)
committerDavid Bremner <bremner@debian.org>
Sat, 26 Oct 2013 00:26:13 +0000 (21:26 -0300)
commit47792533b37b24d353aa351c303562860509441b
treeeeb8e6eff82d691be32f727ff7bb0806b02a70b2
parent0f8d5b6b0e7597346f0228145069706a7866f6f1
emacs: Use interactive specifications for tag changes in show

This modifies all tagging operations in show to call
`notmuch-read-tag-changes' in their interactive specification to input
tag changes, rather than depending on lower-level functions to prompt
for tag changes regardless of their calling context.

Besides being more Elispy and providing a more consistent programmatic
API, this enables callers to provide two call site-specific pieces of
information: an appropriate prompt, and the set of visible tags.  The
prompt lets us differentiate * from +/-.  Providing visible tags
enables a more consistent user experience than retrieving the
(potentially different) tags from the database, and avoids a
round-trip to the CLI and database.
emacs/notmuch-show.el