Commit eb7afdad authored by Glenn Morris's avatar Glenn Morris
Browse files

Don't mess with INFOPATH in ns builds

It's not necessary, and would break if INFOPATH was already set (bug#2791).
Ref also

* lisp/paths.el (Info-default-directory-list):
* lisp/info.el (info-initialize): For self-contained NS builds, put the
included info/ directory at the front. 

* src/nsterm.m (ns_init_paths): Don't mess with INFOPATH.
parent 04188bb9
2012-05-26 Glenn Morris <>
* paths.el (Info-default-directory-list):
* info.el (info-initialize): For self-contained NS builds, put the
included info/ directory at the front. (Bug#2791)
* paths.el (Info-default-directory-list): Make it a defcustom,
mainly so that we can use custom-initialize-delay.
......@@ -618,7 +618,19 @@ in `Info-file-supports-index-cookies-list'."
(append (split-string (substring path 0 -1) sep)
(split-string path sep))
;; For a self-contained (ie relocatable) NS build, AFAICS we
;; always want the included info directory to be at the head of
;; the search path, unless it's already in INFOPATH somewhere.
;; It's at the head of Info-default-directory-list,
;; but there's no way to get it at the head of Info-directory-list
;; except by doing it here.
(and path
(featurep 'ns)
(let ((dir (expand-file-name "../info" data-directory)))
(and (file-directory-p dir)
(not (member dir (split-string path ":" t)))
(push dir Info-directory-list)))))))
(defun info-other-window (&optional file-or-node)
......@@ -37,7 +37,12 @@
;; call custom-initialize-delay on it.
(defcustom Info-default-directory-list
(let* ((config-dir
(file-name-as-directory configure-info-directory))
;; Self-contained NS build with info/ in the app-bundle.
(or (and (featurep 'ns)
(let ((dir (expand-file-name "../info" data-directory)))
(if (file-directory-p dir) dir)))
;; Directory trees in which to look for info subdirectories
(prune-directory-list '("/usr/local/" "/usr/" "/opt/" "/")))
2012-05-26 Glenn Morris <>
* nsterm.m (ns_init_paths): Don't mess with INFOPATH. (Bug#2791)
2012-05-26 Eli Zaretskii <>
Extend mouse support on W32 text-mode console.
......@@ -379,16 +379,6 @@ Updated by Christian Limpach (
setenv ("EMACSDOC", [resourcePath UTF8String], 1);
if (!getenv ("INFOPATH"))
resourcePath = [resourceDir stringByAppendingPathComponent: @"info"];
if ([fileManager fileExistsAtPath: resourcePath isDirectory: &isDir])
if (isDir)
setenv ("INFOPATH", [[resourcePath stringByAppendingString: @":"]
UTF8String], 1);
/* Note, extra colon needed to cause merge w/later user additions. */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment