diff options
| author | Karl Heuer | 1994-04-29 23:21:37 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-04-29 23:21:37 +0000 |
| commit | c15c5d408d696928862ca2848a359231e373556c (patch) | |
| tree | 1140b585bb4b36962da9c5c99d5f9af3a82ec121 /src/data.c | |
| parent | 6ba93f9d7ba1b20ee69c441ecba2cbb8cce5203c (diff) | |
| download | emacs-c15c5d408d696928862ca2848a359231e373556c.tar.gz emacs-c15c5d408d696928862ca2848a359231e373556c.zip | |
(Ffset, Ffmakunbound): Signal an error if SYM is nil or t.
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/data.c b/src/data.c index 8054379799c..8a345139116 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -506,6 +506,8 @@ DEFUN ("fmakunbound", Ffmakunbound, Sfmakunbound, 1, 1, 0, "Make SYMBOL's functi | |||
| 506 | register Lisp_Object sym; | 506 | register Lisp_Object sym; |
| 507 | { | 507 | { |
| 508 | CHECK_SYMBOL (sym, 0); | 508 | CHECK_SYMBOL (sym, 0); |
| 509 | if (NILP (sym) || EQ (sym, Qt)) | ||
| 510 | return Fsignal (Qsetting_constant, Fcons (sym, Qnil)); | ||
| 509 | XSYMBOL (sym)->function = Qunbound; | 511 | XSYMBOL (sym)->function = Qunbound; |
| 510 | return sym; | 512 | return sym; |
| 511 | } | 513 | } |
| @@ -546,7 +548,8 @@ DEFUN ("fset", Ffset, Sfset, 2, 2, 0, | |||
| 546 | register Lisp_Object sym, newdef; | 548 | register Lisp_Object sym, newdef; |
| 547 | { | 549 | { |
| 548 | CHECK_SYMBOL (sym, 0); | 550 | CHECK_SYMBOL (sym, 0); |
| 549 | 551 | if (NILP (sym) || EQ (sym, Qt)) | |
| 552 | return Fsignal (Qsetting_constant, Fcons (sym, Qnil)); | ||
| 550 | if (!NILP (Vautoload_queue) && !EQ (XSYMBOL (sym)->function, Qunbound)) | 553 | if (!NILP (Vautoload_queue) && !EQ (XSYMBOL (sym)->function, Qunbound)) |
| 551 | Vautoload_queue = Fcons (Fcons (sym, XSYMBOL (sym)->function), | 554 | Vautoload_queue = Fcons (Fcons (sym, XSYMBOL (sym)->function), |
| 552 | Vautoload_queue); | 555 | Vautoload_queue); |