From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72437: Unexpected behavior when inserting with prefix arg in electric-pair-mode Date: Sat, 17 Aug 2024 09:08:50 +0300 Message-ID: <868qwv65ql.fsf@gnu.org> References: <87le1edqqm.fsf@breatheoutbreathe.in> <86h6c2ug0p.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29403"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72437@debbugs.gnu.org, monnier@iro.umontreal.ca, joseph@breatheoutbreathe.in To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 17 08:09:42 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 1sfCdB-0007W7-I1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Aug 2024 08:09:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfCcv-0002Aj-Oo; Sat, 17 Aug 2024 02:09:25 -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 1sfCcu-0002AI-IP for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 02:09:24 -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 1sfCcu-0002FZ-9i for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 02:09:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=84zwA8IReLRZDJR/x2jwDDQ7dCiIXp9GNaUsSf26e/k=; b=EmixngCGNv3vP+tVUKoQMzDna/KwA+7fjJ25VydlyOiNnSzegL23Ztpp58M2yjC+WIxp4OCaQ2rKLltMXJg2rK10Hj7kaP160B51eai6Izv9i+UPZF9i94Vf1jyLpuPr+ZXxKNt2JA1zV6u5U5dMCP5RjAozHTXvT+0mMzx5jHLdzJtgsjtp8HKEGA1Z6ezC3t4V2t/d/vEVSAaaxs/MZYSvf7rzlx4lfoZ3uiO1p7H+kSLpVvoKs8HNDJu/k4vjYA2aNFMJH6In0mxgLi0BlIXPIXEd7aIfqy9ebfg3rW1XW0l5cowlyTxj0iLcO7tE8imk74hpC+UfUlZqPYvvNg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sfCdW-0005Hf-Ff for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 02:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Aug 2024 06:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72437 X-GNU-PR-Package: emacs Original-Received: via spool by 72437-submit@debbugs.gnu.org id=B72437.172387498220278 (code B ref 72437); Sat, 17 Aug 2024 06:10:02 +0000 Original-Received: (at 72437) by debbugs.gnu.org; 17 Aug 2024 06:09:42 +0000 Original-Received: from localhost ([127.0.0.1]:53265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfCdB-0005H0-UC for submit@debbugs.gnu.org; Sat, 17 Aug 2024 02:09:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfCd9-0005Gm-5N for 72437@debbugs.gnu.org; Sat, 17 Aug 2024 02:09:40 -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 1sfCcP-0002Dx-0T; Sat, 17 Aug 2024 02:08:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=84zwA8IReLRZDJR/x2jwDDQ7dCiIXp9GNaUsSf26e/k=; b=o35auqc+h7Dp3MRITEC+ ZbQqJNddiu5okBEFMvLdN0sjebpvj0t/LSEyvN0zMlt1pAvx8rmY0FbORlj8LdPMXgWeHWSAkdDk3 /P6YQfR0HUB8J7HLpQojtVXEAOH1EdtUFag8Nx6xXv1gTnOPMKvg89NsNHDl78Y8qbb3QJOJFJXIB dY2sPLL0s+FJFqFlJhri9SOrhYfXODJuvZt0DMKP6xlHR5AImwCaDZ6H73Q/oD0c7xg9I8ZMJ+Xzr pMz6Oi6r8mSNd9UX32sXQrKPfGpTZbhvIunGosjWqBpb+Uhl9/rW5qh3jFs3LDPNafihAJdjDD7To PgQLN5u71C2JbA==; In-Reply-To: (message from =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= on Fri, 16 Aug 2024 22:22:29 +0100) 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:290214 Archived-At: > Cc: 72437@debbugs.gnu.org, Joseph Turner > From: João Távora > Date: Fri, 16 Aug 2024 22:22:29 +0100 > > On Wed, Aug 14, 2024, 01:57 Stefan Monnier wrote: > > Hi João, > > Do you have a good idea of how to make > > C-M-SPC C-2 { > > wrap the selected word within two braces? > > No great ideas no. Does it even work in the non-wrapping case? The intended result is as if the command was > run twice, no? So maybe try somehow that the whole thing is run twice/thrice/etc... That's what I suggested, but the result is "{}{}{}{}...", which is not what was requested. IOW, what is being requested is NOT what happens when running this command N times, it should be a special handling of the numerical argument.