diff options
| author | Chong Yidong | 2009-06-04 03:06:17 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-06-04 03:06:17 +0000 |
| commit | 1557ef4f922c9e8b408e00a941433ab0f320ed2e (patch) | |
| tree | 12eaa95ec9256ab87df6f4628ccf05d7eae1967d | |
| parent | 05129fbeb41880a6a5265af6a9476b2d132ba277 (diff) | |
| download | emacs-1557ef4f922c9e8b408e00a941433ab0f320ed2e.tar.gz emacs-1557ef4f922c9e8b408e00a941433ab0f320ed2e.zip | |
* building.texi (Lisp Libraries): Add example of changing
load-path (Bug#3446).
| -rw-r--r-- | doc/emacs/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/emacs/building.texi | 25 |
2 files changed, 21 insertions, 9 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index a73f8223742..190ba5ff8ee 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-06-04 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * building.texi (Lisp Libraries): Add example of changing | ||
| 4 | load-path (Bug#3446). | ||
| 5 | |||
| 1 | 2009-05-28 Chong Yidong <cyd@stupidchicken.com> | 6 | 2009-05-28 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * mark.texi (Mark): Further clarifications. | 8 | * mark.texi (Mark): Further clarifications. |
diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi index 00bdc1d3ad8..ff682948bb5 100644 --- a/doc/emacs/building.texi +++ b/doc/emacs/building.texi | |||
| @@ -1251,16 +1251,23 @@ because people often leave unfinished edits the source file, and don't | |||
| 1251 | recompile it until they think it is ready to use. | 1251 | recompile it until they think it is ready to use. |
| 1252 | 1252 | ||
| 1253 | @vindex load-path | 1253 | @vindex load-path |
| 1254 | The sequence of directories searched by @kbd{M-x load-library} is | 1254 | The variable @code{load-path} specifies the sequence of directories |
| 1255 | specified by the variable @code{load-path}, a list of strings that are | 1255 | searched by @kbd{M-x load-library}. Its value should be a list of |
| 1256 | directory names. The default value of the list contains the directories where | 1256 | strings that are directory names, or @code{nil} for the current |
| 1257 | default directory. (Generally, it is not a good idea to put | ||
| 1258 | @code{nil} in the list; if you find yourself wishing that @code{nil} | ||
| 1259 | were in the list, most likely what you really want is to do @kbd{M-x | ||
| 1260 | load-file} this once.) | ||
| 1261 | |||
| 1262 | The default value of @code{load-path} is a list of directories where | ||
| 1257 | the Lisp code for Emacs itself is stored. If you have libraries of | 1263 | the Lisp code for Emacs itself is stored. If you have libraries of |
| 1258 | your own, put them in a single directory and add that directory | 1264 | your own, put them in a single directory and add that directory to |
| 1259 | to @code{load-path}. @code{nil} in this list stands for the current default | 1265 | @code{load-path}, by adding a line like this to your init file |
| 1260 | directory, but it is probably not a good idea to put @code{nil} in the | 1266 | (@pxref{Init File}): |
| 1261 | list. If you find yourself wishing that @code{nil} were in the list, | 1267 | |
| 1262 | most likely what you really want to do is use @kbd{M-x load-file} | 1268 | @example |
| 1263 | this once. | 1269 | (add-to-list 'load-path "/path/to/lisp/libraries") |
| 1270 | @end example | ||
| 1264 | 1271 | ||
| 1265 | @cindex autoload | 1272 | @cindex autoload |
| 1266 | Often you do not have to give any command to load a library, because | 1273 | Often you do not have to give any command to load a library, because |