changeset 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 b5bf03e1d095
children 7c313c4b3eba
files lisp/emacs-lisp/elp.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/elp.el	Mon May 14 16:57:37 2001 +0000
+++ b/lisp/emacs-lisp/elp.el	Mon May 14 17:47:55 2001 +0000
@@ -323,6 +323,8 @@
 
     \\[elp-instrument-package] RET elp- RET"
   (interactive "sPrefix of package to instrument: ")
+  (if (zerop (length prefix))
+      (error "Instrumenting all Emacs functions would render Emacs unusable."))
   (elp-instrument-list
    (mapcar
     'intern