diff options
| author | Eli Zaretskii | 2015-11-22 20:38:51 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-11-22 20:38:51 +0200 |
| commit | 40ed767ba0a35dbaeee6bdbd85a108d88a982b1a (patch) | |
| tree | b726762b86a3a5b3fdfaf7216e995a21cb2e1e62 /etc | |
| parent | 9f0d19f24cd455765123a378a5e2f3e505cbb5ac (diff) | |
| download | emacs-40ed767ba0a35dbaeee6bdbd85a108d88a982b1a.tar.gz emacs-40ed767ba0a35dbaeee6bdbd85a108d88a982b1a.zip | |
Allow loading modules by 'load-file'
* src/lread.c (Fload): Call 'unbind_to' with 'Fmodule_load' as the
2nd arg, to avoid the "binding stack not balanced" error.
(syms_of_lread) <module-file-suffix>: New Lisp variable.
* lisp/files.el (module-file-suffix): Declare.
(load-file): Remove 'module-file-suffix' from
'completion-ignored-extensions', to allow completion on modules.
* etc/NEWS: Mention 'module-file-suffix'.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 7 |
1 files changed, 5 insertions, 2 deletions
| @@ -308,8 +308,11 @@ few or no entries have changed. | |||
| 308 | ** Emacs can now load shared/dynamic libraries (modules). | 308 | ** Emacs can now load shared/dynamic libraries (modules). |
| 309 | A dynamic Emacs module is a shared library that provides additional | 309 | A dynamic Emacs module is a shared library that provides additional |
| 310 | functionality for use in Emacs Lisp programs, just like a package | 310 | functionality for use in Emacs Lisp programs, just like a package |
| 311 | written in Emacs Lisp would. The functions `load' and `require' were | 311 | written in Emacs Lisp would. The functions `load', `require', |
| 312 | extended to load such modules, as they do with Emacs Lisp packages. | 312 | `load-file', etc. were extended to load such modules, as they do with |
| 313 | Emacs Lisp packages. The new variable `module-file-suffix' holds the | ||
| 314 | system-dependent value of the file-name extension (`.so' on Posix | ||
| 315 | hosts) of the module files. | ||
| 313 | 316 | ||
| 314 | A module should export a C-callable function named | 317 | A module should export a C-callable function named |
| 315 | `emacs_module_init', which Emacs will call as part of the call to | 318 | `emacs_module_init', which Emacs will call as part of the call to |