diff options
| author | Stefan Monnier | 2017-10-20 19:00:11 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2017-10-20 19:00:11 -0400 |
| commit | f44e445d6cc73ffc85f05733756d51d6d4d5dd23 (patch) | |
| tree | fa54ec6beb4b00ac7937cb1ecec3ffbbbe92aca9 | |
| parent | 3b03124a931ebf694f212a78be3cbdc371130ca2 (diff) | |
| download | emacs-f44e445d6cc73ffc85f05733756d51d6d4d5dd23.tar.gz emacs-f44e445d6cc73ffc85f05733756d51d6d4d5dd23.zip | |
* lisp/emacs-lisp/debug.el: Use cl-print more systematically
(debugger-return-value, debugger-eval-expression, debugger--insert-locals):
Use debugger--print.
| -rw-r--r-- | lisp/emacs-lisp/debug.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index 473ead12f5a..192333252a1 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el | |||
| @@ -420,7 +420,7 @@ will be used, such as in a debug on exit from a frame." | |||
| 420 | "from an error" "at function entrance"))) | 420 | "from an error" "at function entrance"))) |
| 421 | (setq debugger-value val) | 421 | (setq debugger-value val) |
| 422 | (princ "Returning " t) | 422 | (princ "Returning " t) |
| 423 | (prin1 debugger-value) | 423 | (debugger--print debugger-value) |
| 424 | (save-excursion | 424 | (save-excursion |
| 425 | ;; Check to see if we've flagged some frame for debug-on-exit, in which | 425 | ;; Check to see if we've flagged some frame for debug-on-exit, in which |
| 426 | ;; case we'll probably come back to the debugger soon. | 426 | ;; case we'll probably come back to the debugger soon. |
| @@ -535,7 +535,7 @@ The environment used is the one when entering the activation frame at point." | |||
| 535 | (debugger-env-macro | 535 | (debugger-env-macro |
| 536 | (let ((val (backtrace-eval exp nframe base))) | 536 | (let ((val (backtrace-eval exp nframe base))) |
| 537 | (prog1 | 537 | (prog1 |
| 538 | (prin1 val t) | 538 | (debugger--print val t) |
| 539 | (let ((str (eval-expression-print-format val))) | 539 | (let ((str (eval-expression-print-format val))) |
| 540 | (if str (princ str t)))))))) | 540 | (if str (princ str t)))))))) |
| 541 | 541 | ||
| @@ -557,7 +557,7 @@ The environment used is the one when entering the activation frame at point." | |||
| 557 | (insert "\n ") | 557 | (insert "\n ") |
| 558 | (prin1 symbol (current-buffer)) | 558 | (prin1 symbol (current-buffer)) |
| 559 | (insert " = ") | 559 | (insert " = ") |
| 560 | (prin1 value (current-buffer)))))))) | 560 | (debugger--print value (current-buffer)))))))) |
| 561 | 561 | ||
| 562 | (defun debugger--show-locals () | 562 | (defun debugger--show-locals () |
| 563 | "For the frame at point, insert locals and add text properties." | 563 | "For the frame at point, insert locals and add text properties." |