Subject: Re: bug#50946: Emacs-28: Inadequate coding in hack-elisp-shorthands

From: João Távora <[email-masked]>
Date: Sat, 02 Oct 2021 12:13:14 +0100

Alan Mackenzie <[email-masked]> writes:

> Why aren't you just using that function on the buffer anyway, instead of all this
> clumsy messing around with temporary buffers, file-attributes, and
> successive 100 bytes, and so on?

I used it to quickly and efficiently discover the value of
elisp-shorthands as soon as possible, before the 'read' takes place in
load-code-with-conversion.

Doing other wise is possible but it is an intrusive change into the
longstanding load-with-code-conversion, which I avoided during the early
days of this feature.  If you can do it and it doens't break anything,
go ahead.  Stefan is investigating this as well.

> ... even if this scenario is highly unusual.

You think?

João