]> git.cworth.org Git - notmuch/blobdiff - emacs/notmuch-mua.el
emacs: notmuch-address-expand-name: use the actual initial-input
[notmuch] / emacs / notmuch-mua.el
index 2e4dc71a8d5a7358e4addf1036a2d169ee6fc2e3..08c73c1637abf4bdb88101165a5f09c9723c770b 100644 (file)
@@ -21,8 +21,6 @@
 
 ;;; Code:
 
-(eval-when-compile (require 'cl-lib))
-
 (require 'message)
 (require 'mm-view)
 (require 'format-spec)
@@ -390,7 +388,7 @@ instead of `message-mode' and SWITCH-FUNCTION is mandatory."
   (interactive)
   (when notmuch-mua-user-agent-function
     (let ((user-agent (funcall notmuch-mua-user-agent-function)))
-      (unless (string= "" user-agent)
+      (unless (string-empty-p user-agent)
        (push (cons 'User-Agent user-agent) other-headers))))
   (unless (assq 'From other-headers)
     (push (cons 'From (message-make-from