diff options
| author | Richard M. Stallman | 2003-07-07 20:57:50 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-07-07 20:57:50 +0000 |
| commit | 12cf32ce47088b2ec29a070d4a2910295675ecdf (patch) | |
| tree | 5d35881f178dcff822fe8a06411bc7b3b09e6230 | |
| parent | 2fe837ffdc5ec488a2d87db3d92740a18e44ae2e (diff) | |
| download | emacs-12cf32ce47088b2ec29a070d4a2910295675ecdf.tar.gz emacs-12cf32ce47088b2ec29a070d4a2910295675ecdf.zip | |
(debug, debugger-env-macro): Use with-no-warnings while accessing and
binding unread-command-char.
| -rw-r--r-- | lisp/emacs-lisp/debug.el | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index f62b0c4836e..10c4fd4f734 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el | |||
| @@ -128,7 +128,8 @@ first will be printed into the backtrace buffer." | |||
| 128 | (debugger-outer-track-mouse track-mouse) | 128 | (debugger-outer-track-mouse track-mouse) |
| 129 | (debugger-outer-last-command last-command) | 129 | (debugger-outer-last-command last-command) |
| 130 | (debugger-outer-this-command this-command) | 130 | (debugger-outer-this-command this-command) |
| 131 | (debugger-outer-unread-command-char unread-command-char) | 131 | (debugger-outer-unread-command-char |
| 132 | (with-no-warnings unread-command-char)) | ||
| 132 | (debugger-outer-unread-command-events unread-command-events) | 133 | (debugger-outer-unread-command-events unread-command-events) |
| 133 | (debugger-outer-unread-post-input-method-events | 134 | (debugger-outer-unread-post-input-method-events |
| 134 | unread-post-input-method-events) | 135 | unread-post-input-method-events) |
| @@ -145,7 +146,7 @@ first will be printed into the backtrace buffer." | |||
| 145 | (setq overriding-terminal-local-map nil) | 146 | (setq overriding-terminal-local-map nil) |
| 146 | ;; Don't let these magic variables affect the debugger itself. | 147 | ;; Don't let these magic variables affect the debugger itself. |
| 147 | (let ((last-command nil) this-command track-mouse | 148 | (let ((last-command nil) this-command track-mouse |
| 148 | (unread-command-char -1) unread-command-events | 149 | unread-command-events |
| 149 | unread-post-input-method-events | 150 | unread-post-input-method-events |
| 150 | last-input-event last-command-event last-nonmenu-event | 151 | last-input-event last-command-event last-nonmenu-event |
| 151 | last-event-frame | 152 | last-event-frame |
| @@ -161,6 +162,8 @@ first will be printed into the backtrace buffer." | |||
| 161 | (unwind-protect | 162 | (unwind-protect |
| 162 | (save-excursion | 163 | (save-excursion |
| 163 | (save-window-excursion | 164 | (save-window-excursion |
| 165 | (with-no-warnings | ||
| 166 | (setq unread-command-char -1)) | ||
| 164 | (pop-to-buffer debugger-buffer) | 167 | (pop-to-buffer debugger-buffer) |
| 165 | (debugger-mode) | 168 | (debugger-mode) |
| 166 | (debugger-setup-buffer debugger-args) | 169 | (debugger-setup-buffer debugger-args) |
| @@ -214,7 +217,8 @@ first will be printed into the backtrace buffer." | |||
| 214 | (setq track-mouse debugger-outer-track-mouse) | 217 | (setq track-mouse debugger-outer-track-mouse) |
| 215 | (setq last-command debugger-outer-last-command) | 218 | (setq last-command debugger-outer-last-command) |
| 216 | (setq this-command debugger-outer-this-command) | 219 | (setq this-command debugger-outer-this-command) |
| 217 | (setq unread-command-char debugger-outer-unread-command-char) | 220 | (with-no-warnings |
| 221 | (setq unread-command-char debugger-outer-unread-command-char)) | ||
| 218 | (setq unread-command-events debugger-outer-unread-command-events) | 222 | (setq unread-command-events debugger-outer-unread-command-events) |
| 219 | (setq unread-post-input-method-events | 223 | (setq unread-post-input-method-events |
| 220 | debugger-outer-unread-post-input-method-events) | 224 | debugger-outer-unread-post-input-method-events) |
| @@ -487,7 +491,6 @@ Applies to the frame whose line point is on in the backtrace." | |||
| 487 | (track-mouse debugger-outer-track-mouse) | 491 | (track-mouse debugger-outer-track-mouse) |
| 488 | (last-command debugger-outer-last-command) | 492 | (last-command debugger-outer-last-command) |
| 489 | (this-command debugger-outer-this-command) | 493 | (this-command debugger-outer-this-command) |
| 490 | (unread-command-char debugger-outer-unread-command-char) | ||
| 491 | (unread-command-events debugger-outer-unread-command-events) | 494 | (unread-command-events debugger-outer-unread-command-events) |
| 492 | (unread-post-input-method-events | 495 | (unread-post-input-method-events |
| 493 | debugger-outer-unread-post-input-method-events) | 496 | debugger-outer-unread-post-input-method-events) |
| @@ -500,7 +503,17 @@ Applies to the frame whose line point is on in the backtrace." | |||
| 500 | (inhibit-redisplay debugger-outer-inhibit-redisplay) | 503 | (inhibit-redisplay debugger-outer-inhibit-redisplay) |
| 501 | (cursor-in-echo-area debugger-outer-cursor-in-echo-area)) | 504 | (cursor-in-echo-area debugger-outer-cursor-in-echo-area)) |
| 502 | (set-match-data debugger-outer-match-data) | 505 | (set-match-data debugger-outer-match-data) |
| 503 | (prog1 (progn ,@body) | 506 | (prog1 |
| 507 | (let ((save-ucc (with-no-warnings unread-command-char))) | ||
| 508 | (unwind-protect | ||
| 509 | (progn | ||
| 510 | (with-no-warnings | ||
| 511 | (setq unread-command-char debugger-outer-unread-command-char)) | ||
| 512 | (prog1 (progn ,@body) | ||
| 513 | (with-no-warnings | ||
| 514 | (setq debugger-outer-unread-command-char unread-command-char)))) | ||
| 515 | (with-no-warnings | ||
| 516 | (setq unread-command-char save-ucc)))) | ||
| 504 | (setq debugger-outer-match-data (match-data)) | 517 | (setq debugger-outer-match-data (match-data)) |
| 505 | (setq debugger-outer-load-read-function load-read-function) | 518 | (setq debugger-outer-load-read-function load-read-function) |
| 506 | (setq debugger-outer-overriding-terminal-local-map | 519 | (setq debugger-outer-overriding-terminal-local-map |
| @@ -509,7 +522,6 @@ Applies to the frame whose line point is on in the backtrace." | |||
| 509 | (setq debugger-outer-track-mouse track-mouse) | 522 | (setq debugger-outer-track-mouse track-mouse) |
| 510 | (setq debugger-outer-last-command last-command) | 523 | (setq debugger-outer-last-command last-command) |
| 511 | (setq debugger-outer-this-command this-command) | 524 | (setq debugger-outer-this-command this-command) |
| 512 | (setq debugger-outer-unread-command-char unread-command-char) | ||
| 513 | (setq debugger-outer-unread-command-events unread-command-events) | 525 | (setq debugger-outer-unread-command-events unread-command-events) |
| 514 | (setq debugger-outer-unread-post-input-method-events | 526 | (setq debugger-outer-unread-post-input-method-events |
| 515 | unread-post-input-method-events) | 527 | unread-post-input-method-events) |