Stop ns builds setting the EMACSLOADPATH environment variable
authorGlenn Morris <rgm@gnu.org>
Tue, 10 Jul 2012 01:04:28 +0000 (21:04 -0400)
committerGlenn Morris <rgm@gnu.org>
Tue, 10 Jul 2012 01:04:28 +0000 (21:04 -0400)
commit9e059e3fde0f95b0b06ebce10f2985201e54c11c
treee52878b1f1fff02dee5b327ab042c35de9ac3f87
parent4107c81e8926223bc8f2c50f4436d8a36d6d5914
Stop ns builds setting the EMACSLOADPATH environment variable
Ref bugs 4309, 6401, etc.
This is the last environment variable (ab)used by the ns port in this way.

* src/nsterm.m (ns_load_path): Rename from ns_init_paths.
Now it does not set EMACSLOADPATH, just returns the load-path string.
* src/nsterm.h: Update accordingly.

* src/lread.c [HAVE_NS]: Include nsterm.h.
(init_lread) [HAVE_NS]: Use ns_load_path.

* src/emacs.c (main) [HAVE_NS]: No longer call ns_init_paths.
src/ChangeLog
src/emacs.c
src/lread.c
src/nsterm.h
src/nsterm.m