aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2016-01-16 16:54:35 +0200
committerEli Zaretskii2016-01-16 16:54:35 +0200
commit964ba0f5261b2de1c5979cef8727cd1663b4438b (patch)
tree5c71acc5a95b2782e3ab595f255378a2c6629e9a /doc
parent2460cfac091c6a5b095816bef9e639f9da88f432 (diff)
downloademacs-964ba0f5261b2de1c5979cef8727cd1663b4438b.tar.gz
emacs-964ba0f5261b2de1c5979cef8727cd1663b4438b.zip
Document 'funcall-interactively'
* doc/lispref/commands.texi (Interactive Call): Document 'funcall-interactively'. * doc/lispref/functions.texi (Calling Functions): Mention 'funcall-interactively' and provide a cross-reference.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/commands.texi8
-rw-r--r--doc/lispref/functions.texi4
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
695This function works like @code{funcall} (@pxref{Calling Functions}),
696but 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
699signaling 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
696This function executes @var{command}. The argument @var{command} must 704This 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
754expressions. @code{funcall} cannot provide these because, as we saw 754expressions. @code{funcall} cannot provide these because, as we saw
755above, it never knows them in the first place. 755above, it never knows them in the first place.
756 756
757If you need to use @code{funcall} to call a command and make it behave
758as 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)