# HG changeset patch # User Lute Kamstra # Date 1118650396 0 # Node ID 8420228eae6672ad6c9dfbdd82773f32ba19ff45 # Parent 8a4e1b58242546333fdc6fcb024e2e77198d1798 (cancel-debug-on-entry): Make the empty string argument obsolete. diff -r 8a4e1b582425 -r 8420228eae66 lisp/emacs-lisp/debug.el --- a/lisp/emacs-lisp/debug.el Mon Jun 13 06:43:12 2005 +0000 +++ b/lisp/emacs-lisp/debug.el Mon Jun 13 08:13:16 2005 +0000 @@ -693,16 +693,19 @@ ;;;###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