Mercurial > emacs
comparison lisp/emacs-lisp/edebug.el @ 15302:c23c9712ef5c
Use executing-kbd-macro, not executing-macro.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Wed, 29 May 1996 17:17:34 +0000 |
parents | e72246089ebc |
children | 096142df0b36 |
comparison
equal
deleted
inserted
replaced
15301:a68e276baffd | 15302:c23c9712ef5c |
---|---|
6 ;; Keywords: lisp, tools, maint | 6 ;; Keywords: lisp, tools, maint |
7 | 7 |
8 ;; LCD Archive Entry: | 8 ;; LCD Archive Entry: |
9 ;; edebug|Daniel LaLiberte|liberte@cs.uiuc.edu | 9 ;; edebug|Daniel LaLiberte|liberte@cs.uiuc.edu |
10 ;; |A source level debugger for Emacs Lisp. | 10 ;; |A source level debugger for Emacs Lisp. |
11 ;; |$Date: 1996/03/20 13:19:48 $|$Revision: 3.5.1.27 $|~/modes/edebug.el| | 11 ;; |$Date: 1996/03/20 13:30:16 $|$Revision: 3.6 $|~/modes/edebug.el| |
12 | 12 |
13 ;; This file is part of GNU Emacs. | 13 ;; This file is part of GNU Emacs. |
14 | 14 |
15 ;; GNU Emacs is free software; you can redistribute it and/or modify | 15 ;; GNU Emacs is free software; you can redistribute it and/or modify |
16 ;; it under the terms of the GNU General Public License as published by | 16 ;; it under the terms of the GNU General Public License as published by |
83 ;; For the early revision history, see edebug-history. | 83 ;; For the early revision history, see edebug-history. |
84 | 84 |
85 ;;; Code: | 85 ;;; Code: |
86 | 86 |
87 (defconst edebug-version | 87 (defconst edebug-version |
88 (let ((raw-version "$Revision: 3.5.1.27 $")) | 88 (let ((raw-version "$Revision: 3.6 $")) |
89 (substring raw-version (string-match "[0-9.]*" raw-version) | 89 (substring raw-version (string-match "[0-9.]*" raw-version) |
90 (match-end 0)))) | 90 (match-end 0)))) |
91 | 91 |
92 (require 'backquote) | 92 (require 'backquote) |
93 | 93 |
2261 | 2261 |
2262 ;; Lexical bindings must be uncompiled for this to work. | 2262 ;; Lexical bindings must be uncompiled for this to work. |
2263 (cl-lexical-debug t) | 2263 (cl-lexical-debug t) |
2264 | 2264 |
2265 ;; Save the outside value of executing macro. (here??) | 2265 ;; Save the outside value of executing macro. (here??) |
2266 (edebug-outside-executing-macro executing-macro) | 2266 (edebug-outside-executing-macro executing-kbd-macro) |
2267 (edebug-outside-pre-command-hook pre-command-hook) | 2267 (edebug-outside-pre-command-hook pre-command-hook) |
2268 (edebug-outside-post-command-hook post-command-hook) | 2268 (edebug-outside-post-command-hook post-command-hook) |
2269 (edebug-outside-post-command-idle-hook post-command-idle-hook)) | 2269 (edebug-outside-post-command-idle-hook post-command-idle-hook)) |
2270 (unwind-protect | 2270 (unwind-protect |
2271 (let (;; Don't keep reading from an executing kbd macro | 2271 (let (;; Don't keep reading from an executing kbd macro |
2272 ;; within edebug unless edebug-continue-kbd-macro is | 2272 ;; within edebug unless edebug-continue-kbd-macro is |
2273 ;; non-nil. Again, local binding may not be best. | 2273 ;; non-nil. Again, local binding may not be best. |
2274 (executing-macro | 2274 (executing-kbd-macro |
2275 (if edebug-continue-kbd-macro executing-macro)) | 2275 (if edebug-continue-kbd-macro executing-kbd-macro)) |
2276 | 2276 |
2277 ;; Disable command hooks. This is essential when | 2277 ;; Disable command hooks. This is essential when |
2278 ;; a hook function is instrumented - to avoid infinite loop. | 2278 ;; a hook function is instrumented - to avoid infinite loop. |
2279 ;; This may be more than we need, however. | 2279 ;; This may be more than we need, however. |
2280 (pre-command-hook nil) | 2280 (pre-command-hook nil) |
2288 (fset 'signal 'edebug-signal) | 2288 (fset 'signal 'edebug-signal) |
2289 (unwind-protect | 2289 (unwind-protect |
2290 (edebug-enter edebug-function edebug-args edebug-body) | 2290 (edebug-enter edebug-function edebug-args edebug-body) |
2291 (fset 'signal (symbol-function 'edebug-original-signal)))) | 2291 (fset 'signal (symbol-function 'edebug-original-signal)))) |
2292 ;; Reset global variables in case outside value was changed. | 2292 ;; Reset global variables in case outside value was changed. |
2293 (setq executing-macro edebug-outside-executing-macro | 2293 (setq executing-kbd-macro edebug-outside-executing-macro |
2294 pre-command-hook edebug-outside-pre-command-hook | 2294 pre-command-hook edebug-outside-pre-command-hook |
2295 post-command-hook edebug-outside-post-command-hook | 2295 post-command-hook edebug-outside-post-command-hook |
2296 post-command-idle-hook edebug-outside-post-command-idle-hook | 2296 post-command-idle-hook edebug-outside-post-command-idle-hook |
2297 ))) | 2297 ))) |
2298 | 2298 |
3563 (last-nonmenu-event edebug-outside-last-nonmenu-event) | 3563 (last-nonmenu-event edebug-outside-last-nonmenu-event) |
3564 (track-mouse edebug-outside-track-mouse) | 3564 (track-mouse edebug-outside-track-mouse) |
3565 (standard-output edebug-outside-standard-output) | 3565 (standard-output edebug-outside-standard-output) |
3566 (standard-input edebug-outside-standard-input) | 3566 (standard-input edebug-outside-standard-input) |
3567 | 3567 |
3568 (executing-macro edebug-outside-executing-macro) | 3568 (executing-kbd-macro edebug-outside-executing-macro) |
3569 (defining-kbd-macro edebug-outside-defining-kbd-macro) | 3569 (defining-kbd-macro edebug-outside-defining-kbd-macro) |
3570 (pre-command-hook edebug-outside-pre-command-hook) | 3570 (pre-command-hook edebug-outside-pre-command-hook) |
3571 (post-command-hook edebug-outside-post-command-hook) | 3571 (post-command-hook edebug-outside-post-command-hook) |
3572 (post-command-idle-hook edebug-outside-post-command-idle-hook) | 3572 (post-command-idle-hook edebug-outside-post-command-idle-hook) |
3573 | 3573 |
3605 edebug-outside-last-nonmenu-event last-nonmenu-event | 3605 edebug-outside-last-nonmenu-event last-nonmenu-event |
3606 edebug-outside-track-mouse track-mouse | 3606 edebug-outside-track-mouse track-mouse |
3607 edebug-outside-standard-output standard-output | 3607 edebug-outside-standard-output standard-output |
3608 edebug-outside-standard-input standard-input | 3608 edebug-outside-standard-input standard-input |
3609 | 3609 |
3610 edebug-outside-executing-macro executing-macro | 3610 edebug-outside-executing-macro executing-kbd-macro |
3611 edebug-outside-defining-kbd-macro defining-kbd-macro | 3611 edebug-outside-defining-kbd-macro defining-kbd-macro |
3612 edebug-outside-pre-command-hook pre-command-hook | 3612 edebug-outside-pre-command-hook pre-command-hook |
3613 edebug-outside-post-command-hook post-command-hook | 3613 edebug-outside-post-command-hook post-command-hook |
3614 edebug-outside-post-command-idle-hook post-command-idle-hook | 3614 edebug-outside-post-command-idle-hook post-command-idle-hook |
3615 | 3615 |