aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilfred Hughes2017-05-29 01:04:41 +0100
committerWilfred Hughes2017-05-29 01:04:41 +0100
commitc5cde97ba3a28f3a55a6584c78a7455712a77825 (patch)
tree87582db341955ab7ec32018dc1d7eec3bb9e7382
parentf7c4bad17d83297ee9a1b57552b1944020f23aea (diff)
downloademacs-c5cde97ba3a28f3a55a6584c78a7455712a77825.tar.gz
emacs-c5cde97ba3a28f3a55a6584c78a7455712a77825.zip
Add suggestion to docstring
* lisp/subr.el (interactive-p): Mention commandp, as this is often what users are actually looking for.
-rw-r--r--lisp/subr.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 8d5d2a779c6..0dce02de8ba 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -4649,7 +4649,10 @@ called from a keyboard macro or in batch mode?
4649To test whether your function was called with `call-interactively', 4649To test whether your function was called with `call-interactively',
4650either (i) add an extra optional argument and give it an `interactive' 4650either (i) add an extra optional argument and give it an `interactive'
4651spec that specifies non-nil unconditionally (such as \"p\"); or (ii) 4651spec that specifies non-nil unconditionally (such as \"p\"); or (ii)
4652use `called-interactively-p'." 4652use `called-interactively-p'.
4653
4654To test whether a function can be called interactively, use
4655`commandp'."
4653 (declare (obsolete called-interactively-p "23.2")) 4656 (declare (obsolete called-interactively-p "23.2"))
4654 (called-interactively-p 'interactive)) 4657 (called-interactively-p 'interactive))
4655 4658