# HG changeset patch # User Eli Zaretskii # Date 989862475 0 # Node ID 76d0f25cf1a32335547f474ddee0ac6201bb5663 # Parent b5bf03e1d095cb92c568b8e2afdba98623c34a42 (elp-instrument-package): Don't allow empty prefixes. diff -r b5bf03e1d095 -r 76d0f25cf1a3 lisp/emacs-lisp/elp.el --- 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