On 10/19/25 8:29 PM, Artyom Bologov wrote:
Hi y’all,

I’m using keyboard macros heavily in one of my tools, with one of the
macros going as long as

"\C-x)": 
"s/(\\(\\(\\([[({]\\(\\([[({]\\(\\([[({]\\([^][(){}]\\{0,1\\}\\)*[]})]\\)\\{0,1\\}[^][(){}]\\{0,1\\}\\)*[]})]\\)\\{0,1\\}[^][(){}]\\{0,1\\}\\)*[]})]\\)\\{0,1\\}[^][(){}]\\{0,1\\}\\)*\\))[[:space:]]\\{1,\\}\\(\\(\\([[({]\\(\\([[({]\\(\\([[({]\\([^][(){}]\\{0,1\\}\\)*[]})]\\)\\{0,1\\}[^][(){}]\\{0,1\\}\\)*[]})]\\)\\{0,1\\}[^][(){}]\\{0,1\\}\\)*[]})]\\)\\{0,1\\}[^][(){}
 ]\\{0,1\\}\\)*\\)/(\\1 \\9)/n"

When I press the key bound to it, it takes 50+ seconds to type itself
in. As discussed in
https://github.com/hanslub42/rlwrap/issues/209#issuecomment-3419634786
the problem is blinking parens, slowing down the input per each
parenthesis/bracket/brace included.

Is this considered a bug?

It's not a bug, at least it hasn't been considered one to this point.
You could temporarily disable paren matching around the call to the macro.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to