diff options
author | Lute Kamstra <lute@gnu.org> | 2005-06-13 08:14:06 +0000 |
---|---|---|
committer | Lute Kamstra <lute@gnu.org> | 2005-06-13 08:14:06 +0000 |
commit | dd72a03ac28d34e970c073949f4819999fef1360 (patch) | |
tree | 7eb4075c8398e67ed1ee9f41ffe96379b28030bc /lisp/emacs-lisp | |
parent | 225ff03789844f6ee9a5c63900490db4e85a54da (diff) | |
download | emacs-dd72a03ac28d34e970c073949f4819999fef1360.tar.gz emacs-dd72a03ac28d34e970c073949f4819999fef1360.tar.bz2 emacs-dd72a03ac28d34e970c073949f4819999fef1360.zip |
(cancel-debug-on-entry): Make the empty string argument obsolete.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/debug.el | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index 83e07f6d199..795c6418e5a 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el @@ -693,16 +693,19 @@ Redefining FUNCTION also cancels it." ;;;###autoload (defun cancel-debug-on-entry (&optional function) "Undo effect of \\[debug-on-entry] on FUNCTION. -If argument is nil or an empty string, cancel for all functions. +If FUNCTION is nil, cancel debug-on-entry for all functions. When called interactively, prompt for FUNCTION in the minibuffer. To specify a nil argument interactively, exit with an empty minibuffer." (interactive (list (let ((name (completing-read "Cancel debug on entry (to function): " (mapcar 'symbol-name debug-function-list) - nil t nil))) - (if name (intern name))))) - (if (and function (not (string= function ""))) + nil t))) + (when name + (unless (string= name "") + (intern name)))))) + (if (and function + (not (string= function ""))) ; Pre 22.1 compatibility test. (progn (let ((defn (debug-on-entry-1 function nil))) (condition-case nil |