Commit 2df10228 authored by Glenn Morris's avatar Glenn Morris
Browse files

Use path-separator with -L, rather than just :

* lisp/startup.el (command-line-1): Use path-separator with -L.

* test/automated/ (PATH_SEPARATOR): New, set by configure.

* doc/emacs/cmdargs.texi (Action Arguments): Use path-separator with -L.

* etc/NEWS: Related edit.
parent 86fd16b6
2013-11-21 Glenn Morris <>
* cmdargs.texi (Action Arguments): Use path-separator with -L.
2013-11-04 Glenn Morris <>
* cmdargs.texi (Action Arguments): Mention that `-L :...' appends.
......@@ -142,6 +142,8 @@ relative order; i.e., using @samp{-L /foo -L /bar} results in
a @code{load-path} of the form @code{("/foo" "/bar" @dots{})}.
If @var{dir} begins with @samp{:}, Emacs removes the @samp{:} and
appends (rather than prepends) the remainder to @code{load-path}.
(On MS Windows, use @samp{;} instead of @samp{:}; i.e., use
the value of @code{path-separator}.)
@item -f @var{function}
@opindex -f
......@@ -64,7 +64,8 @@ To use the old backend by default, do on the command line:
** The -L option, which normally prepends its argument to load-path,
will instead append, if the argument begins with `:'.
will instead append, if the argument begins with `:' (or `;' on MS Windows;
i.e., `path-separator').
* Changes in Emacs 24.4
2013-11-21 Glenn Morris <>
* startup.el (command-line-1): Use path-separator with -L.
2013-11-20 Teodor Zlatanov <>
* emacs-lisp/package.el (describe-package-1): Add package archive
......@@ -2219,7 +2219,7 @@ A fancy display is used on graphic displays, normal otherwise."
;; -L :/foo adds /foo to the _end_ of load-path.
(let (append)
(if (string-match-p
(format "\\`%s" path-separator)
(setq tem (or argval (pop command-line-args-left))))
(setq tem (substring tem 1)
append t))
2013-11-21 Glenn Morris <>
* automated/ (PATH_SEPARATOR): New, set by configure.
2013-11-18 Paul Eggert <>
Improve API of recently-added bool vector functions (Bug#15912).
......@@ -22,13 +22,17 @@ SHELL = @SHELL@
srcdir = @srcdir@
VPATH = $(srcdir)
# We never change directory before running Emacs, so a relative file
# name is fine, and makes life easier. If we need to change
# directory, we can use emacs --chdir.
EMACS = ../../src/emacs
# Command line flags for Emacs.
EMACSOPT = -batch --no-site-file --no-site-lisp -L :$(srcdir)
# Apparently MSYS bash would convert "-L :" to "-L ;" anyway,
# but we might as well be explicit.
EMACSOPT = -batch --no-site-file --no-site-lisp -L $(PATH_SEPARATOR)$(srcdir)
# Extra flags to pass to the byte compiler.
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