aboutsummaryrefslogtreecommitdiff
path: root/emacs/notmuch.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2020-08-08 13:49:42 +0200
committerDavid Bremner <david@tethera.net>2020-08-09 20:51:26 -0300
commit09f6533c3781b61ea634790d4bad38aadf89115c (patch)
tree7d91a0aa4e5dab8721befee1b8ad79879f8772e6 /emacs/notmuch.el
parentdfb1b8eb89e814f4bf6f6e62b700c72aa1b4659a (diff)
emacs: Use 'unless' instead of 'when' and 'not'
Also use 'unless' in a few cases where previously 'if' was used with 'not' but without an ELSE part.
Diffstat (limited to 'emacs/notmuch.el')
-rw-r--r--emacs/notmuch.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 41207643..93e92b39 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -803,13 +803,13 @@ non-authors is found, assume that all of the authors match."
(setq invisible-string (notmuch-search-author-propertize invisible-string)))
;; If there is any invisible text, add it as a tooltip to the
;; visible text.
- (when (not (string= invisible-string ""))
+ (unless (string= invisible-string "")
(setq visible-string
(propertize visible-string
'help-echo (concat "..." invisible-string))))
;; Insert the visible and, if present, invisible author strings.
(insert visible-string)
- (when (not (string= invisible-string ""))
+ (unless (string= invisible-string "")
(let ((start (point))
overlay)
(insert invisible-string)