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#73688: [PATCH] electric-pair-mode - preserve balance in conservative mode Date: Sat, 23 Nov 2024 14:22:23 +0200 Message-ID: <865xoem96o.fsf@gnu.org> References: <86v7wwn4lz.fsf@gnu.org> <6eb1f1cd-80dd-4fec-bebc-9d361321000d@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2240"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73688@debbugs.gnu.org, marc@soda.fm, monnier@iro.umontreal.ca To: Nikolay Kudryavtsev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 23 13:23:17 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 1tEpAS-0000Pu-9r for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Nov 2024 13:23:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEpAI-0002u0-Ov; Sat, 23 Nov 2024 07:23:06 -0500 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 1tEpAF-0002s4-Sf for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 07:23:03 -0500 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 1tEpAF-0005uO-Cz for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 07:23:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=mzvn1TglZb2Lw83s9zzTF72PngyxRoNqiEzXRItgcfA=; b=e7+iuBKu07We7T4JQ39TlgWNOe8U61OVqHsComQ54pMTtHs8o/uFGDKga8YNVLI/AtavehfqL8P5jZ8LRHOmlzEvkEoMVzsiAdTpNkdvzx9aXDbQ2OCKGLCJqP4Ljhd3Fs7h9A/Cw1yiDy8XFQfv5fJiFIlGpN8BLuZIg5WSN5kNBrC+WZGJI0pz7Fv/DrrtaYrlyR/SZFKZHUpx5Ig0fsAqlEpipsnfie/R9xmFeMsb3LRqNYypQ+U0gnMGA3ICzV1J8xzYtqrcbNEIX2wewGs1hWjQvi/7VDY4jFPvn9aY6kUWcQbffa0K3p8BKVz7XL0HxP7RHFGt2Fo5yhixOg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEpAF-0003rL-7d for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 07:23:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Nov 2024 12:23:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73688 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 73688-submit@debbugs.gnu.org id=B73688.173236455414752 (code B ref 73688); Sat, 23 Nov 2024 12:23:03 +0000 Original-Received: (at 73688) by debbugs.gnu.org; 23 Nov 2024 12:22:34 +0000 Original-Received: from localhost ([127.0.0.1]:56990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEp9m-0003ps-Ch for submit@debbugs.gnu.org; Sat, 23 Nov 2024 07:22:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEp9k-0003pf-IM for 73688@debbugs.gnu.org; Sat, 23 Nov 2024 07:22:33 -0500 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 1tEp9e-0005sP-Ig; Sat, 23 Nov 2024 07:22:26 -0500 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=mzvn1TglZb2Lw83s9zzTF72PngyxRoNqiEzXRItgcfA=; b=RM6MZl1U4RcX HZ//DtzOHMIrq/BuraRLx7kz5dudyHDjpwyUR0dO4J3gBJJ8XPFgu9H/x1cpdoP4ntjUbduwapXHV kWZJPoFgyxRwepc2ihqVKSqVbf2tUoDXwAB21XaNViAUa5QbFnpx1XS02ade4ok5ZaYJd4Ok+22oT Azp3SF4V8pOBUTEBzYznZt8iH309847+l7nZ3bRY34aqU+j/l6T9u8b6u7BAg1xBiFHguLdEj+5Ik 56io3XjgVxEe4eGXLhHfV9OmU893kE5qAEig9OllbdKSgriPImju4bJKQykxP4sdhccTFz3+t5pRq 6yqdDwYnHuWJp6YO2Jp3HA==; In-Reply-To: (message from Nikolay Kudryavtsev on Sun, 10 Nov 2024 17:28:44 +0300) 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:295823 Archived-At: > From: Nikolay Kudryavtsev > Date: Sun, 10 Nov 2024 17:28:44 +0300 > Cc: Eli Zaretskii , Marc Soda , > 73688@debbugs.gnu.org > > OR seems like the natural solution for multiple predicates in this case. > And if you need AND for a subset of predicates, you can easily roll out > your own predicate implementing that. > > Obviously there's nothing really wrong with add-function hacks in > practice, but, in my opinion, if we're relying on them in places for > which a proper customization ability was already designed and > implemented, it's a telling sign that it is inadequate. Is there anything else to do in this bug, or should we now close it?