summaryrefslogtreecommitdiffhomepage
path: root/lib/net
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-02-25 19:42:30 +0000
committerjao <jao@gnu.org>2022-02-25 22:04:19 +0000
commit30eb7a1b7fc286c57cecfedf4d19b98e8b658347 (patch)
tree98d1540712c285dd9d0b7d791aaf574557860265 /lib/net
parenta2b76afc2b92b7706fcd5dfe4e379768c7eebd98 (diff)
downloadelibs-30eb7a1b7fc286c57cecfedf4d19b98e8b658347.tar.gz
elibs-30eb7a1b7fc286c57cecfedf4d19b98e8b658347.tar.bz2
notmuch fixlets
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/jao-notmuch.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/net/jao-notmuch.el b/lib/net/jao-notmuch.el
index fe3e086..f057a55 100644
--- a/lib/net/jao-notmuch.el
+++ b/lib/net/jao-notmuch.el
@@ -238,11 +238,12 @@
(nc (append n (or (jao-notmuch--message-counts t) '(0 0 0))))
(q (buffer-name)))
(with-current-buffer mb
- (let ((s (thread-last (notmuch-show-get-subject)
- (notmuch-show-strip-re)
- (notmuch-sanitize))))
- (setq-local header-line-format
- (apply 'jao-notmuch--format-counts s q nc))))))
+ (when (derived-mode-p 'notmuch-show-mode)
+ (let ((s (thread-last (notmuch-show-get-subject)
+ (notmuch-show-strip-re)
+ (notmuch-sanitize))))
+ (setq-local header-line-format
+ (apply 'jao-notmuch--format-counts s q nc)))))))
(defun jao-notmuch-tree--find-update-header-line (&rest _args)
(when-let ((mb (if (derived-mode-p 'notmuch-show-mode)