diff options
| author | Kyle Meyer <kyle@kyleam.com> | 2021-05-08 09:11:12 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-05-15 08:34:28 -0300 |
| commit | 319dcfb50e5bc929719167afa353e19632ea55f3 (patch) | |
| tree | 81e4a7efbfa025cfab2ad77e5fe10c0bfc737eff /test/T310-emacs.sh | |
| parent | a663783343cb992d132ecc18e4e4d4e37bbf12e9 (diff) | |
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.
Diffstat (limited to 'test/T310-emacs.sh')
| -rwxr-xr-x | test/T310-emacs.sh | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/T310-emacs.sh b/test/T310-emacs.sh index 5ebc8e66..e6489246 100755 --- a/test/T310-emacs.sh +++ b/test/T310-emacs.sh @@ -162,7 +162,6 @@ output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize) test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox unread)" test_begin_subtest "notmuch-show: before-tag-hook is run, variables are defined" -test_subtest_known_broken output=$(test_emacs '(let ((notmuch-test-tag-hook-output nil) (notmuch-before-tag-hook (function notmuch-test-tag-hook))) (notmuch-show "id:ddd65cda0911171950o4eea4389v86de9525e46052d3@mail.gmail.com") @@ -174,7 +173,6 @@ test_expect_equal "$output" \ ("id:ddd65cda0911171950o4eea4389v86de9525e46052d3@mail.gmail.com" "+activate-hook"))' test_begin_subtest "notmuch-show: after-tag-hook is run, variables are defined" -test_subtest_known_broken output=$(test_emacs '(let ((notmuch-test-tag-hook-output nil) (notmuch-after-tag-hook (function notmuch-test-tag-hook))) (notmuch-show "id:ddd65cda0911171950o4eea4389v86de9525e46052d3@mail.gmail.com") |
