From: Tomi Ollila <tomi.ollila@iki.fi>
To: David Wen Riccardi-Zhu <dwrz@dwrz.net>, notmuch@notmuchmail.org
Subject: Re: notmuch-emacs notmuch-tag configuration
Date: Wed, 16 Jun 2021 11:28:45 +0300 [thread overview]
Message-ID: <m24kdydxhe.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <CABpFyfvnSUzL2LXFY3-8ZUeA8+Optw3Rv-WaQYoWXjaFivu5eA@mail.gmail.com>
On Tue, Jun 15 2021, David Wen Riccardi-Zhu wrote:
> I'm using notmuch 0.32.1, Emacs 27.2, and version 20210605.1839 of
> notmuch-emacs. When I try to mark a message as read using a custom
> keybinding, I'm getting the following error:
>
> notmuch-tag: Symbol’s function definition is void: query
I recall some related/relevant/whatornot lexical-binding talk...
Also, this is mentioned in latest NEWS (for 0.32.1):
Emacs
-----
Restore the dynamically bound variables `tag-changes` and `query` in
in `notmuch-before-tag-hook` and `notmuch-after-tag-hook`.
may or may not help. no time to dig deeper for now :D
Tomi
>
> Here's the backtrace:
>
> Debugger entered--Lisp error: (void-function query)
> query("(id:pX7JAnfzR_GtdCfx1KGqCA@geopod-ismtpd-4-0)")
> notmuch-tag("(id:pX7JAnfzR_GtdCfx1KGqCA@geopod-ismtpd-4-0)" ("-new"
> "-unread"))
> notmuch-search-tag(("-new" "-unread"))
> (lambda nil "unmark message as new and unread" (interactive)
> (notmuch-search-tag (list "-new" "-unread")) (forward-line))()
> funcall-interactively((lambda nil "unmark message as new and unread"
> (interactive) (notmuch-search-tag (list "-new" "-unread")) (forward-line)))
> call-interactively((lambda nil "unmark message as new and unread"
> (interactive) (notmuch-search-tag (list "-new" "-unread")) (forward-line))
> nil nil)
> command-execute((lambda nil "unmark message as new and unread"
> (interactive) (notmuch-search-tag (list "-new" "-unread")) (forward-line)))
>
> And following is my notmuch-emacs configuration:
>
> (with-eval-after-load 'notmuch
> (customize-set-variable 'notmuch-search-oldest-first nil)
> (setq notmuch-address-command 'internal
> notmuch-address-internal-completion '(sent nil)
> notmuch-address-save-filename "~/some/dir/file"
> notmuch-address-use-company t
> notmuch-crypto-process-mime t
> notmuch-fcc-dirs "sent"
> notmuch-hello-hide-tags '("killed"))
> ;; Search tags
> (setq notmuch-saved-searches
> '((:name "inbox" :query "tag:inbox" :key "i")
> (:name "unread" :query "tag:unread" :key "u")
> (:name "new" :query "tag:new" :key "n")
> (:name "sent" :query "tag:sent" :key "e")
> (:name "drafts" :query "tag:draft" :key "d")
> (:name "all mail" :query "*" :key "a")
> (:name "todo" :query "tag:todo" :key "t")))
> ;; Keybindings
> (define-key notmuch-search-mode-map "S"
> (lambda ()
> "mark message as spam"
> (interactive)
> (notmuch-search-tag (list "-new" "-unread" "-inbox" "+spam"))
> (forward-line)))
> (define-key notmuch-show-mode-map "S"
> (lambda ()
> "mark message as spam"
> (interactive)
> (notmuch-show-tag (list "-new" "-unread" "-inbox" "+spam"))))
> (define-key notmuch-search-mode-map "N"
> (lambda ()
> "unmark message as new and unread"
> (interactive)
> (notmuch-search-tag (list "-new" "-unread"))
> (forward-line)))
> (define-key notmuch-show-mode-map "N"
> (lambda ()
> "unmark message as new and unread"
> (interactive)
> (notmuch-show-tag (list "-new" "-unread"))))
> (define-key notmuch-show-mode-map "r" 'notmuch-show-reply)
> (define-key notmuch-show-mode-map "R" 'notmuch-show-reply-sender)
> (define-key notmuch-search-mode-map "r" 'notmuch-search-reply-to-thread)
> (define-key notmuch-search-mode-map "R"
> 'notmuch-search-reply-to-thread-sender))
>
> I'm a little confused as to why this isn't working -- I don't believe that
> my configuration has strayed from what's listed in the online documentation.
>
> Any insights? I don't know Emacs Lisp well enough to understand why query
> is a void function.
>
> Many thanks!
>
> David
> _______________________________________________
> notmuch mailing list -- notmuch@notmuchmail.org
> To unsubscribe send an email to notmuch-leave@notmuchmail.org
prev parent reply other threads:[~2021-06-16 8:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-15 14:20 notmuch-emacs notmuch-tag configuration David Wen Riccardi-Zhu
2021-06-15 18:23 ` David Bremner
2021-06-17 2:12 ` Kyle Meyer
2021-06-16 8:28 ` Tomi Ollila [this message]
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=m24kdydxhe.fsf@guru.guru-group.fi \
--to=tomi.ollila@iki.fi \
--cc=dwrz@dwrz.net \
--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).