From 329e0274ec6a4ae82f86905b8cf844971b943085 Mon Sep 17 00:00:00 2001 From: Mark Oteiza Date: Tue, 27 Sep 2016 13:34:29 -0400 Subject: ; Fix previous change * lisp/woman.el (woman-parse-man.conf, woman-manpath-add-locales) (woman-cached-data): Use :test #'equal for instances of cl-pushnew. --- lisp/woman.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lisp') diff --git a/lisp/woman.el b/lisp/woman.el index 9c3fb2ab4cd..3822ce6f1a5 100644 --- a/lisp/woman.el +++ b/lisp/woman.el @@ -572,7 +572,7 @@ MANPATH_MAP[ \t]+\\(\\S-+\\)[ \t]+\\(\\S-+\\)\\)" nil t) (match-string 1) (cons (match-string 2) (match-string 3))) - manpath)) + manpath :test #'equal)) manpath)) )) (setq path (cdr path))) @@ -626,9 +626,9 @@ of `woman-expand-locale' on `woman-locale' added, where they exist." (cl-pushnew (if (consp elem) (cons (car elem) dir) dir) - lst))) + lst :test #'equal))) ;; Non-locale-specific has lowest precedence. - (cl-pushnew elem lst))))) + (cl-pushnew elem lst :test #'equal))))) (defcustom woman-manpath ;; Locales could also be added in woman-expand-directory-path. @@ -1197,7 +1197,8 @@ Called both to generate and to check the cache!" (setq path (split-string (getenv "PATH") path-separator t))) (setq dir (and (member (car dir) path) (cdr dir)))) - (when dir (cl-pushnew (substitute-in-file-name dir) lst)))) + (when dir + (cl-pushnew (substitute-in-file-name dir) lst :test #'equal)))) (mapcar 'substitute-in-file-name woman-path))) (defun woman-read-directory-cache () -- cgit v1.2.3-70-g09d2