diff options
| author | Stefan Monnier | 2012-09-12 15:16:36 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-09-12 15:16:36 -0400 |
| commit | bfeae2cf098dcf5bdb4af14d896e790cbe91d60f (patch) | |
| tree | db59532750052577bf07f28ee4304dee4a6e9ff5 /lisp/emacs-lisp/debug.el | |
| parent | 8099e36b7edde645bfc1a13bfa142ae7645e6bd6 (diff) | |
| download | emacs-bfeae2cf098dcf5bdb4af14d896e790cbe91d60f.tar.gz emacs-bfeae2cf098dcf5bdb4af14d896e790cbe91d60f.zip | |
Remove unread-command-char.
* src/keyboard.c (read_char, requeued_events_pending_p, Finput_pending_p)
(Fdiscard_input, quit_throw_to_read_char, init_keyboard)
(syms_of_keyboard): Remove support for unread-command-char.
* lisp/emacs-lisp/debug.el (debugger-outer-unread-command-char, debug)
(debugger-env-macro): Remove support for unread-command-char.
* lisp/ehelp.el (with-electric-help): Accept functions in
electric-help-form-to-execute.
(electric-help-execute-extended, electric-help-ctrl-x-prefix): Use it.
And replace unread-command-char -> unread-command-events.
* lisp/subr.el (set-temporary-overlay-map): Minimize slightly the impact of
the temporary map re-appearing on emulation-mode-map-alists.
* lisp/emacs-lisp/edebug.el (def-edebug-form-spec): Remove, it's been broken
since 22.1.
Diffstat (limited to 'lisp/emacs-lisp/debug.el')
| -rw-r--r-- | lisp/emacs-lisp/debug.el | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index 8b89e65c5d9..774b4d3d600 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el | |||
| @@ -110,10 +110,6 @@ This is to optimize `debugger-make-xrefs'.") | |||
| 110 | (defvar debugger-outer-track-mouse) | 110 | (defvar debugger-outer-track-mouse) |
| 111 | (defvar debugger-outer-last-command) | 111 | (defvar debugger-outer-last-command) |
| 112 | (defvar debugger-outer-this-command) | 112 | (defvar debugger-outer-this-command) |
| 113 | ;; unread-command-char is obsolete, | ||
| 114 | ;; but we still save and restore it | ||
| 115 | ;; in case some user program still tries to set it. | ||
| 116 | (defvar debugger-outer-unread-command-char) | ||
| 117 | (defvar debugger-outer-unread-command-events) | 113 | (defvar debugger-outer-unread-command-events) |
| 118 | (defvar debugger-outer-unread-post-input-method-events) | 114 | (defvar debugger-outer-unread-post-input-method-events) |
| 119 | (defvar debugger-outer-last-input-event) | 115 | (defvar debugger-outer-last-input-event) |
| @@ -185,8 +181,6 @@ first will be printed into the backtrace buffer." | |||
| 185 | (debugger-outer-track-mouse track-mouse) | 181 | (debugger-outer-track-mouse track-mouse) |
| 186 | (debugger-outer-last-command last-command) | 182 | (debugger-outer-last-command last-command) |
| 187 | (debugger-outer-this-command this-command) | 183 | (debugger-outer-this-command this-command) |
| 188 | (debugger-outer-unread-command-char | ||
| 189 | (with-no-warnings unread-command-char)) | ||
| 190 | (debugger-outer-unread-command-events unread-command-events) | 184 | (debugger-outer-unread-command-events unread-command-events) |
| 191 | (debugger-outer-unread-post-input-method-events | 185 | (debugger-outer-unread-post-input-method-events |
| 192 | unread-post-input-method-events) | 186 | unread-post-input-method-events) |
| @@ -221,8 +215,6 @@ first will be printed into the backtrace buffer." | |||
| 221 | (cursor-in-echo-area nil)) | 215 | (cursor-in-echo-area nil)) |
| 222 | (unwind-protect | 216 | (unwind-protect |
| 223 | (save-excursion | 217 | (save-excursion |
| 224 | (with-no-warnings | ||
| 225 | (setq unread-command-char -1)) | ||
| 226 | (when (eq (car debugger-args) 'debug) | 218 | (when (eq (car debugger-args) 'debug) |
| 227 | ;; Skip the frames for backtrace-debug, byte-code, | 219 | ;; Skip the frames for backtrace-debug, byte-code, |
| 228 | ;; and implement-debug-on-entry. | 220 | ;; and implement-debug-on-entry. |
| @@ -302,8 +294,6 @@ first will be printed into the backtrace buffer." | |||
| 302 | (setq track-mouse debugger-outer-track-mouse) | 294 | (setq track-mouse debugger-outer-track-mouse) |
| 303 | (setq last-command debugger-outer-last-command) | 295 | (setq last-command debugger-outer-last-command) |
| 304 | (setq this-command debugger-outer-this-command) | 296 | (setq this-command debugger-outer-this-command) |
| 305 | (with-no-warnings | ||
| 306 | (setq unread-command-char debugger-outer-unread-command-char)) | ||
| 307 | (setq unread-command-events debugger-outer-unread-command-events) | 297 | (setq unread-command-events debugger-outer-unread-command-events) |
| 308 | (setq unread-post-input-method-events | 298 | (setq unread-post-input-method-events |
| 309 | debugger-outer-unread-post-input-method-events) | 299 | debugger-outer-unread-post-input-method-events) |
| @@ -605,16 +595,7 @@ Applies to the frame whose line point is on in the backtrace." | |||
| 605 | (cursor-in-echo-area debugger-outer-cursor-in-echo-area)) | 595 | (cursor-in-echo-area debugger-outer-cursor-in-echo-area)) |
| 606 | (set-match-data debugger-outer-match-data) | 596 | (set-match-data debugger-outer-match-data) |
| 607 | (prog1 | 597 | (prog1 |
| 608 | (let ((save-ucc (with-no-warnings unread-command-char))) | 598 | (progn ,@body) |
| 609 | (unwind-protect | ||
| 610 | (progn | ||
| 611 | (with-no-warnings | ||
| 612 | (setq unread-command-char debugger-outer-unread-command-char)) | ||
| 613 | (prog1 (progn ,@body) | ||
| 614 | (with-no-warnings | ||
| 615 | (setq debugger-outer-unread-command-char unread-command-char)))) | ||
| 616 | (with-no-warnings | ||
| 617 | (setq unread-command-char save-ucc)))) | ||
| 618 | (setq debugger-outer-match-data (match-data)) | 599 | (setq debugger-outer-match-data (match-data)) |
| 619 | (setq debugger-outer-load-read-function load-read-function) | 600 | (setq debugger-outer-load-read-function load-read-function) |
| 620 | (setq debugger-outer-overriding-terminal-local-map | 601 | (setq debugger-outer-overriding-terminal-local-map |