[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/native-comp dcfd367 1/3: * Fix `load-history' causing a number o
From: |
Andrea Corallo |
Subject: |
feature/native-comp dcfd367 1/3: * Fix `load-history' causing a number of spurious compiler warnings |
Date: |
Fri, 4 Dec 2020 17:27:30 -0500 (EST) |
branch: feature/native-comp
commit dcfd367d282ab37f00373a424fd193022a8f4bf6
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>
* 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.
---
src/comp.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/comp.c b/src/comp.c
index 590e330..1842aeb 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -5051,6 +5051,9 @@ This gets called by top_level_run during the load phase.
*/)
make_subr (SYMBOL_NAME (name), minarg, maxarg, c_name, doc_idx, intspec,
comp_u);
+ if (AUTOLOADP (XSYMBOL (name)->u.s.function))
+ /* Remember that the function was already an autoload. */
+ LOADHIST_ATTACH (Fcons (Qt, name));
LOADHIST_ATTACH (Fcons (Qdefun, name));
{ /* Handle automatic advice activation (bug#42038).