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 17:21:07 +0300 Message-ID: <86plq71b8s.fsf@gnu.org> References: <87le1edqqm.fsf@breatheoutbreathe.in> <86h6c2ug0p.fsf@gnu.org> <868qwv65ql.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4565"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72437@debbugs.gnu.org, joaotavora@gmail.com, joseph@breatheoutbreathe.in To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 17 16:22:43 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 1sfKKJ-00014o-DH for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Aug 2024 16:22:43 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfKK2-0000Yt-Rv; Sat, 17 Aug 2024 10:22:26 -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 1sfKJy-0000YS-U7 for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 10:22: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 1sfKJy-0003IG-Kw for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 10:22:22 -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=ZckE3e0FFjIKL0axgBJPlRHC8aF68Ftk/cQxFmsiy+0=; b=NMqm24vbHhIZlY+U9dluPK8bfNb4iZSvszHQiYeN0jO0Da7KQUwLjaGDj0kqCzlhLR/gsO6LFqqDzIiM+u6JIabdD+eYQ8ZDq9XKTkzoRraA+Z6G4R/92ZGz1TK8kUkN1+NUvdO8LeOcIGhmmRO2JALGMgDnlAVe+4Kc+VyPW1TyQXTfPBw6AA9Eqw1JK9dJB+w/he5s5DfAlOCJWc9EHr9HUfDbFEJRFiVbJMHHFtOZQYrwvXC4OlRoBr6qN+JBg9QoPIPVwXy3RWmqJ5zbb7YzZZ/0L7TBGfdcq5EF6i9cqThdKMZD6oWJZctdaTTofINAw7zB+b8zRJG/A1Hdrg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sfKKb-0002Z3-Ig for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 10:23:01 -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 14:23:01 +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.17239045569808 (code B ref 72437); Sat, 17 Aug 2024 14:23:01 +0000 Original-Received: (at 72437) by debbugs.gnu.org; 17 Aug 2024 14:22:36 +0000 Original-Received: from localhost ([127.0.0.1]:54816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfKKB-0002Y8-OV for submit@debbugs.gnu.org; Sat, 17 Aug 2024 10:22:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfKK9-0002Xv-0H for 72437@debbugs.gnu.org; Sat, 17 Aug 2024 10:22:33 -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 1sfKJQ-0003F4-7d; Sat, 17 Aug 2024 10:21:48 -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=ZckE3e0FFjIKL0axgBJPlRHC8aF68Ftk/cQxFmsiy+0=; b=Nglg3jDhC4h/fA6WQi9w CVWT2yB0uw08mCd80XV5oimJUp/7LX/zish/IgKRuU3sO6E45LSAOOY8Q4OBx9KeXnKlwtDLsfRmR ny2M8lLDURn63hNo8Mu3/kHwLrsRlYLPD2wviQzP0MVfwWdL/4gAMJO8+8Mh7Y/J9mWTqZRGXgEP3 rNz79BbKgA7LxixPMDT3xeVEHOgPXmrGsV7Chf0kBzWyQW75Dpa1pfRO/w4xMLnjj1T4sZudG7Dd6 I8dMxdH2i+za27prtmw3Fqk541N8GuFsKsjtsFneETXw84MRNlBHUWnPf6U/KX9iShbNGjcDaxY2i VRbl+sZ3ppk3lQ==; In-Reply-To: (message from Stefan Monnier on Sat, 17 Aug 2024 10:03:38 -0400) 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:290269 Archived-At: > From: Stefan Monnier > Cc: João Távora , > 72437@debbugs.gnu.org, > joseph@breatheoutbreathe.in > Date: Sat, 17 Aug 2024 10:03:38 -0400 > > > That's what I suggested, but the result is "{}{}{}{}...", which is not > > For me `C-u 2 (` results in `(()`. I suggested a change which would yield ()(). Without the change, you shouldn't expect getting anything useful, because the hook is called just once, not ARG times.