changeset 25132:07b44154638f

(Fdefalias): Call Ffset instead of duplicating code.
author Karl Heuer <kwzh@gnu.org>
date Fri, 30 Jul 1999 15:46:56 +0000
parents 1d78cd7c460d
children 11070f3c5b59
files src/data.c
diffstat 1 files changed, 1 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/data.c	Fri Jul 30 15:39:42 1999 +0000
+++ b/src/data.c	Fri Jul 30 15:46:56 1999 +0000
@@ -693,17 +693,7 @@
   (symbol, definition)
      register Lisp_Object symbol, definition;
 {
-  CHECK_SYMBOL (symbol, 0);
-  if (!NILP (Vautoload_queue) && !EQ (XSYMBOL (symbol)->function, Qunbound))
-    Vautoload_queue = Fcons (Fcons (symbol, XSYMBOL (symbol)->function),
-			     Vautoload_queue);
-  XSYMBOL (symbol)->function = definition;
-  /* Handle automatic advice activation */
-  if (CONSP (XSYMBOL (symbol)->plist) && !NILP (Fget (symbol, Qad_advice_info)))
-    {
-      call2 (Qad_activate, symbol, Qnil);
-      definition = XSYMBOL (symbol)->function;
-    }
+  definition = Ffset (symbol, definition);
   LOADHIST_ATTACH (symbol);
   return definition;
 }