diff options
| author | Richard M. Stallman | 2005-07-11 04:05:39 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-07-11 04:05:39 +0000 |
| commit | 3cc9e6d8176a8dd38f88792dbbebd0f3570e2912 (patch) | |
| tree | b8b48f5939a3e7ce1147e3816ba5b7f4018ff0b5 | |
| parent | d2dafb85a5468d81d357f1969525d6b60581b704 (diff) | |
| download | emacs-3cc9e6d8176a8dd38f88792dbbebd0f3570e2912.tar.gz emacs-3cc9e6d8176a8dd38f88792dbbebd0f3570e2912.zip | |
(edebug-slow-after, edebug-slow-before): Do nothing if edebug-active.
(edebug-enter): Don't do with-timeout-suspend here.
(edebug-display): Do it here instead.
| -rw-r--r-- | lisp/ChangeLog | 35 | ||||
| -rw-r--r-- | lisp/emacs-lisp/edebug.el | 61 |
2 files changed, 67 insertions, 29 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 79ff4e73daa..5f6f751ec5b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,38 @@ | |||
| 1 | 2005-07-11 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/edebug.el (edebug-slow-after, edebug-slow-before): | ||
| 4 | Do nothing if edebug-active. | ||
| 5 | |||
| 6 | * emacs-lisp/edebug.el (edebug-enter): Don't with-timeout-suspend here. | ||
| 7 | (edebug-display): Do it here instead. | ||
| 8 | |||
| 9 | 2005-07-10 Richard M. Stallman <rms@gnu.org> | ||
| 10 | |||
| 11 | * cus-face.el (custom-theme-set-faces): Make it work. | ||
| 12 | (custom-reset-faces): Doc fix. | ||
| 13 | (custom-theme-reset-internal-face, custom-theme-face-value): | ||
| 14 | Functions deleted. | ||
| 15 | |||
| 16 | * custom.el (custom-push-theme): Maintain list of the settings | ||
| 17 | of a given theme in its theme-settings property. | ||
| 18 | Maintain position of old settings in the theme-value | ||
| 19 | or theme-face property. | ||
| 20 | (custom-enabled-themes): New variable. | ||
| 21 | (custom-theme-enabled-p): New function. | ||
| 22 | (provide-theme): Update custom-enabled-themes. | ||
| 23 | Disable and reenable the `user' theme. | ||
| 24 | (require-theme): Doc fix. | ||
| 25 | (custom-do-theme-reset, custom-remove-theme): Functions deleted. | ||
| 26 | (custom-theme-value, custom-theme-variable-value): Likewise. | ||
| 27 | (custom-theme-reset-internal): Likewise. | ||
| 28 | (custom-theme-load-themes): Fix bugs and use custom-disable-theme. | ||
| 29 | (custom-enable-theme, custom-disable-theme): New functions. | ||
| 30 | (custom-variable-theme-value, custom-face-theme-value): Likewise. | ||
| 31 | (custom-theme-recalc-variable, custom-theme-recalc-face): Likewise. | ||
| 32 | (custom-theme-reset-variables): Simplify. | ||
| 33 | (deftheme, custom-declare-theme, custom-make-theme-feature): | ||
| 34 | Definitions moved. | ||
| 35 | |||
| 1 | 2005-07-10 Chong Yidong <cyd@stupidchicken.com> | 36 | 2005-07-10 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 37 | ||
| 3 | * longlines.el (longlines-show-region) | 38 | * longlines.el (longlines-show-region) |
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index 72046399352..1a592709819 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el | |||
| @@ -2244,7 +2244,6 @@ error is signaled again." | |||
| 2244 | (max-specpdl-size (+ 200 max-specpdl-size)) | 2244 | (max-specpdl-size (+ 200 max-specpdl-size)) |
| 2245 | 2245 | ||
| 2246 | (debugger edebug-debugger) ; only while edebug is active. | 2246 | (debugger edebug-debugger) ; only while edebug is active. |
| 2247 | (edebug-with-timeout-suspend (with-timeout-suspend)) | ||
| 2248 | (edebug-outside-debug-on-error debug-on-error) | 2247 | (edebug-outside-debug-on-error debug-on-error) |
| 2249 | (edebug-outside-debug-on-quit debug-on-quit) | 2248 | (edebug-outside-debug-on-quit debug-on-quit) |
| 2250 | ;; Binding these may not be the right thing to do. | 2249 | ;; Binding these may not be the right thing to do. |
| @@ -2290,7 +2289,6 @@ error is signaled again." | |||
| 2290 | (edebug-enter edebug-function edebug-args edebug-body)) | 2289 | (edebug-enter edebug-function edebug-args edebug-body)) |
| 2291 | ;; Reset global variables in case outside value was changed. | 2290 | ;; Reset global variables in case outside value was changed. |
| 2292 | (setq executing-kbd-macro edebug-outside-executing-macro) | 2291 | (setq executing-kbd-macro edebug-outside-executing-macro) |
| 2293 | (with-timeout-unsuspend edebug-with-timeout-suspend) | ||
| 2294 | (edebug-restore-status | 2292 | (edebug-restore-status |
| 2295 | 'post-command-hook edebug-outside-post-command-hook) | 2293 | 'post-command-hook edebug-outside-post-command-hook) |
| 2296 | (edebug-restore-status | 2294 | (edebug-restore-status |
| @@ -2376,18 +2374,19 @@ MSG is printed after `::::} '." | |||
| 2376 | 2374 | ||
| 2377 | 2375 | ||
| 2378 | (defun edebug-slow-before (edebug-before-index) | 2376 | (defun edebug-slow-before (edebug-before-index) |
| 2379 | ;; Debug current function given BEFORE position. | 2377 | (unless edebug-active |
| 2380 | ;; Called from functions compiled with edebug-eval-top-level-form. | 2378 | ;; Debug current function given BEFORE position. |
| 2381 | ;; Return the before index. | 2379 | ;; Called from functions compiled with edebug-eval-top-level-form. |
| 2382 | (setcar edebug-offset-indices edebug-before-index) | 2380 | ;; Return the before index. |
| 2383 | 2381 | (setcar edebug-offset-indices edebug-before-index) | |
| 2384 | ;; Increment frequency count | 2382 | |
| 2385 | (aset edebug-freq-count edebug-before-index | 2383 | ;; Increment frequency count |
| 2386 | (1+ (aref edebug-freq-count edebug-before-index))) | 2384 | (aset edebug-freq-count edebug-before-index |
| 2387 | 2385 | (1+ (aref edebug-freq-count edebug-before-index))) | |
| 2388 | (if (or (not (memq edebug-execution-mode '(Go-nonstop next))) | 2386 | |
| 2389 | (edebug-input-pending-p)) | 2387 | (if (or (not (memq edebug-execution-mode '(Go-nonstop next))) |
| 2390 | (edebug-debugger edebug-before-index 'before nil)) | 2388 | (edebug-input-pending-p)) |
| 2389 | (edebug-debugger edebug-before-index 'before nil))) | ||
| 2391 | edebug-before-index) | 2390 | edebug-before-index) |
| 2392 | 2391 | ||
| 2393 | (defun edebug-fast-before (edebug-before-index) | 2392 | (defun edebug-fast-before (edebug-before-index) |
| @@ -2395,22 +2394,24 @@ MSG is printed after `::::} '." | |||
| 2395 | ) | 2394 | ) |
| 2396 | 2395 | ||
| 2397 | (defun edebug-slow-after (edebug-before-index edebug-after-index edebug-value) | 2396 | (defun edebug-slow-after (edebug-before-index edebug-after-index edebug-value) |
| 2398 | ;; Debug current function given AFTER position and VALUE. | 2397 | (if edebug-active |
| 2399 | ;; Called from functions compiled with edebug-eval-top-level-form. | ||
| 2400 | ;; Return VALUE. | ||
| 2401 | (setcar edebug-offset-indices edebug-after-index) | ||
| 2402 | |||
| 2403 | ;; Increment frequency count | ||
| 2404 | (aset edebug-freq-count edebug-after-index | ||
| 2405 | (1+ (aref edebug-freq-count edebug-after-index))) | ||
| 2406 | (if edebug-test-coverage (edebug-update-coverage)) | ||
| 2407 | |||
| 2408 | (if (and (eq edebug-execution-mode 'Go-nonstop) | ||
| 2409 | (not (edebug-input-pending-p))) | ||
| 2410 | ;; Just return result. | ||
| 2411 | edebug-value | 2398 | edebug-value |
| 2412 | (edebug-debugger edebug-after-index 'after edebug-value) | 2399 | ;; Debug current function given AFTER position and VALUE. |
| 2413 | )) | 2400 | ;; Called from functions compiled with edebug-eval-top-level-form. |
| 2401 | ;; Return VALUE. | ||
| 2402 | (setcar edebug-offset-indices edebug-after-index) | ||
| 2403 | |||
| 2404 | ;; Increment frequency count | ||
| 2405 | (aset edebug-freq-count edebug-after-index | ||
| 2406 | (1+ (aref edebug-freq-count edebug-after-index))) | ||
| 2407 | (if edebug-test-coverage (edebug-update-coverage)) | ||
| 2408 | |||
| 2409 | (if (and (eq edebug-execution-mode 'Go-nonstop) | ||
| 2410 | (not (edebug-input-pending-p))) | ||
| 2411 | ;; Just return result. | ||
| 2412 | edebug-value | ||
| 2413 | (edebug-debugger edebug-after-index 'after edebug-value) | ||
| 2414 | ))) | ||
| 2414 | 2415 | ||
| 2415 | (defun edebug-fast-after (edebug-before-index edebug-after-index edebug-value) | 2416 | (defun edebug-fast-after (edebug-before-index edebug-after-index edebug-value) |
| 2416 | ;; Do nothing but return the value. | 2417 | ;; Do nothing but return the value. |
| @@ -2535,6 +2536,7 @@ MSG is printed after `::::} '." | |||
| 2535 | ;; Uses local variables of edebug-enter, edebug-before, edebug-after | 2536 | ;; Uses local variables of edebug-enter, edebug-before, edebug-after |
| 2536 | ;; and edebug-debugger. | 2537 | ;; and edebug-debugger. |
| 2537 | (let ((edebug-active t) ; for minor mode alist | 2538 | (let ((edebug-active t) ; for minor mode alist |
| 2539 | (edebug-with-timeout-suspend (with-timeout-suspend)) | ||
| 2538 | edebug-stop ; should we enter recursive-edit | 2540 | edebug-stop ; should we enter recursive-edit |
| 2539 | (edebug-point (+ edebug-def-mark | 2541 | (edebug-point (+ edebug-def-mark |
| 2540 | (aref (nth 2 edebug-data) edebug-offset-index))) | 2542 | (aref (nth 2 edebug-data) edebug-offset-index))) |
| @@ -2761,6 +2763,7 @@ MSG is printed after `::::} '." | |||
| 2761 | (set-buffer current-buffer)) | 2763 | (set-buffer current-buffer)) |
| 2762 | ;; ... nothing more. | 2764 | ;; ... nothing more. |
| 2763 | ) | 2765 | ) |
| 2766 | (with-timeout-unsuspend edebug-with-timeout-suspend) | ||
| 2764 | ;; Reset global variables to outside values in case they were changed. | 2767 | ;; Reset global variables to outside values in case they were changed. |
| 2765 | (setq | 2768 | (setq |
| 2766 | overlay-arrow-position edebug-outside-o-a-p | 2769 | overlay-arrow-position edebug-outside-o-a-p |