aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorEli Zaretskii2015-11-22 20:38:51 +0200
committerEli Zaretskii2015-11-22 20:38:51 +0200
commit40ed767ba0a35dbaeee6bdbd85a108d88a982b1a (patch)
treeb726762b86a3a5b3fdfaf7216e995a21cb2e1e62 /etc
parent9f0d19f24cd455765123a378a5e2f3e505cbb5ac (diff)
downloademacs-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/NEWS7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/NEWS b/etc/NEWS
index dce02c31e59..5c5883f55ba 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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).
309A dynamic Emacs module is a shared library that provides additional 309A dynamic Emacs module is a shared library that provides additional
310functionality for use in Emacs Lisp programs, just like a package 310functionality for use in Emacs Lisp programs, just like a package
311written in Emacs Lisp would. The functions `load' and `require' were 311written in Emacs Lisp would. The functions `load', `require',
312extended 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
313Emacs Lisp packages. The new variable `module-file-suffix' holds the
314system-dependent value of the file-name extension (`.so' on Posix
315hosts) of the module files.
313 316
314A module should export a C-callable function named 317A 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