]> git.notmuchmail.org Git - notmuch/commit
emacs: restore tag-changes and query bindings for tag hooks
authorKyle Meyer <kyle@kyleam.com>
Sat, 8 May 2021 12:11:12 +0000 (09:11 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 15 May 2021 11:34:28 +0000 (08:34 -0300)
commit319dcfb50e5bc929719167afa353e19632ea55f3
tree81e4a7efbfa025cfab2ad77e5fe10c0bfc737eff
parenta663783343cb992d132ecc18e4e4d4e37bbf12e9
emacs: restore tag-changes and query bindings for tag hooks

notmuch-before-tag-hook and notmuch-after-tag-hook are supposed to
have access to two dynamic variables, tag-changes and query, but these
were lost with the switch to lexical binding in fc4cda07 (emacs: use
lexical-bindings in all libraries, 2021-01-13).

Add a variant of Emacs's dlet (not available until Emacs 28) and use
it in notmuch-tag to expose tag-changes and query to the hooks.
emacs/notmuch-compat.el
emacs/notmuch-tag.el
test/T310-emacs.sh