emacs/address: use member instead of memq to check for pair
authorDavid Bremner <david@tethera.net>
Wed, 13 Sep 2017 01:17:32 +0000 (22:17 -0300)
committerDavid Bremner <david@tethera.net>
Wed, 13 Sep 2017 01:17:32 +0000 (22:17 -0300)
Quoting from the elisp reference:

     For other types (e.g., lists, vectors, strings), two arguments
     with the same contents or elements are not necessarily ‘eq’ to
     each other.

Thanks to "Attic Hermit" for the fix.

emacs/notmuch-address.el

index f937e708406bbb73c3c9f164a904385c2e5cf91b..64887a43fe652b04332e0e3ed9b15577656cc9f8 100644 (file)
@@ -159,7 +159,7 @@ matching `notmuch-address-completion-headers-regexp'.
                       #'notmuch-address-expand-name)))
       (when setup-company
        (notmuch-company-setup))
-      (unless (memq pair message-completion-alist)
+      (unless (member pair message-completion-alist)
        (setq message-completion-alist
              (push pair message-completion-alist)))))