]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix previous change
authorMark Oteiza <mvoteiza@udel.edu>
Tue, 27 Sep 2016 17:34:29 +0000 (13:34 -0400)
committerMark Oteiza <mvoteiza@udel.edu>
Tue, 27 Sep 2016 17:34:29 +0000 (13:34 -0400)
* 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

index 9c3fb2ab4cd953ce2c3ec05be83d24fc8a447ec4..3822ce6f1a566570b41734dbfdb42c48364c1da1 100644 (file)
@@ -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 ()