diff options
| author | Juanma Barranquero | 2005-07-19 11:34:17 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2005-07-19 11:34:17 +0000 |
| commit | 82fc29a186226bd79a237ba3c67c9f99e69944ca (patch) | |
| tree | 81dd30e618818720af00ab6501f58111b787787b | |
| parent | d8d5c28c13128094a3b57e019af8d08c9928d2a9 (diff) | |
| download | emacs-82fc29a186226bd79a237ba3c67c9f99e69944ca.tar.gz emacs-82fc29a186226bd79a237ba3c67c9f99e69944ca.zip | |
(Fprog2, Fcalled_interactively_p), (syms_of_eval) <debug-on-quit>: Doc fixes.
(Finteractive_p), (syms_of_eval) <max-specpdl-size>: Fix typos in docstrings.
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/eval.c | 34 |
2 files changed, 22 insertions, 19 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8c7986b8eba..d02c4984300 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2005-07-19 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * eval.c (Fprog2, Fcalled_interactively_p), | ||
| 4 | (syms_of_eval) <debug-on-quit>: Doc fixes. | ||
| 5 | (syms_of_eval) <max-specpdl-size>: | ||
| 6 | (Finteractive_p): Fix typos in docstrings. | ||
| 7 | |||
| 1 | 2005-07-19 Kim F. Storm <storm@cua.dk> | 8 | 2005-07-19 Kim F. Storm <storm@cua.dk> |
| 2 | 9 | ||
| 3 | * w32fns.c (Vx_hand_shape): Variable removed. | 10 | * w32fns.c (Vx_hand_shape): Variable removed. |
diff --git a/src/eval.c b/src/eval.c index 3b4e9fe0324..940d496d900 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -471,10 +471,10 @@ usage: (prog1 FIRST BODY...) */) | |||
| 471 | } | 471 | } |
| 472 | 472 | ||
| 473 | DEFUN ("prog2", Fprog2, Sprog2, 2, UNEVALLED, 0, | 473 | DEFUN ("prog2", Fprog2, Sprog2, 2, UNEVALLED, 0, |
| 474 | doc: /* Eval X, Y and BODY sequentially; value from Y. | 474 | doc: /* Eval FORM1, FORM2 and BODY sequentially; value from FORM2. |
| 475 | The value of Y is saved during the evaluation of the remaining args, | 475 | The value of FORM2 is saved during the evaluation of the |
| 476 | whose values are discarded. | 476 | remaining args, whose values are discarded. |
| 477 | usage: (prog2 X Y BODY...) */) | 477 | usage: (prog2 FORM1 FORM2 BODY...) */) |
| 478 | (args) | 478 | (args) |
| 479 | Lisp_Object args; | 479 | Lisp_Object args; |
| 480 | { | 480 | { |
| @@ -564,8 +564,8 @@ usage: (function ARG) */) | |||
| 564 | 564 | ||
| 565 | DEFUN ("interactive-p", Finteractive_p, Sinteractive_p, 0, 0, 0, | 565 | DEFUN ("interactive-p", Finteractive_p, Sinteractive_p, 0, 0, 0, |
| 566 | doc: /* Return t if the function was run directly by user input. | 566 | doc: /* Return t if the function was run directly by user input. |
| 567 | This means that the function was called with call-interactively (which | 567 | This means that the function was called with `call-interactively' |
| 568 | includes being called as the binding of a key) | 568 | \(which includes being called as the binding of a key) |
| 569 | and input is currently coming from the keyboard (not in keyboard macro), | 569 | and input is currently coming from the keyboard (not in keyboard macro), |
| 570 | and Emacs is not running in batch mode (`noninteractive' is nil). | 570 | and Emacs is not running in batch mode (`noninteractive' is nil). |
| 571 | 571 | ||
| @@ -586,14 +586,14 @@ unconditionally for that argument. (`p' is a good way to do this.) */) | |||
| 586 | 586 | ||
| 587 | 587 | ||
| 588 | DEFUN ("called-interactively-p", Fcalled_interactively_p, Scalled_interactively_p, 0, 0, 0, | 588 | DEFUN ("called-interactively-p", Fcalled_interactively_p, Scalled_interactively_p, 0, 0, 0, |
| 589 | doc: /* Return t if the function using this was called with call-interactively. | 589 | doc: /* Return t if the function using this was called with `call-interactively'. |
| 590 | This is used for implementing advice and other function-modifying | 590 | This is used for implementing advice and other function-modifying |
| 591 | features of Emacs. | 591 | features of Emacs. |
| 592 | 592 | ||
| 593 | The cleanest way to test whether your function was called with | 593 | The cleanest way to test whether your function was called with |
| 594 | `call-interactively', the way to do that is by adding an extra | 594 | `call-interactively' is by adding an extra optional argument, |
| 595 | optional argument, and making the `interactive' spec specify non-nil | 595 | and making the `interactive' spec specify non-nil unconditionally |
| 596 | unconditionally for that argument. (`p' is a good way to do this.) */) | 596 | for that argument. (`p' is a good way to do this.) */) |
| 597 | () | 597 | () |
| 598 | { | 598 | { |
| 599 | return interactive_p (1) ? Qt : Qnil; | 599 | return interactive_p (1) ? Qt : Qnil; |
| @@ -2859,8 +2859,7 @@ usage: (funcall FUNCTION &rest ARGUMENTS) */) | |||
| 2859 | val = (*XSUBR (fun)->function) (internal_args[0]); | 2859 | val = (*XSUBR (fun)->function) (internal_args[0]); |
| 2860 | goto done; | 2860 | goto done; |
| 2861 | case 2: | 2861 | case 2: |
| 2862 | val = (*XSUBR (fun)->function) (internal_args[0], | 2862 | val = (*XSUBR (fun)->function) (internal_args[0], internal_args[1]); |
| 2863 | internal_args[1]); | ||
| 2864 | goto done; | 2863 | goto done; |
| 2865 | case 3: | 2864 | case 3: |
| 2866 | val = (*XSUBR (fun)->function) (internal_args[0], internal_args[1], | 2865 | val = (*XSUBR (fun)->function) (internal_args[0], internal_args[1], |
| @@ -2868,8 +2867,7 @@ usage: (funcall FUNCTION &rest ARGUMENTS) */) | |||
| 2868 | goto done; | 2867 | goto done; |
| 2869 | case 4: | 2868 | case 4: |
| 2870 | val = (*XSUBR (fun)->function) (internal_args[0], internal_args[1], | 2869 | val = (*XSUBR (fun)->function) (internal_args[0], internal_args[1], |
| 2871 | internal_args[2], | 2870 | internal_args[2], internal_args[3]); |
| 2872 | internal_args[3]); | ||
| 2873 | goto done; | 2871 | goto done; |
| 2874 | case 5: | 2872 | case 5: |
| 2875 | val = (*XSUBR (fun)->function) (internal_args[0], internal_args[1], | 2873 | val = (*XSUBR (fun)->function) (internal_args[0], internal_args[1], |
| @@ -3395,7 +3393,7 @@ void | |||
| 3395 | syms_of_eval () | 3393 | syms_of_eval () |
| 3396 | { | 3394 | { |
| 3397 | DEFVAR_INT ("max-specpdl-size", &max_specpdl_size, | 3395 | DEFVAR_INT ("max-specpdl-size", &max_specpdl_size, |
| 3398 | doc: /* *Limit on number of Lisp variable bindings & unwind-protects. | 3396 | doc: /* *Limit on number of Lisp variable bindings and `unwind-protect's. |
| 3399 | If Lisp code tries to increase the total number past this amount, | 3397 | If Lisp code tries to increase the total number past this amount, |
| 3400 | an error is signaled. | 3398 | an error is signaled. |
| 3401 | You can safely use a value considerably larger than the default value, | 3399 | You can safely use a value considerably larger than the default value, |
| @@ -3492,10 +3490,8 @@ It does not apply to errors handled by `condition-case'. */); | |||
| 3492 | Vdebug_ignored_errors = Qnil; | 3490 | Vdebug_ignored_errors = Qnil; |
| 3493 | 3491 | ||
| 3494 | DEFVAR_BOOL ("debug-on-quit", &debug_on_quit, | 3492 | DEFVAR_BOOL ("debug-on-quit", &debug_on_quit, |
| 3495 | doc: /* *Non-nil means enter debugger if quit is signaled (C-g, for example). | 3493 | doc: /* *Non-nil means enter debugger if quit is signaled (C-g, for example). |
| 3496 | Does not apply if quit is handled by a `condition-case'. | 3494 | Does not apply if quit is handled by a `condition-case'. */); |
| 3497 | When you evaluate an expression interactively, this variable | ||
| 3498 | is temporarily non-nil if `eval-expression-debug-on-quit' is non-nil. */); | ||
| 3499 | debug_on_quit = 0; | 3495 | debug_on_quit = 0; |
| 3500 | 3496 | ||
| 3501 | DEFVAR_BOOL ("debug-on-next-call", &debug_on_next_call, | 3497 | DEFVAR_BOOL ("debug-on-next-call", &debug_on_next_call, |