Mercurial > emacs
diff lisp/emacs-lisp/elp.el @ 99872:7784aa29294b
(elp-instrument-list): Check argument type explicitly. Doc fix.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Mon, 24 Nov 2008 15:09:02 +0000 |
parents | 90a2847062be |
children | 684861183d28 |
line wrap: on
line diff
--- a/lisp/emacs-lisp/elp.el Mon Nov 24 15:08:52 2008 +0000 +++ b/lisp/emacs-lisp/elp.el Mon Nov 24 15:09:02 2008 +0000 @@ -340,9 +340,12 @@ ;;;###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)))