diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2021-01-10 15:01:09 +0100 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-01-15 06:47:28 -0400 |
| commit | 371f481d93073cad23f7ce8579a83a4db09147ef (patch) | |
| tree | d07551eaf56d812cc1465b730d126f5223423dc5 /emacs/notmuch.el | |
| parent | f3d6fa2e40c45c3dbaef768e36f1544248851ddb (diff) | |
emacs: use string-empty-p
Diffstat (limited to 'emacs/notmuch.el')
| -rw-r--r-- | emacs/notmuch.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el index d2e87b1b..26efcccd 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -814,13 +814,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. - (unless (string= invisible-string "") + (unless (string-empty-p 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) - (unless (string= invisible-string "") + (unless (string-empty-p invisible-string) (let ((start (point)) overlay) (insert invisible-string) |
