diff options
| author | Lute Kamstra | 2005-06-13 08:14:06 +0000 |
|---|---|---|
| committer | Lute Kamstra | 2005-06-13 08:14:06 +0000 |
| commit | dd72a03ac28d34e970c073949f4819999fef1360 (patch) | |
| tree | 7eb4075c8398e67ed1ee9f41ffe96379b28030bc | |
| parent | 225ff03789844f6ee9a5c63900490db4e85a54da (diff) | |
| download | emacs-dd72a03ac28d34e970c073949f4819999fef1360.tar.gz emacs-dd72a03ac28d34e970c073949f4819999fef1360.zip | |
(cancel-debug-on-entry): Make the empty string argument obsolete.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/debug.el | 11 |
2 files changed, 12 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ee10a5f787e..0dd7b735ee6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-06-13 Lute Kamstra <lute@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/debug.el (cancel-debug-on-entry): Make the empty | ||
| 4 | string argument obsolete. | ||
| 5 | |||
| 1 | 2005-06-13 Carsten Dominik <dominik@science.uva.nl> | 6 | 2005-06-13 Carsten Dominik <dominik@science.uva.nl> |
| 2 | 7 | ||
| 3 | * textmodes/org.el: (org-CUA-compatible): New option. | 8 | * textmodes/org.el: (org-CUA-compatible): New option. |
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." | |||
| 693 | ;;;###autoload | 693 | ;;;###autoload |
| 694 | (defun cancel-debug-on-entry (&optional function) | 694 | (defun cancel-debug-on-entry (&optional function) |
| 695 | "Undo effect of \\[debug-on-entry] on FUNCTION. | 695 | "Undo effect of \\[debug-on-entry] on FUNCTION. |
| 696 | If argument is nil or an empty string, cancel for all functions. | 696 | If FUNCTION is nil, cancel debug-on-entry for all functions. |
| 697 | When called interactively, prompt for FUNCTION in the minibuffer. | 697 | When called interactively, prompt for FUNCTION in the minibuffer. |
| 698 | To specify a nil argument interactively, exit with an empty minibuffer." | 698 | To specify a nil argument interactively, exit with an empty minibuffer." |
| 699 | (interactive | 699 | (interactive |
| 700 | (list (let ((name | 700 | (list (let ((name |
| 701 | (completing-read "Cancel debug on entry (to function): " | 701 | (completing-read "Cancel debug on entry (to function): " |
| 702 | (mapcar 'symbol-name debug-function-list) | 702 | (mapcar 'symbol-name debug-function-list) |
| 703 | nil t nil))) | 703 | nil t))) |
| 704 | (if name (intern name))))) | 704 | (when name |
| 705 | (if (and function (not (string= function ""))) | 705 | (unless (string= name "") |
| 706 | (intern name)))))) | ||
| 707 | (if (and function | ||
| 708 | (not (string= function ""))) ; Pre 22.1 compatibility test. | ||
| 706 | (progn | 709 | (progn |
| 707 | (let ((defn (debug-on-entry-1 function nil))) | 710 | (let ((defn (debug-on-entry-1 function nil))) |
| 708 | (condition-case nil | 711 | (condition-case nil |