diff options
| author | Stefan Monnier | 2021-03-02 09:13:57 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2021-03-02 09:13:57 -0500 |
| commit | 20596a5ca29e879ca81a9209cd57a85a4ae690f2 (patch) | |
| tree | dfaa18c5e0e5253ad6bb146e11e74dac974a6c20 | |
| parent | 6dee194535b4841714a33bb888bb94da6e1e9b1c (diff) | |
| download | emacs-20596a5ca29e879ca81a9209cd57a85a4ae690f2.tar.gz emacs-20596a5ca29e879ca81a9209cd57a85a4ae690f2.zip | |
* lisp/emacs-lisp/trace.el (trace-values): Work outside of traced function
| -rw-r--r-- | lisp/emacs-lisp/trace.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/trace.el b/lisp/emacs-lisp/trace.el index fa07d622484..9354687b081 100644 --- a/lisp/emacs-lisp/trace.el +++ b/lisp/emacs-lisp/trace.el | |||
| @@ -161,7 +161,7 @@ | |||
| 161 | "Helper function to get internal values. | 161 | "Helper function to get internal values. |
| 162 | You can call this function to add internal values in the trace buffer." | 162 | You can call this function to add internal values in the trace buffer." |
| 163 | (unless inhibit-trace | 163 | (unless inhibit-trace |
| 164 | (with-current-buffer trace-buffer | 164 | (with-current-buffer (get-buffer-create trace-buffer) |
| 165 | (goto-char (point-max)) | 165 | (goto-char (point-max)) |
| 166 | (insert | 166 | (insert |
| 167 | (trace-entry-message | 167 | (trace-entry-message |
| @@ -174,7 +174,7 @@ and CONTEXT is a string describing the dynamic context (e.g. values of | |||
| 174 | some global variables)." | 174 | some global variables)." |
| 175 | (let ((print-circle t)) | 175 | (let ((print-circle t)) |
| 176 | (format "%s%s%d -> %S%s\n" | 176 | (format "%s%s%d -> %S%s\n" |
| 177 | (mapconcat 'char-to-string (make-string (1- level) ?|) " ") | 177 | (mapconcat 'char-to-string (make-string (max 0 (1- level)) ?|) " ") |
| 178 | (if (> level 1) " " "") | 178 | (if (> level 1) " " "") |
| 179 | level | 179 | level |
| 180 | ;; FIXME: Make it so we can click the function name to jump to its | 180 | ;; FIXME: Make it so we can click the function name to jump to its |