aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-07-19 11:34:17 +0000
committerJuanma Barranquero2005-07-19 11:34:17 +0000
commit82fc29a186226bd79a237ba3c67c9f99e69944ca (patch)
tree81dd30e618818720af00ab6501f58111b787787b
parentd8d5c28c13128094a3b57e019af8d08c9928d2a9 (diff)
downloademacs-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/ChangeLog7
-rw-r--r--src/eval.c34
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 @@
12005-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
12005-07-19 Kim F. Storm <storm@cua.dk> 82005-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
473DEFUN ("prog2", Fprog2, Sprog2, 2, UNEVALLED, 0, 473DEFUN ("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.
475The value of Y is saved during the evaluation of the remaining args, 475The value of FORM2 is saved during the evaluation of the
476whose values are discarded. 476remaining args, whose values are discarded.
477usage: (prog2 X Y BODY...) */) 477usage: (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
565DEFUN ("interactive-p", Finteractive_p, Sinteractive_p, 0, 0, 0, 565DEFUN ("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.
567This means that the function was called with call-interactively (which 567This means that the function was called with `call-interactively'
568includes being called as the binding of a key) 568\(which includes being called as the binding of a key)
569and input is currently coming from the keyboard (not in keyboard macro), 569and input is currently coming from the keyboard (not in keyboard macro),
570and Emacs is not running in batch mode (`noninteractive' is nil). 570and 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
588DEFUN ("called-interactively-p", Fcalled_interactively_p, Scalled_interactively_p, 0, 0, 0, 588DEFUN ("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'.
590This is used for implementing advice and other function-modifying 590This is used for implementing advice and other function-modifying
591features of Emacs. 591features of Emacs.
592 592
593The cleanest way to test whether your function was called with 593The 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,
595optional argument, and making the `interactive' spec specify non-nil 595and making the `interactive' spec specify non-nil unconditionally
596unconditionally for that argument. (`p' is a good way to do this.) */) 596for 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
3395syms_of_eval () 3393syms_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.
3399If Lisp code tries to increase the total number past this amount, 3397If Lisp code tries to increase the total number past this amount,
3400an error is signaled. 3398an error is signaled.
3401You can safely use a value considerably larger than the default value, 3399You 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).
3496Does not apply if quit is handled by a `condition-case'. 3494Does not apply if quit is handled by a `condition-case'. */);
3497When you evaluate an expression interactively, this variable
3498is 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,