diff options
| author | Richard M. Stallman | 2005-03-08 03:06:53 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-03-08 03:06:53 +0000 |
| commit | 51485df27dccfc08ee97d08c8489625177fdd66e (patch) | |
| tree | 28dc3e09fdd3f1af9f55de02ed4427af349f0fbb | |
| parent | 937dbf8c44ef25f3453372a4ebe6e3708d41095b (diff) | |
| download | emacs-51485df27dccfc08ee97d08c8489625177fdd66e.tar.gz emacs-51485df27dccfc08ee97d08c8489625177fdd66e.zip | |
(Writing Emacs Primitives): Update `or' example.
Update limit on # args of subr.
| -rw-r--r-- | lispref/internals.texi | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/lispref/internals.texi b/lispref/internals.texi index a4c641a40a8..5a83c82ff5f 100644 --- a/lispref/internals.texi +++ b/lispref/internals.texi | |||
| @@ -477,28 +477,22 @@ usage: (or CONDITIONS ...) */) | |||
| 477 | (args) | 477 | (args) |
| 478 | Lisp_Object args; | 478 | Lisp_Object args; |
| 479 | @{ | 479 | @{ |
| 480 | register Lisp_Object val; | 480 | register Lisp_Object val = Qnil; |
| 481 | Lisp_Object args_left; | ||
| 482 | struct gcpro gcpro1; | 481 | struct gcpro gcpro1; |
| 483 | @end group | 482 | @end group |
| 484 | 483 | ||
| 485 | @group | 484 | @group |
| 486 | if (NILP (args)) | 485 | GCPRO1 (args); |
| 487 | return Qnil; | ||
| 488 | |||
| 489 | args_left = args; | ||
| 490 | GCPRO1 (args_left); | ||
| 491 | @end group | 486 | @end group |
| 492 | 487 | ||
| 493 | @group | 488 | @group |
| 494 | do | 489 | while (CONSP (args)) |
| 495 | @{ | 490 | @{ |
| 496 | val = Feval (Fcar (args_left)); | 491 | val = Feval (XCAR (args)); |
| 497 | if (!NILP (val)) | 492 | if (!NILP (val)) |
| 498 | break; | 493 | break; |
| 499 | args_left = Fcdr (args_left); | 494 | args = XCDR (args); |
| 500 | @} | 495 | @} |
| 501 | while (!NILP (args_left)); | ||
| 502 | @end group | 496 | @end group |
| 503 | 497 | ||
| 504 | @group | 498 | @group |
| @@ -549,7 +543,7 @@ indicating a special form that receives unevaluated arguments, or | |||
| 549 | @code{MANY}, indicating an unlimited number of evaluated arguments (the | 543 | @code{MANY}, indicating an unlimited number of evaluated arguments (the |
| 550 | equivalent of @code{&rest}). Both @code{UNEVALLED} and @code{MANY} are | 544 | equivalent of @code{&rest}). Both @code{UNEVALLED} and @code{MANY} are |
| 551 | macros. If @var{max} is a number, it may not be less than @var{min} and | 545 | macros. If @var{max} is a number, it may not be less than @var{min} and |
| 552 | it may not be greater than seven. | 546 | it may not be greater than eight. |
| 553 | 547 | ||
| 554 | @item interactive | 548 | @item interactive |
| 555 | This is an interactive specification, a string such as might be used as | 549 | This is an interactive specification, a string such as might be used as |