diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/commands.texi | 8 | ||||
| -rw-r--r-- | doc/lispref/functions.texi | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/doc/lispref/commands.texi b/doc/lispref/commands.texi index dee43cefb15..9c1df895161 100644 --- a/doc/lispref/commands.texi +++ b/doc/lispref/commands.texi | |||
| @@ -691,6 +691,14 @@ default is the return value of @code{this-command-keys-vector}. | |||
| 691 | @xref{Definition of this-command-keys-vector}. | 691 | @xref{Definition of this-command-keys-vector}. |
| 692 | @end defun | 692 | @end defun |
| 693 | 693 | ||
| 694 | @defun funcall-interactively function &rest arguments | ||
| 695 | This function works like @code{funcall} (@pxref{Calling Functions}), | ||
| 696 | but it makes the call look like an interactive invocation: a call to | ||
| 697 | @code{called-interactively-p} inside @var{function} will return | ||
| 698 | @code{t}. If @var{function} is not a command, it is called without | ||
| 699 | signaling an error. | ||
| 700 | @end defun | ||
| 701 | |||
| 694 | @defun command-execute command &optional record-flag keys special | 702 | @defun command-execute command &optional record-flag keys special |
| 695 | @cindex keyboard macro execution | 703 | @cindex keyboard macro execution |
| 696 | This function executes @var{command}. The argument @var{command} must | 704 | This function executes @var{command}. The argument @var{command} must |
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index d3d0a422574..1e8e7540395 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi | |||
| @@ -754,6 +754,10 @@ they make sense only when given the unevaluated argument | |||
| 754 | expressions. @code{funcall} cannot provide these because, as we saw | 754 | expressions. @code{funcall} cannot provide these because, as we saw |
| 755 | above, it never knows them in the first place. | 755 | above, it never knows them in the first place. |
| 756 | 756 | ||
| 757 | If you need to use @code{funcall} to call a command and make it behave | ||
| 758 | as if invoked interactively, use @code{funcall-interactively} | ||
| 759 | (@pxref{Interactive Call}). | ||
| 760 | |||
| 757 | @example | 761 | @example |
| 758 | @group | 762 | @group |
| 759 | (setq f 'list) | 763 | (setq f 'list) |