From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joseph Turner via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#72437: Unexpected behavior when inserting with prefix arg in electric-pair-mode Date: Fri, 16 Aug 2024 23:28:32 -0700 Message-ID: <20F64DCD-929F-4B4C-BF85-ABE26FC7C995@breatheoutbreathe.in> References: <87le1edqqm.fsf@breatheoutbreathe.in> <86h6c2ug0p.fsf@gnu.org> <86a5htvclm.fsf@gnu.org> <86zfpttpfl.fsf@gnu.org> Reply-To: Joseph Turner Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16631"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, monnier@iro.umontreal.ca To: me@eshelyaron.com, 72437@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 17 08:29:53 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 1sfCwi-0004C5-8j for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Aug 2024 08:29:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfCwO-0008Bm-Hs; Sat, 17 Aug 2024 02:29:33 -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 1sfCwH-0008BL-N4 for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 02:29:25 -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 1sfCwG-00052e-3a for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 02:29:25 -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=/4kmGX3TKJ7X7v9oxIuQANthJFb2lT13U7K/oL5szXE=; b=hwhtXnBfbAV1gZDok9Td2zls7nTIkpIScuHzXuXrK9YvNWZRu2hFOYNphVGfJcOHUI0h3QbEG6WL3vO/erSPrcx/Nt+GomNRv5P+UPzP998vBxVm0xhgPrdtuc6n7wwVD7l7JAO3Uounqr6XNdPE7K+cF7MCYwMQT1pCOTbgul6QZ3MArI3CK3kdPgp3CJRSE+8e4+gYzER2IiO1fMP7qu/p/nNolLu05G3hjGhqADtIDVdyjBSCCebu52LiHRSmhAk4aIxBm1G5A8Ja1Y6ZkdBZNBNY2ZT153WNKLk7tfQpl0pBQk84bYn4N8UYEwX03ly8P8OH2+jcsglxcD2HDA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sfCws-0005mf-9W for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 02:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Joseph Turner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Aug 2024 06:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72437 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Eshel Yaron , "Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: 72437@debbugs.gnu.org, Eli Zaretskii , Stefan Monnier Original-Received: via spool by 72437-submit@debbugs.gnu.org id=B72437.172387616622164 (code B ref 72437); Sat, 17 Aug 2024 06:30:02 +0000 Original-Received: (at 72437) by debbugs.gnu.org; 17 Aug 2024 06:29:26 +0000 Original-Received: from localhost ([127.0.0.1]:53277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfCwI-0005lQ-BK for submit@debbugs.gnu.org; Sat, 17 Aug 2024 02:29:26 -0400 Original-Received: from out-180.mta1.migadu.com ([95.215.58.180]:45259) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfCwF-0005l6-VG for 72437@debbugs.gnu.org; Sat, 17 Aug 2024 02:29:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breatheoutbreathe.in; s=key1; t=1723876117; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/4kmGX3TKJ7X7v9oxIuQANthJFb2lT13U7K/oL5szXE=; b=I28V1H3biURkIUuzf0YQMq0fYHtoFzOP9un0knHYyzb0H4E+fTJr8TKYsjT9qpFaIGwaq2 Wsya0eXbQ0D+QBLVn2xbwrTzuXS3yEIpZguIyzLCa9PSQAvgny0wsnbmDssCrhlPHAyMsk loD3373MpofCX9PpUMcE8YrQYZ8b70U= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: X-Migadu-Flow: FLOW_OUT 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:290216 Archived-At: On August 13, 2024 10:07:23 PM PDT, Eshel Yaron wrot= e: >Hi Stefan, > >Stefan Monnier writes: > >>> Let's hear what Stefan thinks (and anyone else who has an >>> opinion or some case other than electric-pair-mode)=2E >> >> I think the requested behavior makes a lot of sense, but I lost touch >> with the way elec-pair works and interacts with other electric modes, s= o >> I'm not sure how to make it work without breaking other things=2E > >In case you missed it, the patch I shared upthread might give you >some ideas=2E It implements the requested behavior, safely, I think=2E >So I would just ask Joseph to try it out for a while and see if it >works as expected and if any other issues crop up :) Thanks for this patch! I am testing it in my daily config=2E So far so g= ood, and I'll report back after a few weeks of usage=2E Warmly, Joseph