From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#73688: [PATCH] electric-pair-mode - preserve balance in conservative mode Date: Sun, 13 Oct 2024 00:36:49 +0100 Message-ID: References: <86iktxwlyv.fsf@gnu.org> 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="18368"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 73688@debbugs.gnu.org To: Marc Soda , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 13 01:56:14 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 1szly1-0004cS-QO for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Oct 2024 01:56:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szlxi-0008Bt-7M; Sat, 12 Oct 2024 19:55:54 -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 1szlxg-0008BL-4f for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 19:55:52 -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 1szlxc-0006KR-00 for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 19:55:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=uHcTAGzdYGIyo3a/uqC0VmeTNZFiEQTy0IrOJ8ew9xc=; b=mWok7tIcX0Mq/r+HUWQNCs/lBbWPM2Lq0tnuTT3QCCBpK0H5lQe4spyYSWn790BTwMYxtp02rBDxku2X5RA3oDhR+30VhSYWk8zTpz08rcfL+CgcDZ/X0V6oOTb1jIGUVWx5K1ibQOxiTHeGQSy8YW2zMXjEKvohD6hpxo1hnKO8dfIMRZtprzCiM/N7bPBZK5JJwI6ImNFe1Jb735nBznW3vwoLqM0VPuWHVB99m6ifiNqiIc5dBLvzi8QwtKcX80bQRs13Mdqy06TjWXoNSQZX7e20A2nu24+tiNGqvYNGq8HlvUNUh9kb6Qzdg6EfYZME6WHwFBZWhbyQmvpWCQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1szlxq-000619-9E for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 19:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Oct 2024 23:56: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.172877731322480 (code B ref 73688); Sat, 12 Oct 2024 23:56:02 +0000 Original-Received: (at 73688) by debbugs.gnu.org; 12 Oct 2024 23:55:13 +0000 Original-Received: from localhost ([127.0.0.1]:41349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szlx2-0005qU-PQ for submit@debbugs.gnu.org; Sat, 12 Oct 2024 19:55:13 -0400 Original-Received: from mail-oi1-f180.google.com ([209.85.167.180]:43084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szllz-000534-O2 for 73688@debbugs.gnu.org; Sat, 12 Oct 2024 19:43:48 -0400 Original-Received: by mail-oi1-f180.google.com with SMTP id 5614622812f47-3e5d3662432so388629b6e.0 for <73688@debbugs.gnu.org>; Sat, 12 Oct 2024 16:43:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728776547; x=1729381347; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=uHcTAGzdYGIyo3a/uqC0VmeTNZFiEQTy0IrOJ8ew9xc=; b=mNb44RATlm/tyL/JAvEbkzrfer282+sCi7DLCnCAPVYfx0iLmADvxxuEKFktt41O6N NZVk0MF1cZ0YCN2c/0szFQARBFLdB5v8Ps7NZyH1J6fkm6eQtK6LFYD/0Zlg1/uIFSp8 GmH3Fn8wSJslJKNz6mlp0lH0KrMSvnzlP+bTHOo+quByedMzHmiERMbUV67I2E8MV5UF fPoD+KZdsXXIw6DadeR43iPG/gI8xCBqPaNAPurE6A4NcCfAQ5mw59MuEsNC/A0fNtrB xOrhU4FFnaCZaCNrHoBvA4awTSh47lysLRN0ZEUaMXfmXF6VMVNNB6bmR+UiuBAq371m koiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728776547; x=1729381347; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uHcTAGzdYGIyo3a/uqC0VmeTNZFiEQTy0IrOJ8ew9xc=; b=HFDPPkzg/UwHpxglIrKRxa79g1lC1ny9nQathsAtAjGme8YBSUGt5KOr9Az1004KIy IA7XPrPjQ7YC6HOngPO2WHvdC9AFe4VOioc+IKZF5Poy/KVj3KiHRR4E48weWvZJnqLx yTLW/2jZMeA6ol+LmHM1FvrHc9A3RyLlHpeL5uDjv47UDde0lkAeYUdQy/LCW9B0jcAG sFG6o7tOxM+RcfNbQNRE4EUKlZTzUDHfN4lT1wP4DXoFmHgO95e90db99mj7fecHoXgY qZbyJV0LXHnhgsFlnllDjekztgYHcb/ygRVvzCzgU/iKJ/E1B/6Fk39hcMvDiBEkQHi1 3DDg== X-Forwarded-Encrypted: i=1; AJvYcCXJ/70Tv1d9rIYO3sVzN21G4CenaAjBavthTAXFg7YPnfytPZE4q7dkpA8/OvLUpb9PlDjrlQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yx57yOQ6RZ4XCcNwxAfT89RI20ZsVeyMcTDJE669DE8geUl4zRp 6G5O4+zr8VYmLOHistbmTbGGa2paStxdJbEKa9tSBk2OFubw6IRkxemXiQSBpP/3V9eLGInNgxi wtKxb5ox+SWkh2ke8ucOtedJk7kxVCg== X-Google-Smtp-Source: AGHT+IGK9PTohke5Qxp+aL55sZd5UrmPlmxkqM1bSKvc+p1/1fLt2MbaJy5CcMEnOHA/oxN4tXpwBqqaKrQuErNcJUU= X-Received: by 2002:a05:6820:e0d:b0:5e9:89ba:beae with SMTP id 006d021491bc7-5e990d243a5mr5464593eaf.4.1728776116905; Sat, 12 Oct 2024 16:35:16 -0700 (PDT) In-Reply-To: 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:293485 Archived-At: On Sat, Oct 12, 2024 at 9:43=E2=80=AFPM Marc Soda wrote: > > Sorry, this is my first emacs bug report, I should have been more clear. > > From emacs -Q: > > (electric-pair-mode t) > (setq electric-pair-inhibit-predicate 'electric-pair-conservative-inhibit= ) Ah, so this is the (quite) old implementation from Stefan, I think. I didn't write or know it. I don't think it's compatible with balance preservation. Jo=C3=A3o