From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nikolay Kudryavtsev Newsgroups: gmane.emacs.bugs Subject: bug#73688: [PATCH] electric-pair-mode - preserve balance in conservative mode Date: Sat, 23 Nov 2024 20:37:23 +0300 Message-ID: <8e331068-57e1-4375-8ccb-10eb83648986@gmail.com> References: <86v7wwn4lz.fsf@gnu.org> <6eb1f1cd-80dd-4fec-bebc-9d361321000d@gmail.com> <865xoem96o.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19109"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 73688@debbugs.gnu.org, marc@soda.fm, monnier@iro.umontreal.ca, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 23 18:39:15 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 1tEu6D-0004lm-OW for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Nov 2024 18:39:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEu64-0002IM-Jg; Sat, 23 Nov 2024 12:39:04 -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 1tEu62-0002Ho-Rp for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 12:39:02 -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 1tEu62-0006wL-JY for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 12:39:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:References:MIME-Version:Date:From:To:Subject; bh=EHHjVCR85QxUzpDFUE/0otnfvLvALf2Mtec+bLE/GCE=; b=vnFu/mH8qX5lLQdCCKTmwoP7sM0oBY/pkwRJWPpuWuUxSfVj0QO/mpwkXtys498IUnS0Vs1z0HwLyDvyZz7vfmzDnT18jQkhcq/LJcCSHM3/bmJevmBKfssKKFYoSfbcEXpB+b55dRsF4l6a0+81Yzctmi1lhcN+28GDoeQNUBrxsgXhE066NEVz4zFQXBQrPXICQoF3rFmyDsmZn3/V4MLiAddSZ2JTLv5o6x7HnI+j8KFWUbDalWGUTGAVxY2EAxArq/gA6YNtc1qPExIev4DbyH3bK+hw4bv5AhCjfOJqXjEsEIwIM7h6L/Hh6QVx0aOOk1LFsC+eM8C9OyQ1oA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEu62-0003Ee-FG for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 12:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Nikolay Kudryavtsev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Nov 2024 17:39:02 +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.173238351012367 (code B ref 73688); Sat, 23 Nov 2024 17:39:02 +0000 Original-Received: (at 73688) by debbugs.gnu.org; 23 Nov 2024 17:38:30 +0000 Original-Received: from localhost ([127.0.0.1]:58956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEu5V-0003DO-IZ for submit@debbugs.gnu.org; Sat, 23 Nov 2024 12:38:29 -0500 Original-Received: from mail-lj1-f171.google.com ([209.85.208.171]:46398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEu5T-0003DF-Ga for 73688@debbugs.gnu.org; Sat, 23 Nov 2024 12:38:28 -0500 Original-Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2ffa97d99d6so18586211fa.1 for <73688@debbugs.gnu.org>; Sat, 23 Nov 2024 09:38:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732383446; x=1732988246; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from:from:to :cc:subject:date:message-id:reply-to; bh=EHHjVCR85QxUzpDFUE/0otnfvLvALf2Mtec+bLE/GCE=; b=nnKedgZs/ZwyzFRrbVOweCtTbTyLoLlhr0LfYyBMtPWT70N30FGjnWUFFGJJMVQKwz iO7Sacg2a81FEHuGFqdjLIvWp4jt3YFpVjiehl/H2yI4vPjx6AqNJqyFhUu/1YIaE70l Rmg4Khf6H51h3da5u9yiE7Co8SgSMejfXsqUS/TRT8GRM9oZAxFFxEjnfRFYbkhVzxcu 7QvTYzfROpq1C3axlxleV1b+ZqYfJy96DlHy+JBPKnDkd51BntI/38DFF06qqf3tNe0D +HaFXDNzE+uljIetOm7x631QcHUnHX2Y2xpE1HLwGQsxXLjjFqTMh9gno7dAbLexrmCD jfuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732383446; x=1732988246; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EHHjVCR85QxUzpDFUE/0otnfvLvALf2Mtec+bLE/GCE=; b=BETVlsMF/4s6Dgb5ig1ij1l/pcrU9lKrN4DDZe8JD3mQoz7bgzV3spGk71MmyN5GMY uj504RH6kvDxQH1mQsvP2A/xcu5xmBQ0ZMz+kiT6jWnkI4oOhfsJTS/5uZ3Hc8++5vD/ KEXsj/fEI/LTkibMjoe7BTckQ+bNLxs6Ppahgly6JwifzWmmrjdpjtqJxeXJGSDCBvL/ 7SgXMhenvigRN+FwNaOTaNwIvBLwZa4MD4m62i9SubWzyl6HNgOql+6UlJ1Vl9EIHEjg ScCD9U7mzcj5e7i/Hkyi6Y1rpjPP6rSkiiwDPr4RGhiW4SrsLUe0beaDj3wVkVAZT+8v zwPw== X-Forwarded-Encrypted: i=1; AJvYcCU+bTfDKk0nCzSDr1qZNqsgdtospR99f/FEU35w+4RI/acD4y564iqFr7gfxjG72B4/l4tnmw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwMs0OquUx+2typNK9SnfvkzGT77/zmiCZ5A8TYp1HhlLs6Y0DO DSvfMC5loTFig+fmIELtM5alXcAE/Ig2/Jo0oGR8kZ81BpJFBp1y X-Gm-Gg: ASbGncvyhVDqEge+5BaxPVTHDb5aprYCsaNiYnZThwhwT8MpC0EAgvb6VuMKh1vZZ3l B7W5mdV9ik4BnNEqFtnldRkJ6Hc69qPLzyV7qllsexV/BJnv0v9WoQ9om05dLukHRvaBv8V8LB1 MUaPnhi6ykwNlFVD1THz3E2tzHvwBHCnBWPUYf+Fh080PEEqDeP+CJhv1eJc1yPTsLaNCrLzTwl ZM/k/Ryqfwr+sEIYMnyCExo9kdcwuB1EspVzToSS8LNWLAodrizU6Iertoa+6VrMhrvMvW0Rtca u7XfCR3IcsIwJxs+wvaeeC5cX+7ZXUAomxWnfZrpj1WF X-Google-Smtp-Source: AGHT+IHokd2K0OulLdJlrPD8lt54v5Jf/YDQaaWkdtqxagJsW6Ppb/PQI/FGJB7lJn5cwqGkKg99Kg== X-Received: by 2002:a05:6512:3410:b0:53d:de4e:fe6e with SMTP id 2adb3069b0e04-53dde4efeccmr631167e87.50.1732383446206; Sat, 23 Nov 2024 09:37:26 -0800 (PST) Original-Received: from ?IPV6:2a02:2168:b20b:5100:8b2f:dc19:7327:22bf? ([2a02:2168:b20b:5100:8b2f:dc19:7327:22bf]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53dd3c149b7sm932435e87.39.2024.11.23.09.37.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 23 Nov 2024 09:37:25 -0800 (PST) X-Google-Original-From: Nikolay Kudryavtsev Content-Language: en-US, ru In-Reply-To: <865xoem96o.fsf@gnu.org> 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:295856 Archived-At: Yes, I think before closing, we need João, or someone else on the dev team to judge on the merit of the multiple ORd electric-pair-inhibit-predicates idea. Implementing it would lead to deprecating electric-pair-inhibit-predicate(should be still working though for X major versions), and beyond this use-case there doesn't seem to be that many other use cases for inhibit-predicates anyway. But this would give us a lot more flexibility for whenever they appear, since this seems to be the proper solution here.