[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: With electric-pair-mode, N prefix arg should insert N balanced pairs
From: |
Joseph Turner |
Subject: |
Re: With electric-pair-mode, N prefix arg should insert N balanced pairs |
Date: |
Sat, 03 Aug 2024 00:07:00 -0700 |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Joseph Turner <joseph@breatheoutbreathe.in>
>> Date: Fri, 02 Aug 2024 22:49:17 -0700
[...]
> Thanks, but why do you expect "(())" rather than "()()"? Electric
> Pair mode works per inserted character, and doesn't know anything
> about nesting.
I noticed the unexpected behavior when attempting to surround some text
with multiple braces in order to create Anki flashcards.
More or less, I wanted to go from "foo" to "{{foo}}", and I thought
perhaps that with the whole word selected, pressing "C-2 {" would DTRT.
In general, I'm not sure whether "{}{}" or "{{}}"is more useful or
expected, but I suspect both are better than "{{}".
> In any case, this should have been submitted as a bug report, and go
> to the bug tracker, not posted here.
You're right. I'll repost on the bug tracker.
Thank you!
Joseph