From: Lars Ingebrigtsen <larsi@gnus.org>
To: Matt Armstrong <matt@rfc20.org>
Cc: "Basil L. Contovounesios" <contovob@tcd.ie>,
46364@debbugs.gnu.org,
"Bruno Félix Rezende Ribeiro" <oitofelix@gnu.org>
Subject: bug#46364: regression in lm-commentary
Date: Mon, 08 Feb 2021 07:39:54 +0100 [thread overview]
Message-ID: <87wnvjm5ad.fsf@gnus.org> (raw)
In-Reply-To: <m2h7mnmmwt.fsf@matts-mbp-2016.lan> (Matt Armstrong's message of "Sun, 07 Feb 2021 16:19:14 -0800")
Matt Armstrong <matt@rfc20.org> writes:
> The issue is a behavior change in `lm-commentary' that probably deserves
> some consideration, because it seems suboptimal in this example. The
> behavior change is most likely caused by commit
> 963a9ffd66cb29f0370e9a4b854dddda242c54a6.
Right. The rationale was:
> I decided to tackle the problem’s root. After figuring out that every
> function depending on ‘lm-commentary’ implemented their own ad-hoc
> sanitation for the same effect, I changed ‘lm-commentary’ to return a
> sanitized string and removed the code/functionality duplication from all
> callers.
(I've added Bruno to the CCs.)
> Prior to that commit, and in Emacs 27.1, the function returns the file's
> commentary as an verbatim substring of the elisp source, including the
> elisp comment characters, commentary headline, etc. E.g. a string like
> this (I'll quote the string for email sanity):
[...]
> 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?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2021-02-08 6:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-07 14:01 bug#46364: regression in lm-commentary Boruch Baum
2021-02-07 18:38 ` Lars Ingebrigtsen
2021-02-07 18:55 ` Boruch Baum
2021-02-07 20:35 ` Basil L. Contovounesios
2021-02-08 0:19 ` Matt Armstrong
2021-02-08 6:39 ` Lars Ingebrigtsen [this message]
2021-02-08 18:59 ` Matt Armstrong
2021-02-08 20:51 ` Basil L. Contovounesios
2021-02-09 0:11 ` Matt Armstrong
2021-02-09 8:11 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wnvjm5ad.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=46364@debbugs.gnu.org \
--cc=contovob@tcd.ie \
--cc=matt@rfc20.org \
--cc=oitofelix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).