comparison src/data.c @ 16434:e46fcec4629d

(Fdefine_function): Function definition deleted. (syms_of_data): Don't call defsubr for it.
author Richard M. Stallman <rms@gnu.org>
date Sat, 12 Oct 1996 23:52:30 +0000
parents f388360fb59a
children 6ca8ed287a53
comparison
equal deleted inserted replaced
16433:63dc01de1823 16434:e46fcec4629d
643 newdef = XSYMBOL (symbol)->function; 643 newdef = XSYMBOL (symbol)->function;
644 } 644 }
645 return newdef; 645 return newdef;
646 } 646 }
647 647
648 /* This name should be removed once it is eliminated from elsewhere. */
649
650 DEFUN ("defalias", Fdefalias, Sdefalias, 2, 2, 0, 648 DEFUN ("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\
652 Associates the function with the current load file, if any.")
653 (symbol, newdef)
654 register Lisp_Object symbol, newdef;
655 {
656 CHECK_SYMBOL (symbol, 0);
657 if (!NILP (Vautoload_queue) && !EQ (XSYMBOL (symbol)->function, Qunbound))
658 Vautoload_queue = Fcons (Fcons (symbol, XSYMBOL (symbol)->function),
659 Vautoload_queue);
660 XSYMBOL (symbol)->function = newdef;
661 /* Handle automatic advice activation */
662 if (CONSP (XSYMBOL (symbol)->plist) && !NILP (Fget (symbol, Qad_advice_info)))
663 {
664 call2 (Qad_activate, symbol, Qnil);
665 newdef = XSYMBOL (symbol)->function;
666 }
667 LOADHIST_ATTACH (symbol);
668 return newdef;
669 }
670
671 DEFUN ("define-function", Fdefine_function, Sdefine_function, 2, 2, 0,
672 "Set SYMBOL's function definition to NEWVAL, and return NEWVAL.\n\
673 Associates the function with the current load file, if any.") 650 Associates the function with the current load file, if any.")
674 (symbol, newdef) 651 (symbol, newdef)
675 register Lisp_Object symbol, newdef; 652 register Lisp_Object symbol, newdef;
676 { 653 {
677 CHECK_SYMBOL (symbol, 0); 654 CHECK_SYMBOL (symbol, 0);
2661 defsubr (&Sfmakunbound); 2638 defsubr (&Sfmakunbound);
2662 defsubr (&Sboundp); 2639 defsubr (&Sboundp);
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);
2670 defsubr (&Sdefault_boundp); 2646 defsubr (&Sdefault_boundp);
2671 defsubr (&Sdefault_value); 2647 defsubr (&Sdefault_value);