diff options
Diffstat (limited to 'src/comp.c')
-rw-r--r-- | src/comp.c | 3 |
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. */) 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). |