XEmacs 21.4.9 "Informed Management".
[chise/xemacs-chise.git.1] / lisp / find-paths.el
index cc16201..494ed16 100644 (file)
@@ -69,7 +69,8 @@ from the search."
                     (directory-files directory nil "^[^.-]")))
                  (reverse-dirs '()))
              (while raw-entries
-               (if (null (string-match exclude-regexp (car raw-entries)))
+               (if (not (and exclude-regexp
+                             (string-match exclude-regexp (car raw-entries))))
                    (setq reverse-dirs
                          (cons (expand-file-name (car raw-entries) directory)
                                reverse-dirs)))
@@ -235,7 +236,8 @@ If ENFORCE-VERSION is non-nil, the directory must contain the XEmacs version."
   (or
    ;; from more to less specific
    (paths-find-version-directory roots
-                                (concat base system-configuration)
+                                (paths-construct-path
+                                 (list system-configuration base))
                                 envvar default)
    (paths-find-version-directory roots
                                 base