diff options
| author | Stefan Monnier | 2024-04-20 11:23:58 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2024-04-20 11:23:58 -0400 |
| commit | 0536b96011d24797d16d97a59a62f633a3d30472 (patch) | |
| tree | abbeb4bcbae562da6e0f5db2d910576942682045 /java/org/gnu | |
| parent | 24ea3024ae241d1fc5fb3e05d584211070b73d5d (diff) | |
| download | emacs-0536b96011d24797d16d97a59a62f633a3d30472.tar.gz emacs-0536b96011d24797d16d97a59a62f633a3d30472.zip | |
(backtrace--print-func-and-args): Fix (part of) bug#70436
The source of bug#70436 is that we print a value into the buffer
and then we generate its print representation a second time to
get its length to find the bounds of the thing we just printed.
Not only it's wasteful, but it risks bugs because the two
"prints" can be inconsistent with each other.
This is not a complete fix because in the non EVALD case we
still use that same broken way.
* lisp/emacs-lisp/backtrace.el (backtrace--print-func-and-args):
Don't re-print things just to get their length.
(backtrace--print-to-string): Skip a temp-buffer indirection.
Diffstat (limited to 'java/org/gnu')
0 files changed, 0 insertions, 0 deletions