From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Nelson Newsgroups: gmane.emacs.bugs Subject: bug#68995: [PATCH] 30.0.50; electric-pair-mode and read-char-from-minibuffer Date: Thu, 8 Feb 2024 23:52:50 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0000000000008654940610e6acb2" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39383"; mail-complaints-to="usenet@ciao.gmane.io" To: 68995@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 08 23:54:15 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 1rYDHb-000A69-2D for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Feb 2024 23:54:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYDHB-0008Il-VC; Thu, 08 Feb 2024 17:53:49 -0500 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 1rYDHA-0008IX-GF for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2024 17:53:48 -0500 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 1rYDHA-00008u-8T for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2024 17:53:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rYDHO-0001J9-A2 for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2024 17:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Nelson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Feb 2024 22:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68995 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17074328104920 (code B ref -1); Thu, 08 Feb 2024 22:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Feb 2024 22:53:30 +0000 Original-Received: from localhost ([127.0.0.1]:38191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYDGq-0001HF-TN for submit@debbugs.gnu.org; Thu, 08 Feb 2024 17:53:29 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:56146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYDGp-0001Gt-B1 for submit@debbugs.gnu.org; Thu, 08 Feb 2024 17:53:28 -0500 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 1rYDGV-0008FU-59 for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2024 17:53:07 -0500 Original-Received: from mail-io1-xd31.google.com ([2607:f8b0:4864:20::d31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rYDGT-00006b-C2 for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2024 17:53:06 -0500 Original-Received: by mail-io1-xd31.google.com with SMTP id ca18e2360f4ac-7c400b6d5afso9715539f.2 for ; Thu, 08 Feb 2024 14:53:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707432783; x=1708037583; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=VXB6AqoDPdwPgEgvBMsRBwr8X6M4qM2X+xaxSB/YfWY=; b=H7TKNG3HieuSgRaJkXA12sYZUIR26o5kFDIIuxXOm2rk7qBaf11V317YuP1b+JrFZs tLvYrKJVT21trNmylEeOIg+WER/vZYKEOJ2zyZBQ8zUDclCGJsYaZRbhX22fwhEp3Oyg Xzl9IqDR5MxZIuBgYRkH4cibfVWwju1nz4uW0r3s5NEMyWRGxc+cvyr9C6hLJ3589wZ0 y8rTiXOhbQaHhGNEBmPhVMLFk5fTIL8wRLALVGAbSa9Wfg9pRDdZOMHZ5zkPOybub02b C37aq91iCb0ffKgEZV81KFh84PmiNIkee170r4YeoNJcDj4P198HvtjIE6puhh0Xuo// nNEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707432783; x=1708037583; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VXB6AqoDPdwPgEgvBMsRBwr8X6M4qM2X+xaxSB/YfWY=; b=Us13m9G42GKRAJDP3VuyaMccjHsiwuuxJqZYtvBfa7+PpJwpGX1DrobOrYrzucMuMV qKUbESUwrsDFYqEvb/UOPfoMuamMIG43b7YcCAl3c6beGTXKK1SxkDqka2wHofyyKl+e 0ta0M3IqrEqB4xLJT9a1mpBSinTZBKb7iaryWpEEpaL8mtPpqHLg4p5X0wpBSK77RpDU rEONAZfwOj2681xjsLc6OfJJjdKmugyibVWzA723BX1+hMc3QkRSpKmJQ/tn/+2emzCF sMGoth9dOADagp+XJrrLJd/dmjs9OJzpMmm0Yye3zxlWOdVrIDeC1kqTqyYrt84ZtxnG vPJA== X-Gm-Message-State: AOJu0YxeCCHZ4GfYgS4LE2xgBlOiTM4smXcIkCZvcSqhOBusPG7JAmQT t++oOyZhhxrv4xqpYdbcmHczUYZVubprj27IYiGvqVwbYdDCIA2Z2i3Pmtx2joF7wdPsDkmdPWe EymbhmOMCwP4fCQciuK7UVEw//QRqsgUTxFA= X-Google-Smtp-Source: AGHT+IHsypgzONonJEtR7YgS8ilQPEbZ/EjMkM1KNM1mL3gGeK5MHcCxpQIYjeuzu3RSk4Y+bMqz/WRRWHoILwmB7PI= X-Received: by 2002:a5e:dc4d:0:b0:7c0:1825:dcf7 with SMTP id s13-20020a5edc4d000000b007c01825dcf7mr1208907iop.16.1707432783234; Thu, 08 Feb 2024 14:53:03 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::d31; envelope-from=ultrono@gmail.com; helo=mail-io1-xd31.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:279667 Archived-At: --0000000000008654940610e6acb2 Content-Type: text/plain; charset="UTF-8" Steps to reproduce: 1. Emacs -Q 2. M-x electric-pair-mode 3. M-: (read-char-from-minibuffer "test: ") 4. Hit "(". The minibuffer then reads "()"; to get "(" accepted, we need to backspace. If we instead hit ")", then we get the error "No matching parenthesis found". I noticed this bug because it complicates using zap-to-char with electric-pair-mode. The bug was introduced in 68dd520e39eccb1be9366add1e3298318e5010de, in response to https://debbugs.gnu.org/cgi/bugreport.cgi?bug=65805. In that commit, the line that remaps self-insert-command was commented. Uncommenting that line fixes the issue. In GNU Emacs 30.0.50 (build 1, aarch64-apple-darwin23.2.0, NS appkit-2487.30 Version 14.2.1 (Build 23C71)) of 2024-01-24 built on d51735 Repository revision: 87cf30fba37346a179c6307a29d5d39b39311cef Repository branch: HEAD Windowing system distributor 'Apple', version 10.3.2487 System Description: macOS 14.2.1 Configured using: 'configure --with-ns --with-native-compilation --with-tree-sitter --with-gif --with-png --with-jpeg --with-rsvg --with-tiff --with-imagemagick --with-x-toolkit=gtk3 --with-xwidgets' Configured features: ACL DBUS GLIB GNUTLS IMAGEMAGICK JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS ZLIB Important settings: value of $LC_CTYPE: UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: electric-pair-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr cl-extra pp cl-print byte-opt gv thingatpt help-fns radix-tree help-mode compile comint ansi-osc ansi-color ring comp-run bytecomp byte-compile comp-common rx emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cus-start cus-load elec-pair rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads xwidget-internal dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 87854 21088) (symbols 48 7973 0) (strings 32 22998 2949) (string-bytes 1 674716) (vectors 16 12730) (vector-slots 8 172844 9781) (floats 8 27 14) (intervals 56 293 0) (buffers 984 13)) --0000000000008654940610e6acb2 Content-Type: application/octet-stream; name="0001-Revert-remap-self-insert-command-in-read-char-from-m.patch" Content-Disposition: attachment; filename="0001-Revert-remap-self-insert-command-in-read-char-from-m.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lsdtd0hx0 RnJvbSBiMDQwM2U5MDc2NWQ1MmE2Yjg1OWFjOTJlMTZiMDE4ZmNmZDk3NzhjIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIE5lbHNvbiA8dWx0cm9ub0BnbWFpbC5jb20+CkRhdGU6 IFN1biwgNCBGZWIgMjA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