+2006-04-24 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * install.el (install-detect-elisp-directory): Fix 2002-11-29
+ change; assume default-load-path contains nil; use regexp-quote to
+ compare directories even in Emacs.
+
+2005-12-06 Ville Skytt\e$(D+#\e(B <scop@xemacs.org>
+
+ * poe.el (minor-mode-overriding-map-alist): Doc fix.
+
+ * product.el (product-version-as-string): Doc fix.
+
+2002-11-29 Ben Wing <ben@xemacs.org>
+
+ * install.el (install-detect-elisp-directory): Fix problems
+ handling backslashes in filenames (Windows).
+
2005-06-06 Katsumi Yamaoka <yamaoka@jpl.org>
* filename.el (filename-special-filter-1): New macro defined for
;; v18 does not have standard site directory.
"local.lisp"))
+;; Avoid compile warning.
+(eval-when-compile (autoload 'replace-in-string "subr"))
+
(defun install-detect-elisp-directory (&optional prefix elisp-prefix
allow-version-specific)
(or prefix
(or elisp-prefix
(setq elisp-prefix install-elisp-prefix))
(or (catch 'tag
- (let ((rest default-load-path)
- (regexp (concat "^"
- (expand-file-name (concat ".*/" elisp-prefix)
- prefix)
- "/?$")))
+ (let ((rest (delq nil (copy-sequence default-load-path)))
+ (regexp
+ (concat "^"
+ (regexp-quote (if (featurep 'xemacs)
+ ;; Handle backslashes (Windows)
+ (replace-in-string
+ (file-name-as-directory
+ (expand-file-name prefix))
+ "\\\\" "/")
+ (file-name-as-directory
+ (expand-file-name prefix))))
+ ".*/"
+ (regexp-quote
+ (if (featurep 'xemacs)
+ ;; Handle backslashes (Windows)
+ (replace-in-string elisp-prefix "\\\\" "/")
+ elisp-prefix))
+ "/?$"))
+ dir)
(while rest
- (if (string-match regexp (car rest))
+ (setq dir (if (featurep 'xemacs)
+ ;; Handle backslashes (Windows)
+ (replace-in-string (car rest) "\\\\" "/")
+ (car rest)))
+ (if (string-match regexp dir)
(if (or allow-version-specific
(not (string-match (format "/%d\\.%d"
emacs-major-version
emacs-minor-version)
- (car rest))))
+ dir)))
(throw 'tag (car rest))))
(setq rest (cdr rest)))))
(expand-file-name (concat (if (and (not (featurep 'xemacs))
;; Emacs 20.3 or later.
(defvar-maybe minor-mode-overriding-map-alist nil
"Alist of keymaps to use for minor modes, in current major mode.
-APEL provides this as dummy for a compatibility.")
+APEL provides this as dummy for compatibility.")
;; Emacs 20.1/XEmacs 20.3(?) and later: (save-current-buffer &rest BODY)
;;
"Return version number of product as a string.
PRODUCT is a product structure which returned by `product-define'.
If optional argument UPDATE is non-nil, then regenerate
-`produce-version-string' from `product-version'."
+`product-version-string' from `product-version'."
(setq product (product-find product))
(or (product-version-string product)
(and (product-version product)