aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2017-09-12 22:17:32 -0300
committerDavid Bremner <david@tethera.net>2017-09-12 22:17:32 -0300
commitff6d3b64895a71855b16a45d378bc849d9bd02a4 (patch)
tree233afabc8dc31ba7eabd64d83a07e05518b4e611
parent227ecf4949280d457ee029b42ee8d459624a2413 (diff)
emacs/address: use member instead of memq to check for pair
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.
-rw-r--r--emacs/notmuch-address.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el
index f937e708..64887a43 100644
--- a/emacs/notmuch-address.el
+++ b/emacs/notmuch-address.el
@@ -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)))))