X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch.el;h=6d37c623e6597cb4f43c0d6029b2f9502f93c89f;hb=0b48e65526fc1850949b5068a2536a4f46886197;hp=3436e1fcd8a77e50972e7574e1bf86785b2a7090;hpb=f47e3333b5478e43840e55710311aebdd441fc0e;p=notmuch diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 3436e1fc..6d37c623 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -65,8 +65,6 @@ ;;; Code: -(eval-when-compile (require 'cl-lib)) - (require 'mm-view) (require 'message) @@ -579,7 +577,7 @@ thread." (notmuch-search-foreach-result beg end (lambda (pos) (setq output (append output (notmuch-search-get-tags pos))))) - output)) + (delete-dups output))) (defun notmuch-search-interactive-tag-changes (&optional initial-input) "Prompt for tag changes for the current thread or region. @@ -816,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)