From: David Wen Riccardi-Zhu <dwrz@dwrz.net>
To: notmuch@notmuchmail.org
Subject: notmuch-emacs notmuch-tag configuration
Date: Tue, 15 Jun 2021 14:20:29 +0000 [thread overview]
Message-ID: <CABpFyfvnSUzL2LXFY3-8ZUeA8+Optw3Rv-WaQYoWXjaFivu5eA@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 3314 bytes --]
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
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
[-- Attachment #1.2: Type: text/html, Size: 4421 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next reply other threads:[~2021-06-15 14:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-15 14:20 David Wen Riccardi-Zhu [this message]
2021-06-15 18:23 ` notmuch-emacs notmuch-tag configuration David Bremner
2021-06-17 2:12 ` Kyle Meyer
2021-06-16 8:28 ` Tomi Ollila
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=CABpFyfvnSUzL2LXFY3-8ZUeA8+Optw3Rv-WaQYoWXjaFivu5eA@mail.gmail.com \
--to=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).