I just tried to upgrade notmuch to the head of development. my ~/.emacs contains a stanza for a shortcut for dealing with junk mail, which has given me no problems at all for notmuch 0.31.4-1: --------- ;; notmuch junk handling (defun dkg-notmuch-show-handle-junk () "Mark the message as spam, archive the thread, and display the next thread." (interactive) (notmuch-show-tag-all '("-inbox" "+spam")) (notmuch-show-next-thread t)) (define-key 'notmuch-show-mode-map "j" 'dkg-notmuch-show-handle-junk) --------- After the upgrade, though, if i restart emacs, i get a failure when loading my ~/.emacs: Debugger entered--Lisp error: (wrong-type-argument keymapp notmuch-show-mode-map) define-key(notmuch-show-mode-map "j" dkg-notmuch-show-handle-junk) eval-buffer(# nil "/home/dkg/.emacs" nil t) ; Reading at buffer position 23847 load-with-code-conversion("/home/dkg/.emacs" "/home/dkg/.emacs" t t) load("~/.emacs" noerror nomessage) startup--load-user-init-file(#f(compiled-function () #) #f(compiled-function () #) t) command-line() normal-top-level() I'll try downgrading again to see what's replicable, but i'm kind of confused by this, as it's been working for years. --dkg