diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/eval.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 023c2ef6aab..d04796abc3a 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -487,6 +487,10 @@ usage: (setq [SYM VAL]...) */) | |||
| 487 | if (CONSP (args)) | 487 | if (CONSP (args)) |
| 488 | { | 488 | { |
| 489 | Lisp_Object args_left = args; | 489 | Lisp_Object args_left = args; |
| 490 | Lisp_Object numargs = Flength (args); | ||
| 491 | |||
| 492 | if (XINT (numargs) & 1) | ||
| 493 | xsignal2 (Qwrong_number_of_arguments, Qsetq, numargs); | ||
| 490 | 494 | ||
| 491 | do | 495 | do |
| 492 | { | 496 | { |
| @@ -3654,6 +3658,7 @@ To prevent this happening, set `quit-flag' to nil | |||
| 3654 | before making `inhibit-quit' nil. */); | 3658 | before making `inhibit-quit' nil. */); |
| 3655 | Vinhibit_quit = Qnil; | 3659 | Vinhibit_quit = Qnil; |
| 3656 | 3660 | ||
| 3661 | DEFSYM (Qsetq, "setq"); | ||
| 3657 | DEFSYM (Qinhibit_quit, "inhibit-quit"); | 3662 | DEFSYM (Qinhibit_quit, "inhibit-quit"); |
| 3658 | DEFSYM (Qautoload, "autoload"); | 3663 | DEFSYM (Qautoload, "autoload"); |
| 3659 | DEFSYM (Qinhibit_debugger, "inhibit-debugger"); | 3664 | DEFSYM (Qinhibit_debugger, "inhibit-debugger"); |