diff options
author | Case Duckworth | 2022-04-02 13:54:33 -0500 |
---|---|---|
committer | Case Duckworth | 2022-04-02 13:54:43 -0500 |
commit | 1d64079a52373de04bc213c837c3ef1127d19f77 (patch) | |
tree | 3c9c9c59d6395405da42c73fe1c0f3ae86978670 /lisp | |
parent | Add +org-unsmartify (diff) | |
download | emacs-1d64079a52373de04bc213c837c3ef1127d19f77.tar.gz emacs-1d64079a52373de04bc213c837c3ef1127d19f77.zip |
Ignore errors in +tab-bar-notmuch-count
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/+tab-bar.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/+tab-bar.el b/lisp/+tab-bar.el index e328146..5d018b5 100644 --- a/lisp/+tab-bar.el +++ b/lisp/+tab-bar.el | |||
@@ -53,7 +53,7 @@ | |||
53 | (defun +tab-bar-notmuch-count () | 53 | (defun +tab-bar-notmuch-count () |
54 | "Display a notmuch count in the tab-bar." | 54 | "Display a notmuch count in the tab-bar." |
55 | (when (featurep 'notmuch) | 55 | (when (featurep 'notmuch) |
56 | (let* ((counts (notmuch-hello-query-counts notmuch-saved-searches)) | 56 | (let* ((counts (ignore-errors (notmuch-hello-query-counts notmuch-saved-searches))) |
57 | (next (cl-find "inbox" counts :key (lambda (l) (plist-get l :name)) :test 'equal)) | 57 | (next (cl-find "inbox" counts :key (lambda (l) (plist-get l :name)) :test 'equal)) |
58 | (next-count (plist-get next :count))) | 58 | (next-count (plist-get next :count))) |
59 | (when (and next-count (> next-count 0)) | 59 | (when (and next-count (> next-count 0)) |