aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Schleicher2011-03-16 01:00:58 +0100
committerJuanma Barranquero2011-03-16 01:00:58 +0100
commite6ce307c50e6413f1ba87a315e0f8beb1a8ddac8 (patch)
treeec3973083064afaab170abd50767506a1fe21d2d
parent46dcfee46cb241a0f8e34da679ca8b42e8ee8d46 (diff)
downloademacs-e6ce307c50e6413f1ba87a315e0f8beb1a8ddac8.tar.gz
emacs-e6ce307c50e6413f1ba87a315e0f8beb1a8ddac8.zip
lisp/info.el: Fix bug#8258.
* info (info-initialize): Replace all uses of `:' with path-separator for compatibility with non-Unix systems. Cache quoting of path-separator.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/info.el10
2 files changed, 11 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 29b47595eb6..5bd208ba3c8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12011-03-15 Ralph Schleicher <rs@ralph-schleicher.de>
2
3 * info.el (info-initialize): Replace all uses of `:' with
4 path-separator for compatibility with non-Unix systems.
5 Cache quoting of path-separator. (Bug#8258)
6
12011-03-12 Juanma Barranquero <lekktu@gmail.com> 72011-03-12 Juanma Barranquero <lekktu@gmail.com>
2 8
3 * avoid.el (mouse-avoidance-mode, mouse-avoidance-nudge-dist) 9 * avoid.el (mouse-avoidance-mode, mouse-avoidance-nudge-dist)
diff --git a/lisp/info.el b/lisp/info.el
index c6e20f827c1..8fd0fc70096 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -588,15 +588,15 @@ in `Info-file-supports-index-cookies-list'."
588(defun info-initialize () 588(defun info-initialize ()
589 "Initialize `Info-directory-list', if that hasn't been done yet." 589 "Initialize `Info-directory-list', if that hasn't been done yet."
590 (unless Info-directory-list 590 (unless Info-directory-list
591 (let ((path (getenv "INFOPATH"))) 591 (let ((path (getenv "INFOPATH"))
592 (sep (regexp-quote path-separator)))
592 (setq Info-directory-list 593 (setq Info-directory-list
593 (prune-directory-list 594 (prune-directory-list
594 (if path 595 (if path
595 (if (string-match ":\\'" path) 596 (if (string-match-p (concat sep "\\'") path)
596 (append (split-string (substring path 0 -1) 597 (append (split-string (substring path 0 -1) sep)
597 (regexp-quote path-separator))
598 (Info-default-dirs)) 598 (Info-default-dirs))
599 (split-string path (regexp-quote path-separator))) 599 (split-string path sep))
600 (Info-default-dirs))))))) 600 (Info-default-dirs)))))))
601 601
602;;;###autoload 602;;;###autoload