Synch with APEL XEmacs package 1.32.
authoryamaoka <yamaoka>
Mon, 24 Apr 2006 05:53:58 +0000 (05:53 +0000)
committeryamaoka <yamaoka>
Mon, 24 Apr 2006 05:53:58 +0000 (05:53 +0000)
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 Skytta  <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).

ChangeLog
install.el
poe.el
product.el

index 68e2cb8..2297625 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+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
index a24a32a..be59a05 100644 (file)
     ;; 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))
diff --git a/poe.el b/poe.el
index ad01c47..89c097e 100644 (file)
--- a/poe.el
+++ b/poe.el
@@ -900,7 +900,7 @@ On other systems, this variable is normally always nil.")
 ;; 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)
 ;;
index e8e2890..b49d698 100644 (file)
@@ -252,7 +252,7 @@ PRODUCT-DEF is a definition of the product."
   "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)