bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#71337: 30.0.50; `electric-pair-mode' and custom keybinding


From: João Távora
Subject: bug#71337: 30.0.50; `electric-pair-mode' and custom keybinding
Date: Tue, 4 Jun 2024 11:49:58 +0100

On Tue, Jun 4, 2024 at 11:09 AM Stephen Berman <stephen.berman@gmx.net> wrote:

> enabling electric-pair-mode, and what I see is that typing `C-#' inserts
> a "\" while typing `\' insert "\\".  Is this not the desired behavior?

Seems so, but it looks very odd to check if last_command_event is a
character when checked in post-self-insert-hook, because that hook
explicitly says it must be one.  The fact that it works at all also
suggests the hook is being called twice. Anyway, if the workaround
is needed for whatever reason, I'd put it in electric-pair-syntax-info
with a prominent comment pointing to this bug.





reply via email to

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