[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46364: regression in lm-commentary
From: |
Basil L. Contovounesios |
Subject: |
bug#46364: regression in lm-commentary |
Date: |
Mon, 08 Feb 2021 20:51:12 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Matt Armstrong <matt@rfc20.org> writes:
> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>> Matt Armstrong <matt@rfc20.org> writes:
>
> [...]
>
>>> It seems `lm-commentary' now strips all leading whitespace from every
>>> line, as a "sanitization" step, and this has the unsatisfying side
>>> effect of ruining any indentation formatting in the original commentary.
>>
>> Is the removal of the leading white-space the only problem with the
>> sanitization? Then perhaps that bit could be tweaked?
>
> I noticed that Basil's commit 963a9ffd66cb29f0370e9a4b854dddda242c54a6
^^^^^^^
Bruno's ;)
> consolidated normalization logic but also changed the regex slightly
> such that all leading whitespace was erased. I've attached a patch to go
> back to the old ways. It seems to work.
Given that lm-commentary is used outside of Emacs, I suggest its
behaviour be reverted to that in Emacs 27, and any sanitisation provided
as a separate function instead.
Thanks,
--
Basil