changeset 55879:7fd80a9c338d

(Fcondition_case): Fix usage. Simplify.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 01 Jun 2004 23:21:55 +0000
parents 83ecae86dde6
children 1b2cb608f18e
files src/eval.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c	Tue Jun 01 23:18:25 2004 +0000
+++ b/src/eval.c	Tue Jun 01 23:21:55 2004 +0000
@@ -1220,7 +1220,7 @@
 
 The value of the last BODY form is returned from the condition-case.
 See also the function `signal' for more info.
-usage: (condition-case VAR BODYFORM HANDLERS...)  */)
+usage: (condition-case VAR BODYFORM &rest HANDLERS)  */)
      (args)
      Lisp_Object args;
 {
@@ -1235,10 +1235,10 @@
   handlers = Fcdr (Fcdr (args));
   CHECK_SYMBOL (var);
 
-  for (val = handlers; ! NILP (val); val = Fcdr (val))
+  for (val = handlers; CONSP (val); val = XCDR (val))
     {
       Lisp_Object tem;
-      tem = Fcar (val);
+      tem = XCAR (val);
       if (! (NILP (tem)
 	     || (CONSP (tem)
 		 && (SYMBOLP (XCAR (tem))