Mercurial > emacs
changeset 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 | 923f0775555f |
children | 31c8be5fdd0d |
files | lisp/emacs-lisp/elp.el |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
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)))