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

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

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


From: GNU bug Tracking System
Subject: bug#71337: closed (30.0.50; `electric-pair-mode' and custom keybinding)
Date: Sat, 15 Jun 2024 08:11:01 +0000

Your message dated Sat, 15 Jun 2024 11:10:29 +0300
with message-id <86y176vd6y.fsf@gnu.org>
and subject line Re: bug#71337: 30.0.50; `electric-pair-mode' and custom 
keybinding
has caused the debbugs.gnu.org bug report #71337,
regarding 30.0.50; `electric-pair-mode' and custom keybinding
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
71337: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71337
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 30.0.50; `electric-pair-mode' and custom keybinding Date: Mon, 03 Jun 2024 14:40:47 +0200 User-agent: Gnus/5.13 (Gnus v5.13)
Hi all,

I have a custom keybinding "s-ß" with my German keyboard, but the issue
I'm facing is also reproducible like this:

• emacs -Q
• In scratch, eval:

  (progn
    (setq debug-on-error t)
    (electric-pair-mode  1)
    (keymap-global-set "s-#" (lambda (arg)
                               "Insert ARG backslash(es)."
                               (interactive "*p")
                               (self-insert-command arg ?\\))))

• Now hit "s-#" and the debugger says (linebreaks added manually):

Debugger entered--Lisp error: (wrong-type-argument characterp 8388643)
  #f(compiled-function () #<bytecode -0x15954a2c5d74b890>)()
  electric-pair--with-syntax-1(nil #f(compiled-function () #<bytecode 
-0x15954a2c5d74b890>))
  electric-pair-syntax-info(8388643)
  electric-pair-post-self-insert-function()
  self-insert-command(1 92)
  #f(lambda (arg) [t] "Insert ARG backslash(es)." (interactive "*p")
   (self-insert-command arg 92))(1)
  funcall-interactively(#f(lambda (arg) [t] "Insert ARG backslash(es)."
   (interactive "*p") (self-insert-command arg 92)) 1)
  command-execute(#f(lambda (arg) [t] "Insert ARG backslash(es)."
   (interactive "*p") (self-insert-command arg 92)))

Running the exercise with (electric-pair-mode -1) doesn't throw an
error.

Best, Arash

In GNU Emacs 30.0.50 (build 1, aarch64-apple-darwin23.5.0, NS
 appkit-2487.60 Version 14.5 (Build 23F79)) of 2024-05-28 built on
 MacMutant.local
Repository revision: 066e9b598858cc4c0b666b12242f07a7fdf3e073
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2487
System Description:  macOS 14.5

Configured using:
 'configure --with-ns --without-pop --without-mailutils --with-threads
 --with-modules --with-native-compilation --without-compress-install
 'CFLAGS=-O2 -g0 -pipe'
 'CPPFLAGS=-I/opt/homebrew/Cellar/gcc/14.1.0/include
 -I/opt/homebrew/Cellar/libgccjit/14.1.0/include
 -I/opt/homebrew/Cellar/gmp/6.3.0/include'
 'LDFLAGS=-L/opt/homebrew/Cellar/gcc/14.1.0/lib/gcc/current
 -L/opt/homebrew/Cellar/gmp/6.3.0/lib''

Configured features:
ACL GLIB GMP GNUTLS LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS
PDUMPER PNG RSVG SQLITE3 THREADS TOOLKIT_SCROLL_BARS TREE_SITTER WEBP
XIM ZLIB



--- End Message ---
--- Begin Message --- Subject: Re: bug#71337: 30.0.50; `electric-pair-mode' and custom keybinding Date: Sat, 15 Jun 2024 11:10:29 +0300
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: João Távora <joaotavora@gmail.com>,  Stephen
>  Berman
>  <stephen.berman@gmx.net>,  Arash Esbati <arash@gnu.org>,
>   71337@debbugs.gnu.org
> Date: Tue, 04 Jun 2024 10:21:11 -0400
> 
> > I think internal_self_insert should overwrite last-command-event or
> > something, if we want to support this kind of scenario.  Stefan, WDYT?
> 
> +1

Now done, and closing the bug.


--- End Message ---

reply via email to

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