aboutsummaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorJim Blandy1992-04-01 11:14:15 +0000
committerJim Blandy1992-04-01 11:14:15 +0000
commit08564963293aac2ea90a3dee54f48ded962238eb (patch)
tree4424e2ded321dd8606dabc4ef00a6f058108725b /src/eval.c
parentca1d1d23251bc8f159d0131d345702aabf2dd078 (diff)
downloademacs-08564963293aac2ea90a3dee54f48ded962238eb.tar.gz
emacs-08564963293aac2ea90a3dee54f48ded962238eb.zip
*** empty log message ***
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c
index a030ff8b700..c4fcc808c5d 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -624,6 +624,10 @@ Each VALUEFORM can refer to the symbols already bound by this VARLIST.")
624 elt = Fcar (varlist); 624 elt = Fcar (varlist);
625 if (XTYPE (elt) == Lisp_Symbol) 625 if (XTYPE (elt) == Lisp_Symbol)
626 specbind (elt, Qnil); 626 specbind (elt, Qnil);
627 else if (! NILP (Fcdr (Fcdr (elt))))
628 Fsignal (Qerror,
629 Fcons (build_string ("`let' bindings can have only one value-form"),
630 elt));
627 else 631 else
628 { 632 {
629 val = Feval (Fcar (Fcdr (elt))); 633 val = Feval (Fcar (Fcdr (elt)));
@@ -668,6 +672,10 @@ All the VALUEFORMs are evalled before any symbols are bound.")
668 elt = Fcar (varlist); 672 elt = Fcar (varlist);
669 if (XTYPE (elt) == Lisp_Symbol) 673 if (XTYPE (elt) == Lisp_Symbol)
670 temps [argnum++] = Qnil; 674 temps [argnum++] = Qnil;
675 else if (! NILP (Fcdr (Fcdr (elt))))
676 Fsignal (Qerror,
677 Fcons (build_string ("`let' bindings can have only one value-form"),
678 elt));
671 else 679 else
672 temps [argnum++] = Feval (Fcar (Fcdr (elt))); 680 temps [argnum++] = Feval (Fcar (Fcdr (elt)));
673 gcpro2.nvars = argnum; 681 gcpro2.nvars = argnum;
@@ -1499,8 +1507,11 @@ DEFUN ("eval", Feval, Seval, 1, 1, 0,
1499 goto done; 1507 goto done;
1500 1508
1501 default: 1509 default:
1502 error ("Ffuncall doesn't handle that number of arguments."); 1510 /* Someone has created a subr that takes more arguments than
1503 goto done; 1511 is supported by this code. We need to either rewrite the
1512 subr to use a different argument protocol, or add more
1513 cases to this switch. */
1514 abort ();
1504 } 1515 }
1505 } 1516 }
1506 if (XTYPE (fun) == Lisp_Compiled) 1517 if (XTYPE (fun) == Lisp_Compiled)