diff options
| author | Philipp Stephani | 2018-01-28 21:36:03 +0100 |
|---|---|---|
| committer | Philipp Stephani | 2018-02-02 20:56:01 +0100 |
| commit | 0443411f5ce2594a6ec092cd96b92d0b920372f5 (patch) | |
| tree | 7790497b70f0719498fe17043c956b42339a83e8 /etc | |
| parent | 75c663f834528c5431973bf8dc6386c327f9fe0f (diff) | |
| download | emacs-0443411f5ce2594a6ec092cd96b92d0b920372f5.tar.gz emacs-0443411f5ce2594a6ec092cd96b92d0b920372f5.zip | |
Properly integrate modules into the loading process (Bug#30164).
* src/lread.c (Fload): Don't defer to module-load immediately when
encountering a module, but use the normal loading machinery to
properly set up load-history, check for recursive loads, print
messages, etc.
* test/src/emacs-module-tests.el (module/load-history): New test.
(module/describe-function-1): Adapt test.
* etc/NEWS: Mention fixed behavior.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -275,6 +275,10 @@ file name extensions. | |||
| 275 | ** The new function 'read-answer' accepts either long or short answers | 275 | ** The new function 'read-answer' accepts either long or short answers |
| 276 | depending on the new customizable variable 'read-answer-short'. | 276 | depending on the new customizable variable 'read-answer-short'. |
| 277 | 277 | ||
| 278 | ** The function 'load' now behaves correctly when loading modules. | ||
| 279 | Specifically, it puts the module name into 'load-history', prints | ||
| 280 | loading messages if requested, and protects against recursive loads. | ||
| 281 | |||
| 278 | 282 | ||
| 279 | * Changes in Emacs 27.1 on Non-Free Operating Systems | 283 | * Changes in Emacs 27.1 on Non-Free Operating Systems |
| 280 | 284 | ||