1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-23 22:20:24 -08:00

(elp-instrument-list): Check argument type explicitly. Doc fix.

This commit is contained in:
Chong Yidong 2008-11-24 15:09:02 +00:00
parent 443a1c3f44
commit edad5f9701

View file

@ -340,9 +340,12 @@ Argument FUNSYM is the symbol of a defined function."
;;;###autoload
(defun elp-instrument-list (&optional list)
"Instrument for profiling, all functions in `elp-function-list'.
Use optional LIST if provided instead."
"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: ")
(unless (listp list)
(signal 'wrong-type-argument 'listp list))
(let ((list (or list elp-function-list)))
(mapcar 'elp-instrument-function list)))