comparison src/symbols.c @ 4535:69a1eda3da06

Distinguish vars and functions in #'symbol-file, #'describe-{function,variable} lisp/ChangeLog addition: 2008-12-22 Aidan Kehoe <kehoea@parhasard.net> * loadhist.el (symbol-file): Add support for differentiating between variables and functions to #'symbol-file. * help.el (describe-function-1): (describe-variable): Call #'symbol-function explicitly with a 'defun or 'defvar argument, depending on whether we're looking for a variable or a function. * cus-face.el (custom-declare-face): Record information about the face in the load history; code taken from GNU, pre-GPLv3 revision 1.45. src/ChangeLog addition: 2008-12-22 Aidan Kehoe <kehoea@parhasard.net> * symbols.c (Fdefine_function): * eval.c (define_function): Record explicitly that we're defining a function in the load history, in both these files.
author Aidan Kehoe <kehoea@parhasard.net>
date Mon, 22 Dec 2008 14:07:48 +0000
parents af95657e0bfd
children 48b45a606961
comparison
equal deleted inserted replaced
4534:f32c7f843961 4535:69a1eda3da06
716 */ 716 */
717 (symbol, newdef)) 717 (symbol, newdef))
718 { 718 {
719 /* This function can GC */ 719 /* This function can GC */
720 Ffset (symbol, newdef); 720 Ffset (symbol, newdef);
721 LOADHIST_ATTACH (symbol); 721 LOADHIST_ATTACH (Fcons (Qdefun, symbol));
722 return newdef; 722 return newdef;
723 } 723 }
724 724
725 DEFUN ("subr-name", Fsubr_name, 1, 1, 0, /* 725 DEFUN ("subr-name", Fsubr_name, 1, 1, 0, /*
726 Return name of function SUBR. 726 Return name of function SUBR.