emacs-erc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug#51082: [PATCH] erc-prompt: support substitution patterns "%targe


From: J.P.
Subject: Re: bug#51082: [PATCH] erc-prompt: support substitution patterns "%target" and "%network"
Date: Mon, 20 Nov 2023 13:17:09 -0800
User-agent: Gnus/5.13 (Gnus v5.13)

Hi people,

I'd like to take this feature over, in case anyone cares. To summarize,
it initially stalled out because an underlying facility to support the
dynamic updating of rich UI elements wasn't available at the time. Most
of it has since been added, and the attached changes (once complete)
should fill in any remaining gaps.

Thus, I've gone ahead and integrated everyone's suggestions, for the
most part, with the only caveat being the feature won't be enabled by
default. Rather, there's an added step involved where a user must first

  (setopt erc-prompt #erc-prompt-format)

before ERC will consider the companion option that contains the actual
template (also called `erc-prompt-format'). Such indirection may be
regrettable from a UX standpoint, but I'd rather hold off on improving
things until we've brought batch processing fully into the fold and have
tuned it to perform respectably with ERC's default configuration.

For anyone unfamiliar, ERC will soon be needing to process incoming
messages in rapid succession all the way to insertion as fast as it can
manage. Like normal messages, these will also influence the state of UI
elements, like the prompt, the mode line, etc. Because such processing
will be foundational to ERC's basic operations going forward, it's
important to prioritize über alles. To that end, I'm hoping we can
revisit this feature again at some later date if folks end up wanting to
expand `erc-prompt' to accommodate format specifiers directly, as
originally envisioned.

Thanks.

Attachment: 0001-5.6-Don-t-inherit-properties-when-refreshing-ERC-s-p.patch
Description: Text Data

Attachment: 0002-5.6-Use-overlay-instead-of-text-prop-to-hide-ERC-pro.patch
Description: Text Data

Attachment: 0003-5.6-Optionally-align-prompt-to-prefix-in-erc-fill-wr.patch
Description: Text Data

Attachment: 0004-5.6-Optionally-allow-substitution-patterns-in-erc-pr.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]