From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.bugs Subject: bug#71337: 30.0.50; `electric-pair-mode' and custom keybinding Date: Mon, 03 Jun 2024 14:40:47 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7256"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 71337@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 03 14:42:12 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sE70t-0001g9-Sn for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Jun 2024 14:42:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sE70Z-0002ME-V5; Mon, 03 Jun 2024 08:41:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sE70X-0002L5-UR for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2024 08:41:50 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sE70X-0007tJ-LX for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2024 08:41:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sE70k-000741-CI for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2024 08:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jun 2024 12:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71337 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171741846827011 (code B ref -1); Mon, 03 Jun 2024 12:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jun 2024 12:41:08 +0000 Original-Received: from localhost ([127.0.0.1]:36741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sE6zr-00071Z-I6 for submit@debbugs.gnu.org; Mon, 03 Jun 2024 08:41:08 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:51822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sE6zp-00071F-MI for submit@debbugs.gnu.org; Mon, 03 Jun 2024 08:41:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sE6zc-0001VN-CK for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2024 08:40:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sE6zc-0007cV-3U for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2024 08:40:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=4+n42t+El5Fq7C9Xc/um6XeXvbFVzAMEj5aet+XldiQ=; b=bhrXzmtwIZ0zRp dElSkl1gefzB9SBTR8Sslxuz2QbDfmBnhGL5PlFeD0Tvq5kZrFZ5J7VLbKxS9sQOp42oNybQsei8T 2AuVIXWfMbaUERoDjTYdKBvCvI70dw9NoNsM7dXwOH4R4sG/GTbgA/ySCwQ1/Kcr6+BU3AM5e2f1I BQAK9zIakek1Pl0UyjSQdqmFjhdlZGjuFXo1MlZkTalPzlhR5/09+T/XS8J2K8YnUAfRxFWVfAs6c SodHXmQdkOnHi65lcsMiglejilMtAT2zEivXw1X8S9r/bKBDYkoOIyude8vxeNfuo/igI0eLF8Xnl yqDxixpIrPrjseugPVug==; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286439 Archived-At: Hi all, I have a custom keybinding "s-=C3=9F" with my German keyboard, but the issue I'm facing is also reproducible like this: =E2=80=A2 emacs -Q =E2=80=A2 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 ?\\)))) =E2=80=A2 Now hit "s-#" and the debugger says (linebreaks added manually): Debugger entered--Lisp error: (wrong-type-argument characterp 8388643) #f(compiled-function () #)() electric-pair--with-syntax-1(nil #f(compiled-function () #)) 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=3D-O2 -g0 -pipe' 'CPPFLAGS=3D-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=3D-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