summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/elp.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2018-02-17 11:59:36 +0200
committerEli Zaretskii <eliz@gnu.org>2018-02-17 11:59:36 +0200
commitd8917eba1c683d7e4fdbfc38ab52c7bc0025bdc6 (patch)
tree9aafabf49bfe30d8b44efc2e864291e0d168e3b1 /lisp/emacs-lisp/elp.el
parentb228839af18c730d25df8755b8c2e45cccd9ce36 (diff)
downloademacs-d8917eba1c683d7e4fdbfc38ab52c7bc0025bdc6.tar.gz
Improve documentation of Profiling features
* doc/lispref/debugging.texi (Profiling): Improve the description of elp.el. Improve wording of the rest of the section. (Bug#30491) * lisp/emacs-lisp/elp.el (elp-instrument-list): Make the interactive invocation work. Doc fix.
Diffstat (limited to 'lisp/emacs-lisp/elp.el')
-rw-r--r--lisp/emacs-lisp/elp.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/elp.el b/lisp/emacs-lisp/elp.el
index dab17fd75b6..954e7aa73ae 100644
--- a/lisp/emacs-lisp/elp.el
+++ b/lisp/emacs-lisp/elp.el
@@ -278,8 +278,9 @@ Argument FUNSYM is the symbol of a defined function."
(defun elp-instrument-list (&optional list)
"Instrument, for profiling, all functions in `elp-function-list'.
Use optional LIST if provided instead.
-If called interactively, read LIST using the minibuffer."
- (interactive "PList of functions to instrument: ") ;FIXME: Doesn't work?!
+If called interactively, prompt for LIST in the minibuffer;
+type \"nil\" to use `elp-function-list'."
+ (interactive "xList of functions to instrument: ")
(unless (listp list)
(signal 'wrong-type-argument (list 'listp list)))
(mapcar #'elp-instrument-function (or list elp-function-list)))