diff options
| author | Glenn Morris | 2013-11-22 17:55:16 -0800 |
|---|---|---|
| committer | Glenn Morris | 2013-11-22 17:55:16 -0800 |
| commit | 17e0445be4a6a4f437f4be4924074c90d6477481 (patch) | |
| tree | c78a4df4e1c2f9daf840c96d15dc9e00dd71c68d /etc | |
| parent | 72648ef2605b654caf515ef020c2cac70cd0d741 (diff) | |
| download | emacs-17e0445be4a6a4f437f4be4924074c90d6477481.tar.gz emacs-17e0445be4a6a4f437f4be4924074c90d6477481.zip | |
Empty elements in EMACSLOADPATH now stand for the default
* src/lread.c (load_path_check): Take path to check as argument.
(load_path_default): New, split from init_lread.
(init_lread): Move calc of default load-path to load_path_default.
Empty elements in EMACSLOADPATH now stand for the default.
(load-path): Doc fix.
* src/emacs.c (decode_env_path): Add option to treat empty elements
as nil rather than ".".
* src/callproc.c (init_callproc_1, init_callproc):
* src/image.c (Vx_bitmap_file_path):
* src/lisp.h (decode_env_path):
* lread.c (Vsource_directory):
Update for new argument spec of decode_env_path.
* leim/Makefile.in (RUN_EMACS): Empty EMACSLOADPATH rather than unsetting.
* lisp/Makefile.in (emacs): Empty EMACSLOADPATH rather than unsetting.
* test/automated/Makefile.in (emacs):
Empty EMACSLOADPATH rather than unsetting.
* doc/emacs/cmdargs.texi (General Variables):
Empty elements in EMACSLOADPATH now mean the default load-path.
* doc/lispref/loading.texi (Library Search):
Empty elements in EMACSLOADPATH now mean the default load-path.
* etc/NEWS: Mention this.
Fixes: debbugs:12100
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 10 |
1 files changed, 10 insertions, 0 deletions
| @@ -63,6 +63,16 @@ To use the old backend by default, do on the command line: | |||
| 63 | * Startup Changes in Emacs 24.4 | 63 | * Startup Changes in Emacs 24.4 |
| 64 | 64 | ||
| 65 | +++ | 65 | +++ |
| 66 | ** When initializing `load-path', an empty element in the EMACSLOADPATH | ||
| 67 | environment variable (either leading, e.g., ":/foo"; trailing, e.g., | ||
| 68 | "/foo:"; or embedded, e.g., "/foo::/bar") is replaced with the default | ||
| 69 | load-path (the one that would have been used if EMACSLOADPATH was unset). | ||
| 70 | This makes it easier to _extend_ the load-path via EMACSLOADPATH | ||
| 71 | (previously, EMACSLOADPATH had to specify the complete load-path, | ||
| 72 | including the defaults). (In older versions of Emacs, an empty element | ||
| 73 | was replaced by ".", so use an explicit "." now if that is what you want.) | ||
| 74 | |||
| 75 | +++ | ||
| 66 | ** The -L option, which normally prepends its argument to load-path, | 76 | ** The -L option, which normally prepends its argument to load-path, |
| 67 | will instead append, if the argument begins with `:' (or `;' on MS Windows; | 77 | will instead append, if the argument begins with `:' (or `;' on MS Windows; |
| 68 | i.e., `path-separator'). | 78 | i.e., `path-separator'). |