comparison src/callint.c @ 74912:4c1d868b634b

(Finteractive): Doc fix.
author Richard M. Stallman <rms@gnu.org>
date Tue, 26 Dec 2006 03:54:08 +0000
parents 82ed0adffca9
children e90d04cd455a 17e0dd217877 bc10a33dd40b
comparison
equal deleted inserted replaced
74911:4ddd2af6dc19 74912:4c1d868b634b
58 /* Marker used within call-interactively to refer to point. */ 58 /* Marker used within call-interactively to refer to point. */
59 static Lisp_Object point_marker; 59 static Lisp_Object point_marker;
60 60
61 /* String for the prompt text used in Fcall_interactively. */ 61 /* String for the prompt text used in Fcall_interactively. */
62 static Lisp_Object callint_message; 62 static Lisp_Object callint_message;
63 63
64 /* ARGSUSED */ 64 /* ARGSUSED */
65 DEFUN ("interactive", Finteractive, Sinteractive, 0, UNEVALLED, 0, 65 DEFUN ("interactive", Finteractive, Sinteractive, 0, UNEVALLED, 0,
66 doc: /* Specify a way of parsing arguments for interactive use of a function. 66 doc: /* Specify a way of parsing arguments for interactive use of a function.
67 For example, write 67 For example, write
68 (defun foo (arg) "Doc string" (interactive "p") ...use arg...) 68 (defun foo (arg) "Doc string" (interactive "p") ...use arg...)
100 k -- Key sequence (downcase the last event if needed to get a definition). 100 k -- Key sequence (downcase the last event if needed to get a definition).
101 K -- Key sequence to be redefined (do not downcase the last event). 101 K -- Key sequence to be redefined (do not downcase the last event).
102 m -- Value of mark as number. Does not do I/O. 102 m -- Value of mark as number. Does not do I/O.
103 M -- Any string. Inherits the current input method. 103 M -- Any string. Inherits the current input method.
104 n -- Number read using minibuffer. 104 n -- Number read using minibuffer.
105 N -- Raw prefix arg, or if none, do like code `n'. 105 N -- Numeric prefix arg, or if none, do like code `n'.
106 p -- Prefix arg converted to number. Does not do I/O. 106 p -- Prefix arg converted to number. Does not do I/O.
107 P -- Prefix arg in raw form. Does not do I/O. 107 P -- Prefix arg in raw form. Does not do I/O.
108 r -- Region: point and mark as 2 numeric args, smallest first. Does no I/O. 108 r -- Region: point and mark as 2 numeric args, smallest first. Does no I/O.
109 s -- Any string. Does not inherit the current input method. 109 s -- Any string. Does not inherit the current input method.
110 S -- Any symbol. 110 S -- Any symbol.
686 inheriting the current input method. */ 686 inheriting the current input method. */
687 args[i] = Fread_string (callint_message, 687 args[i] = Fread_string (callint_message,
688 Qnil, Qnil, Qnil, Qt); 688 Qnil, Qnil, Qnil, Qt);
689 break; 689 break;
690 690
691 case 'N': /* Prefix arg, else number from minibuffer */ 691 case 'N': /* Prefix arg as number, else number from minibuffer */
692 if (!NILP (prefix_arg)) 692 if (!NILP (prefix_arg))
693 goto have_prefix_arg; 693 goto have_prefix_arg;
694 case 'n': /* Read number from minibuffer. */ 694 case 'n': /* Read number from minibuffer. */
695 { 695 {
696 int first = 1; 696 int first = 1;