aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrea Corallo2020-12-04 22:05:20 +0100
committerAndrea Corallo2020-12-04 23:21:08 +0100
commitdcfd367d282ab37f00373a424fd193022a8f4bf6 (patch)
tree2e1ce6293a9245c10b0ec6f92f97bfa0bad9aaf8 /src
parent981240078cddbd26b35a65e5311350196542b42b (diff)
downloademacs-dcfd367d282ab37f00373a424fd193022a8f4bf6.tar.gz
emacs-dcfd367d282ab37f00373a424fd193022a8f4bf6.zip
* Fix `load-history' causing a number of spurious compiler warnings
* src/comp.c (Fcomp__register_subr): Fix missing entry into `load-history' indicating that the loaded function was already an autoload.
Diffstat (limited to 'src')
-rw-r--r--src/comp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/comp.c b/src/comp.c
index 590e3307414..1842aeb8393 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -5051,6 +5051,9 @@ This gets called by top_level_run during the load phase. */)
5051 make_subr (SYMBOL_NAME (name), minarg, maxarg, c_name, doc_idx, intspec, 5051 make_subr (SYMBOL_NAME (name), minarg, maxarg, c_name, doc_idx, intspec,
5052 comp_u); 5052 comp_u);
5053 5053
5054 if (AUTOLOADP (XSYMBOL (name)->u.s.function))
5055 /* Remember that the function was already an autoload. */
5056 LOADHIST_ATTACH (Fcons (Qt, name));
5054 LOADHIST_ATTACH (Fcons (Qdefun, name)); 5057 LOADHIST_ATTACH (Fcons (Qdefun, name));
5055 5058
5056 { /* Handle automatic advice activation (bug#42038). 5059 { /* Handle automatic advice activation (bug#42038).