GNU bug report logs -
#70784
Abolish string resizing
Previous Next
Full log
Message #35 received at 70784 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
5 maj 2024 kl. 20.09 skrev Stefan Monnier <monnier <at> iro.umontreal.ca>:
> If the warning is too annoying, we could do like I did there, i.e. only
> emit the warning when running in a non-release Emacs (i.e. when
> `emacs-version` has 2 dots), and offer a variable to control whether to
> emit the warning or not.
Thanks, I hadn't seen your work. My approach (attached) is more an instance of outsider art: I didn't know how these things are normally done and just made it up as I went.
The backtrace is included in the message here because it's kind of essential for diagnosing the warning correctly, and it uses the very compact form repurposed from the profiler for brevity and because we probably don't need more to establish the source of the problem. Your idea to stuff stack traces in a variable for later scrutiny is probably more robust.
(Prefer raising actual errors though -- some people will inevitably suppress the warning to avoid fixing the code.)
[warn-aset-string.diff (application/octet-stream, attachment)]
This bug report was last modified 141 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.