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.devel Subject: Re: With electric-pair-mode, N prefix arg should insert N balanced pairs Date: Sat, 03 Aug 2024 09:41:45 +0300 Message-ID: <86ikwiumza.fsf@gnu.org> References: <87y15edule.fsf@breatheoutbreathe.in> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2921"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Joseph Turner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 03 08:42:31 2024 Return-path: Envelope-to: ged-emacs-devel@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 1sa8TH-0000bU-9r for ged-emacs-devel@m.gmane-mx.org; Sat, 03 Aug 2024 08:42:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sa8Sg-0004Sk-1Z; Sat, 03 Aug 2024 02:41:54 -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 1sa8Sa-0004SV-7s for emacs-devel@gnu.org; Sat, 03 Aug 2024 02:41:48 -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 1sa8SZ-0000hb-P1; Sat, 03 Aug 2024 02:41:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=4rI5Pd/mG96y8QqSPXYA1SJeLHpUT3RLn3k+YuRndNI=; b=nMe0mki8y4sI CeMMwajLqoE8kRCLYkcI8yc1klz4xSWU9L6JLa4Y69H9rlD6grJWQzs8S3IaKSEHZtaoYg16XAFPd 0vm5/xt4jeSVX84XmphuxyTdQsQ5yeeQxyKzmZpUGZpb7j7PXCm9ppDh1g6GQqTpx1sTHc275bNrY WIjbTkYBTLKxl+Q0w8ZYT+KCD6qOPRiM5kIn91GRCPfae/gGfle1igf/mNpCD2ra4OB4B/USnogQk KaGyyFgjnn9Es5MxU6nA49jlOlO9EM7Z3ZFvdw3HB9WhJhWYpBILU1T0vpfZfPWZxaJI8sWP4KAok fSCiMgYzX8wcR4ht7pKIhQ==; In-Reply-To: <87y15edule.fsf@breatheoutbreathe.in> (message from Joseph Turner on Fri, 02 Aug 2024 22:49:17 -0700) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322294 Archived-At: > From: Joseph Turner > Date: Fri, 02 Aug 2024 22:49:17 -0700 > > On Emacs 29.4, with emacs -Q > > Turn on electric-pair-mode > > (electric-pair-mode +1) > > Then press "C-2 (" > > Expected result: > > (()) > > Actual result: > > (() Thanks, but why do you expect "(())" rather than "()()"? Electric Pair mode works per inserted character, and doesn't know anything about nesting. In any case, this should have been submitted as a bug report, and go to the bug tracker, not posted here.