diff options
| author | Karl Heuer | 1999-07-30 15:46:56 +0000 |
|---|---|---|
| committer | Karl Heuer | 1999-07-30 15:46:56 +0000 |
| commit | 32f532b7e27b1b825efcdfb62b85b38b292c50a9 (patch) | |
| tree | f16dfae39802b575969a4659de5d365d6ed1cdfd /src/data.c | |
| parent | 9fcc68f7d7d52590a8346d05f3d10b75a83cfd5e (diff) | |
| download | emacs-32f532b7e27b1b825efcdfb62b85b38b292c50a9.tar.gz emacs-32f532b7e27b1b825efcdfb62b85b38b292c50a9.zip | |
(Fdefalias): Call Ffset instead of duplicating code.
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/data.c b/src/data.c index 117c8f2ee59..a7e16c93abb 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -693,17 +693,7 @@ Associates the function with the current load file, if any.") | |||
| 693 | (symbol, definition) | 693 | (symbol, definition) |
| 694 | register Lisp_Object symbol, definition; | 694 | register Lisp_Object symbol, definition; |
| 695 | { | 695 | { |
| 696 | CHECK_SYMBOL (symbol, 0); | 696 | definition = Ffset (symbol, definition); |
| 697 | if (!NILP (Vautoload_queue) && !EQ (XSYMBOL (symbol)->function, Qunbound)) | ||
| 698 | Vautoload_queue = Fcons (Fcons (symbol, XSYMBOL (symbol)->function), | ||
| 699 | Vautoload_queue); | ||
| 700 | XSYMBOL (symbol)->function = definition; | ||
| 701 | /* Handle automatic advice activation */ | ||
| 702 | if (CONSP (XSYMBOL (symbol)->plist) && !NILP (Fget (symbol, Qad_advice_info))) | ||
| 703 | { | ||
| 704 | call2 (Qad_activate, symbol, Qnil); | ||
| 705 | definition = XSYMBOL (symbol)->function; | ||
| 706 | } | ||
| 707 | LOADHIST_ATTACH (symbol); | 697 | LOADHIST_ATTACH (symbol); |
| 708 | return definition; | 698 | return definition; |
| 709 | } | 699 | } |