GNU bug report logs -
#62009
29.0.60; Emacs crashes on setf symbol-name
Previous Next
Full log
Message #98 received at 62009 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Fri, 10 Mar 2023 14:12:25 +0200, Eli Zaretskii <eliz <at> gnu.org> said:
>> From: Robert Pluim <rpluim <at> gmail.com>
>> Cc: Gregory Heytings <gregory <at> heytings.org>, Philip Kaludercic
>> <philipk <at> posteo.net>, michael_heerdegen <at> web.de,
>> monnier <at> iro.umontreal.ca, 62009 <at> debbugs.gnu.org, Eli Zaretskii
>> <eliz <at> gnu.org>, Augusto Stoffel <arstoffel <at> gmail.com>
>> Date: Fri, 10 Mar 2023 12:30:48 +0100
>>
>> diff --git a/src/lisp.h b/src/lisp.h
>> index 1276285e2f2..80bbb047824 100644
>> --- a/src/lisp.h
>> +++ b/src/lisp.h
>> @@ -1685,6 +1685,8 @@ SREF (Lisp_Object string, ptrdiff_t index)
>> INLINE void
>> SSET (Lisp_Object string, ptrdiff_t index, unsigned char new)
>> {
>> + if (XSTRING (string)->u.s.size_byte == -2)
>> + Fsignal (Qsetting_constant, string);
Eli> "Setting constant" is misleading.
True. I was lazy and picked the first one I found.
Eli> And again, why do that at all? It's a waste of cycles, incurred on
Eli> _everyone_, for an extremely rare use case that is explicitly
Eli> discouraged. We are not the TSA, and should not adopt their policy of
Eli> punishing the innocent 99.99% on behalf of a handful of villains.
I wasnʼt seriously proposing it for inclusion, just pointing out that
it was possible.
Robert
--
This bug report was last modified 2 years and 88 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.