From 6c7f615ae59b636efe5012f761a25acfd956480d Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Sun, 28 Jun 2020 15:38:48 +0100 Subject: [PATCH] * src/comp.c (Fcomp__register_subr): Remove code duplication using Fdefalias. --- src/comp.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/comp.c b/src/comp.c index bb416ecb19a..3abcabc8933 100644 --- a/src/comp.c +++ b/src/comp.c @@ -4780,17 +4780,7 @@ DEFUN ("comp--register-subr", Fcomp__register_subr, Scomp__register_subr, Lisp_Object tem = make_subr (SYMBOL_NAME (name), minarg, maxarg, c_name, doc_idx, intspec, comp_u); - - LOADHIST_ATTACH (Fcons (Qdefun, name)); - - { /* Handle automatic advice activation (bug#42038). - See `defalias'. */ - Lisp_Object hook = Fget (name, Qdefalias_fset_function); - if (!NILP (hook)) - call2 (hook, name, tem); - else - Ffset (name, tem); - } + Fdefalias (name, tem, Qnil); return tem; } -- 2.39.5