diff options
author | Andrea Corallo <akrl@sdf.org> | 2021-04-01 14:27:12 +0200 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2021-04-01 21:49:38 +0200 |
commit | dc393517ca1cfef7770bffdfe2b7fd3c2c5e7bbf (patch) | |
tree | fda89f0efa7a4024ebb091a01d7b9e70075dde3c /lisp/emacs-lisp | |
parent | 8d550700c535dbcd4721cc65c0a11decbf070abb (diff) | |
download | emacs-dc393517ca1cfef7770bffdfe2b7fd3c2c5e7bbf.tar.gz emacs-dc393517ca1cfef7770bffdfe2b7fd3c2c5e7bbf.tar.bz2 emacs-dc393517ca1cfef7770bffdfe2b7fd3c2c5e7bbf.zip |
Issue a warning when eln look-up fails due to missing .el source file.
* lisp/emacs-lisp/comp.el (comp-warning-on-missing-source): New
customize.
* src/lread.c (maybe_swap_for_eln): Issue a warning when eln
look-up fails due to missing .el source file.
* src/comp.c (syms_of_comp): Define
'Qcomp_warning_on_missing_source'.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/comp.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 213eb7b4126..7f41a97f6b9 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -180,6 +180,13 @@ the .eln output directory." :type 'boolean :version "28.1") +(defcustom comp-warning-on-missing-source t + "Emit a warning if a byte-code file being loaded has no corresponding source. +The source file is necessary for native code file look-up and deferred +compilation mechanism." + :type 'boolean + :version "28.1") + (defvar no-native-compile nil "Non-nil to prevent native-compiling of Emacs Lisp code. Note that when `no-byte-compile' is set to non-nil it overrides the value of |