# HG changeset patch
# User Karl Heuer <kwzh@gnu.org>
# Date 933349616 0
# Node ID 07b44154638f865164958ea93c64f8b1ac8de485
# Parent  1d78cd7c460dcd096b2896c658dbc7f3e6a0e40c
(Fdefalias): Call Ffset instead of duplicating code.

diff -r 1d78cd7c460d -r 07b44154638f src/data.c
--- 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;
 }