diff options
| author | Eli Zaretskii | 2016-01-16 17:30:11 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-01-16 17:30:11 +0200 |
| commit | bd0c23ce0909aec40d17293ba50854d10dd36f31 (patch) | |
| tree | 23e6cd6cbc9735fe3f0a0eaa022963b24592cf55 | |
| parent | e4c431cde35a345690905550eb3714dfa4ff9d30 (diff) | |
| download | emacs-bd0c23ce0909aec40d17293ba50854d10dd36f31.tar.gz emacs-bd0c23ce0909aec40d17293ba50854d10dd36f31.zip | |
Improve documentation of dynamic modules
* doc/lispref/loading.texi (How Programs Do Loading): Update the
description of searching for files in 'load' when Emacs was built
with support for dynamic modules.
| -rw-r--r-- | doc/lispref/loading.texi | 18 | ||||
| -rw-r--r-- | etc/NEWS | 1 |
2 files changed, 12 insertions, 7 deletions
diff --git a/doc/lispref/loading.texi b/doc/lispref/loading.texi index 18e67f1abfe..06900a49477 100644 --- a/doc/lispref/loading.texi +++ b/doc/lispref/loading.texi | |||
| @@ -73,12 +73,15 @@ To find the file, @code{load} first looks for a file named | |||
| 73 | @var{filename} with the extension @samp{.elc} appended. If such a | 73 | @var{filename} with the extension @samp{.elc} appended. If such a |
| 74 | file exists, it is loaded. If there is no file by that name, then | 74 | file exists, it is loaded. If there is no file by that name, then |
| 75 | @code{load} looks for a file named @file{@var{filename}.el}. If that | 75 | @code{load} looks for a file named @file{@var{filename}.el}. If that |
| 76 | file exists, it is loaded. Finally, if neither of those names is | 76 | file exists, it is loaded. If Emacs was compiled with support for |
| 77 | found, @code{load} looks for a file named @var{filename} with nothing | 77 | dynamic modules (@pxref{Dynamic Modules}), @code{load} next looks for |
| 78 | appended, and loads it if it exists. (The @code{load} function is not | 78 | a file named @file{@var{filename}.@var{ext}}, where @var{ext} is a |
| 79 | clever about looking at @var{filename}. In the perverse case of a | 79 | system-dependent file-name extension of shared libraries. Finally, if |
| 80 | file named @file{foo.el.el}, evaluation of @code{(load "foo.el")} will | 80 | neither of those names is found, @code{load} looks for a file named |
| 81 | indeed find it.) | 81 | @var{filename} with nothing appended, and loads it if it exists. (The |
| 82 | @code{load} function is not clever about looking at @var{filename}. | ||
| 83 | In the perverse case of a file named @file{foo.el.el}, evaluation of | ||
| 84 | @code{(load "foo.el")} will indeed find it.) | ||
| 82 | 85 | ||
| 83 | If Auto Compression mode is enabled, as it is by default, then if | 86 | If Auto Compression mode is enabled, as it is by default, then if |
| 84 | @code{load} can not find a file, it searches for a compressed version | 87 | @code{load} can not find a file, it searches for a compressed version |
| @@ -100,7 +103,8 @@ being tried. | |||
| 100 | If the optional argument @var{must-suffix} is non-@code{nil}, then | 103 | If the optional argument @var{must-suffix} is non-@code{nil}, then |
| 101 | @code{load} insists that the file name used must end in either | 104 | @code{load} insists that the file name used must end in either |
| 102 | @samp{.el} or @samp{.elc} (possibly extended with a compression | 105 | @samp{.el} or @samp{.elc} (possibly extended with a compression |
| 103 | suffix), unless it contains an explicit directory name. | 106 | suffix) or the shared-library extension, unless it contains an |
| 107 | explicit directory name. | ||
| 104 | 108 | ||
| 105 | If the option @code{load-prefer-newer} is non-@code{nil}, then when | 109 | If the option @code{load-prefer-newer} is non-@code{nil}, then when |
| 106 | searching suffixes, @code{load} selects whichever version of a file | 110 | searching suffixes, @code{load} selects whichever version of a file |
| @@ -120,6 +120,7 @@ and can contain escape sequences for command keys, quotes, and the like. | |||
| 120 | 120 | ||
| 121 | * Changes in Emacs 25.1 | 121 | * Changes in Emacs 25.1 |
| 122 | 122 | ||
| 123 | +++ | ||
| 123 | ** Emacs can now load shared/dynamic libraries (modules). | 124 | ** Emacs can now load shared/dynamic libraries (modules). |
| 124 | A dynamic Emacs module is a shared library that provides additional | 125 | A dynamic Emacs module is a shared library that provides additional |
| 125 | functionality for use in Emacs Lisp programs, just like a package | 126 | functionality for use in Emacs Lisp programs, just like a package |