Minor change in the Emacs manual
* doc/emacs/building.texi (Lisp Libraries): Explain why nil in load-path is not a good idea. Suggested by James Yoo <james.yoo@gmail.com> in emacs-manual-bugs@gnu.org.
This commit is contained in:
parent
e055a12839
commit
92ca881dc8
1 changed files with 6 additions and 5 deletions
|
@ -1410,12 +1410,13 @@ Loading,,, elisp, the Emacs Lisp Reference Manual}.
|
||||||
@code{load-path}. Its value should be a list of directories
|
@code{load-path}. Its value should be a list of directories
|
||||||
(strings). These directories are searched, in the specified order, by
|
(strings). These directories are searched, in the specified order, by
|
||||||
the @kbd{M-x load-library} command, the lower-level @code{load}
|
the @kbd{M-x load-library} command, the lower-level @code{load}
|
||||||
function, and other Emacs functions that find Emacs Lisp libraries. A
|
function, and other Emacs functions that find Emacs Lisp libraries.
|
||||||
list entry in @code{load-path} can also have the special value
|
An entry in @code{load-path} can also have the special value
|
||||||
@code{nil}, which stands for the current default directory, but it is
|
@code{nil}, which stands for the current default directory, but it is
|
||||||
almost always a bad idea to use this. (If you find yourself wishing
|
almost always a bad idea to use this, because its meaning will depend
|
||||||
that @code{nil} were in the list, most likely what you really want is
|
on the buffer that is current when @code{load-path} is used by Emacs.
|
||||||
to use @kbd{M-x load-file}.)
|
(If you find yourself wishing that @code{nil} were in the list, most
|
||||||
|
likely what you really want is to use @kbd{M-x load-file}.)
|
||||||
|
|
||||||
The default value of @code{load-path} is a list of directories where
|
The default value of @code{load-path} is a list of directories where
|
||||||
the Lisp code for Emacs itself is stored. If you have libraries of
|
the Lisp code for Emacs itself is stored. If you have libraries of
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue