diff options
| author | Wilfred Hughes | 2017-05-29 01:04:41 +0100 |
|---|---|---|
| committer | Wilfred Hughes | 2017-05-29 01:04:41 +0100 |
| commit | c5cde97ba3a28f3a55a6584c78a7455712a77825 (patch) | |
| tree | 87582db341955ab7ec32018dc1d7eec3bb9e7382 | |
| parent | f7c4bad17d83297ee9a1b57552b1944020f23aea (diff) | |
| download | emacs-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.el | 5 |
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? | |||
| 4649 | To test whether your function was called with `call-interactively', | 4649 | To test whether your function was called with `call-interactively', |
| 4650 | either (i) add an extra optional argument and give it an `interactive' | 4650 | either (i) add an extra optional argument and give it an `interactive' |
| 4651 | spec that specifies non-nil unconditionally (such as \"p\"); or (ii) | 4651 | spec that specifies non-nil unconditionally (such as \"p\"); or (ii) |
| 4652 | use `called-interactively-p'." | 4652 | use `called-interactively-p'. |
| 4653 | |||
| 4654 | To 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 | ||