[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 329e027: ; Fix previous change
From: |
Mark Oteiza |
Subject: |
[Emacs-diffs] master 329e027: ; Fix previous change |
Date: |
Tue, 27 Sep 2016 17:36:52 +0000 (UTC) |
branch: master
commit 329e0274ec6a4ae82f86905b8cf844971b943085
Author: Mark Oteiza <address@hidden>
Commit: Mark Oteiza <address@hidden>
; 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(-)
diff --git a/lisp/woman.el b/lisp/woman.el
index 9c3fb2a..3822ce6 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 ()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 329e027: ; Fix previous change,
Mark Oteiza <=