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:
parent
443a1c3f44
commit
edad5f9701
1 changed files with 5 additions and 2 deletions
|
|
@ -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)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue