all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "João Távora" <joaotavora@gmail.com>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: arash@gnu.org, eliz@gnu.org, 71337@debbugs.gnu.org,
	monnier@iro.umontreal.ca
Subject: bug#71337: 30.0.50; `electric-pair-mode' and custom keybinding
Date: Tue, 4 Jun 2024 11:49:58 +0100	[thread overview]
Message-ID: <CALDnm50MLzsWT0-Ai804ZrODtP913U3uTDNw5ar9RQ=eqST75w@mail.gmail.com> (raw)
In-Reply-To: <87ikyp10l6.fsf@gmx.net>

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	other threads:[~2024-06-04 10:49 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-03 12:40 bug#71337: 30.0.50; `electric-pair-mode' and custom keybinding Arash Esbati
2024-06-03 13:50 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-04  5:53   ` Arash Esbati
2024-06-04  7:30     ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-04  7:37       ` João Távora
2024-06-04  8:08         ` João Távora
2024-06-04  8:18           ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-04 14:52             ` Eli Zaretskii
2024-06-04  9:24           ` Eli Zaretskii
2024-06-04 10:09             ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-04 10:49               ` João Távora [this message]
2024-06-04 11:04               ` Eli Zaretskii
2024-06-04 14:56               ` Eli Zaretskii
2024-06-04 15:43                 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-04 12:33             ` Arash Esbati
2024-06-04 13:36               ` João Távora
2024-06-04 14:09                 ` Arash Esbati
2024-06-04 14:21             ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-15  8:10               ` Eli Zaretskii
2024-06-16 10:42                 ` Arash Esbati
2024-06-04  8:09         ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALDnm50MLzsWT0-Ai804ZrODtP913U3uTDNw5ar9RQ=eqST75w@mail.gmail.com' \
    --to=joaotavora@gmail.com \
    --cc=71337@debbugs.gnu.org \
    --cc=arash@gnu.org \
    --cc=eliz@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=stephen.berman@gmx.net \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.