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: Wed, 18 Sep 2024 22:14:48 -0700 Message-ID: <87plp0w7g7.fsf@breatheoutbreathe.in> References: <87le1edqqm.fsf@breatheoutbreathe.in> <86h6c2ug0p.fsf@gnu.org> <86a5htvclm.fsf@gnu.org> <86zfpttpfl.fsf@gnu.org> <20F64DCD-929F-4B4C-BF85-ABE26FC7C995@breatheoutbreathe.in> Reply-To: Joseph Turner Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33307"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72437@debbugs.gnu.org, eliz@gnu.org, monnier@iro.umontreal.ca To: Eshel Yaron Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 19 07:16:04 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 1sr9WN-0008Vi-09 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Sep 2024 07:16:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr9W7-0003nU-Uo; Thu, 19 Sep 2024 01:15:48 -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 1sr9W5-0003fH-ON for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 01:15:45 -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 1sr9W5-0002OJ-FS for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 01:15:45 -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:Date:References:In-Reply-To:From:To:Subject; bh=n+9u7AccSXl4dvbrm1wMF2aXSF4SXkpmS8B9sKBOehc=; b=evbbb/H5yLfb9FLA1GLq8ox8WMEFSNteonXlSKqBETAC0Lihlfy2EZXwv/WxZO1Ng4h80TKcMxDjytNTWbJ4aeiY68ARuB3QDZ5i2KV3aZliwIJ7EOby7IXcTMRu+4JwyOYcWM/d8Xq1Dl70L6KKXydr+cKWmCi8blYfWLWgq6fyB5piABv4VgZFfK2gX7o3+XWzOsra9YqBvH11I/mHfNvNHSmbX9aWc8YXSv0dmM8B5gJbcqoF4DaOu461To9XOwIQi2i5so7CpftTy/MtphLl/SusZTq/2VJoUryMuE4N8EjhR7qVaw1Pa9uBDmNWeABfqtuOIrXUe8GaYB4TzA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sr9WM-0005Wo-7e for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 01:16: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: Thu, 19 Sep 2024 05:16: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-Cc: 72437@debbugs.gnu.org, "Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors" , Eli Zaretskii , Stefan Monnier Original-Received: via spool by submit@debbugs.gnu.org id=B.172672292220821 (code B ref -1); Thu, 19 Sep 2024 05:16:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Sep 2024 05:15:22 +0000 Original-Received: from localhost ([127.0.0.1]:59599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sr9Vh-0005Pd-F8 for submit@debbugs.gnu.org; Thu, 19 Sep 2024 01:15:21 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sr9Ve-0005NU-Ja for submit@debbugs.gnu.org; Thu, 19 Sep 2024 01:15:20 -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 1sr9VN-0000pl-B2 for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 01:15:01 -0400 Original-Received: from out-186.mta0.migadu.com ([2001:41d0:1004:224b::ba]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr9VK-0002C5-Vx for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 01:15:00 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breatheoutbreathe.in; s=key1; t=1726722895; 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: in-reply-to:in-reply-to:references:references; bh=n+9u7AccSXl4dvbrm1wMF2aXSF4SXkpmS8B9sKBOehc=; b=iSrI9rBSSwkzt2odGJH6I7eR5pw2yox1B0ZRbNz0VG7HMN3I9ZQJawzO7O8aWeFBypW0di bTiaBnZyrhZys4AXbfRLeSbzkyue2TdpQh+C2gUILkFm6Roksc8OS8W8a1IgMk1z4afd2P 7RLnH9nhy7YDVbjPsJdQov6r6eXLML4= In-Reply-To: <20F64DCD-929F-4B4C-BF85-ABE26FC7C995@breatheoutbreathe.in> (Joseph Turner's message of "Fri, 16 Aug 2024 23:28:32 -0700") X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:1004:224b::ba; envelope-from=joseph@breatheoutbreathe.in; helo=out-186.mta0.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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:292027 Archived-At: Joseph Turner writes: > On August 13, 2024 10:07:23 PM PDT, Eshel Yaron wrote: >>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). >>> >>> 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, so >>> I'm not sure how to make it work without breaking other things. >> >>In case you missed it, the patch I shared upthread might give you >>some ideas. It implements the requested behavior, safely, I think. >>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. So far so good, and I'll report back after a few weeks of usage. I have been running this patch for over a month with no issue. I vote to merge it! Thank you! Joseph