diff options
| author | Eli Zaretskii <eliz@gnu.org> | 2001-05-14 17:52:12 +0000 |
|---|---|---|
| committer | Eli Zaretskii <eliz@gnu.org> | 2001-05-14 17:52:12 +0000 |
| commit | 940cf42ecb1803d6045b80663bad85d4c24bd298 (patch) | |
| tree | a4e8e73a7e42d53fd9f7a1cd128b6d6406a7031c /lisp | |
| parent | f4500bec23692b8674a45dff751dff3c3d20dfeb (diff) | |
| download | emacs-940cf42ecb1803d6045b80663bad85d4c24bd298.tar.gz | |
(elp-instrument-package): Don't allow empty prefixes.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/elp.el | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5f91a19636c..b8f28b24c7a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2001-05-14 Eli Zaretskii <eliz@is.elta.co.il> + + * emacs-lisp/elp.el (elp-instrument-package): Don't allow empty + prefixes. + 2001-05-14 Gerd Moellmann <gerd@gnu.org> * hexl.el (hexl-current-address): Print a message when called diff --git a/lisp/emacs-lisp/elp.el b/lisp/emacs-lisp/elp.el index 42dc1bc070b..af189126a09 100644 --- a/lisp/emacs-lisp/elp.el +++ b/lisp/emacs-lisp/elp.el @@ -323,6 +323,8 @@ For example, to instrument all ELP functions, do the following: \\[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 |
