aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorRichard M. Stallman1996-10-12 23:52:30 +0000
committerRichard M. Stallman1996-10-12 23:52:30 +0000
commit339b405d57cdb71ea0d79facda249077d749aa01 (patch)
tree5d57eec75119ae4f975606e1faf80d85d894da5c /src/data.c
parent30fc6c655c4046ccb8b4a6d5a06a6198c842f25b (diff)
downloademacs-339b405d57cdb71ea0d79facda249077d749aa01.tar.gz
emacs-339b405d57cdb71ea0d79facda249077d749aa01.zip
(Fdefine_function): Function definition deleted.
(syms_of_data): Don't call defsubr for it.
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/data.c b/src/data.c
index 744e19db712..16519d17fd7 100644
--- a/src/data.c
+++ b/src/data.c
@@ -645,8 +645,6 @@ DEFUN ("fset", Ffset, Sfset, 2, 2, 0,
645 return newdef; 645 return newdef;
646} 646}
647 647
648/* This name should be removed once it is eliminated from elsewhere. */
649
650DEFUN ("defalias", Fdefalias, Sdefalias, 2, 2, 0, 648DEFUN ("defalias", Fdefalias, Sdefalias, 2, 2, 0,
651 "Set SYMBOL's function definition to NEWDEF, and return NEWDEF.\n\ 649 "Set SYMBOL's function definition to NEWDEF, and return NEWDEF.\n\
652Associates the function with the current load file, if any.") 650Associates the function with the current load file, if any.")
@@ -668,27 +666,6 @@ Associates the function with the current load file, if any.")
668 return newdef; 666 return newdef;
669} 667}
670 668
671DEFUN ("define-function", Fdefine_function, Sdefine_function, 2, 2, 0,
672 "Set SYMBOL's function definition to NEWVAL, and return NEWVAL.\n\
673Associates the function with the current load file, if any.")
674 (symbol, newdef)
675 register Lisp_Object symbol, newdef;
676{
677 CHECK_SYMBOL (symbol, 0);
678 if (!NILP (Vautoload_queue) && !EQ (XSYMBOL (symbol)->function, Qunbound))
679 Vautoload_queue = Fcons (Fcons (symbol, XSYMBOL (symbol)->function),
680 Vautoload_queue);
681 XSYMBOL (symbol)->function = newdef;
682 /* Handle automatic advice activation */
683 if (CONSP (XSYMBOL (symbol)->plist) && !NILP (Fget (symbol, Qad_advice_info)))
684 {
685 call2 (Qad_activate, symbol, Qnil);
686 newdef = XSYMBOL (symbol)->function;
687 }
688 LOADHIST_ATTACH (symbol);
689 return newdef;
690}
691
692DEFUN ("setplist", Fsetplist, Ssetplist, 2, 2, 0, 669DEFUN ("setplist", Fsetplist, Ssetplist, 2, 2, 0,
693 "Set SYMBOL's property list to NEWVAL, and return NEWVAL.") 670 "Set SYMBOL's property list to NEWVAL, and return NEWVAL.")
694 (symbol, newplist) 671 (symbol, newplist)
@@ -2663,7 +2640,6 @@ syms_of_data ()
2663 defsubr (&Sfboundp); 2640 defsubr (&Sfboundp);
2664 defsubr (&Sfset); 2641 defsubr (&Sfset);
2665 defsubr (&Sdefalias); 2642 defsubr (&Sdefalias);
2666 defsubr (&Sdefine_function);
2667 defsubr (&Ssetplist); 2643 defsubr (&Ssetplist);
2668 defsubr (&Ssymbol_value); 2644 defsubr (&Ssymbol_value);
2669 defsubr (&Sset); 2645 defsubr (&Sset);