[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#68995: [PATCH] 30.0.50; electric-pair-mode and read-char-from-minibu
From: |
Eli Zaretskii |
Subject: |
bug#68995: [PATCH] 30.0.50; electric-pair-mode and read-char-from-minibuffer |
Date: |
Fri, 09 Feb 2024 08:47:57 +0200 |
> From: Paul Nelson <ultrono@gmail.com>
> Date: Thu, 8 Feb 2024 23:52:50 +0100
>
> 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.
Adding Stefan who made the offending commit.