comparison lisp/emacs-lisp/elp.el @ 37730:76d0f25cf1a3

(elp-instrument-package): Don't allow empty prefixes.
author Eli Zaretskii <eliz@gnu.org>
date Mon, 14 May 2001 17:47:55 +0000
parents 64902dbf6ff9
children 908fb90452ba
comparison
equal deleted inserted replaced
37729:b5bf03e1d095 37730:76d0f25cf1a3
321 "Instrument for profiling, all functions which start with PREFIX. 321 "Instrument for profiling, all functions which start with PREFIX.
322 For example, to instrument all ELP functions, do the following: 322 For example, to instrument all ELP functions, do the following:
323 323
324 \\[elp-instrument-package] RET elp- RET" 324 \\[elp-instrument-package] RET elp- RET"
325 (interactive "sPrefix of package to instrument: ") 325 (interactive "sPrefix of package to instrument: ")
326 (if (zerop (length prefix))
327 (error "Instrumenting all Emacs functions would render Emacs unusable."))
326 (elp-instrument-list 328 (elp-instrument-list
327 (mapcar 329 (mapcar
328 'intern 330 'intern
329 (all-completions 331 (all-completions
330 prefix obarray 332 prefix obarray