Subject: Re: bug#36068: 27.0.50; Warning: unescaped character literals `?)' detected, `?\)' expected!

From: Andreas Schwab <[email-masked]>
Date: Mon, 03 Jun 2019 19:18:05 +0200

On Jun 03 2019, [email-masked] wrote:

> tags 36068 + confirmed
> quit
>
> Michael Heerdegen <[email-masked]> writes:
>
>> Noam Postavsky <[email-masked]> writes:
>>
>>> Hmm, is lread--unescaped-character-literals non-nil?  It looks like
>>> the variable can only get cleared due to the let-binding in load, so
>>> if it somehow got set outside of that, then you would see continual
>>> warnings from it.
>>
>> Yes, its value is (41).
>
> Ah, I think the problem can be triggered any time you `read' an unescaped
> literal outside of `load'.  E.g., from emacs -Q:
>
>     M-: (read "?)") RET
>
> or even just
>
>     M-: ?) RET

Even byte-compiling a file containing such an unescaped literal sets
lread--unescaped-character-literals in the global scope.  I think this
is where the real bug is.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."