GNU logs - #42654, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#42654: Using electric-pair-inihibit-predicate won't work for all members of electric-pair-pairs
Resent-From: ej32u@HIDDEN
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 01 Aug 2020 18:26:01 +0000
Resent-Message-ID: <handler.42654.B.1596306346863 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 42654
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 42654 <at> debbugs.gnu.org
X-Debbugs-Original-To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>
Reply-To: ej32u@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.1596306346863
          (code B ref -1); Sat, 01 Aug 2020 18:26:01 +0000
Received: (at submit) by debbugs.gnu.org; 1 Aug 2020 18:25:46 +0000
Received: from localhost ([127.0.0.1]:41030 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k1wCW-0000Dp-Sr
	for submit <at> debbugs.gnu.org; Sat, 01 Aug 2020 14:25:45 -0400
Received: from lists.gnu.org ([209.51.188.17]:44272)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ej32u@HIDDEN>) id 1k1vMd-0007SA-Ib
 for submit <at> debbugs.gnu.org; Sat, 01 Aug 2020 13:32:10 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:59478)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ej32u@HIDDEN>)
 id 1k1vMd-00026D-C3
 for bug-gnu-emacs@HIDDEN; Sat, 01 Aug 2020 13:32:07 -0400
Received: from mail-40140.protonmail.ch ([185.70.40.140]:63200)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ej32u@HIDDEN>)
 id 1k1vMa-0001Yv-Bi
 for bug-gnu-emacs@HIDDEN; Sat, 01 Aug 2020 13:32:06 -0400
Date: Sat, 01 Aug 2020 17:31:55 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail; t=1596303119;
 bh=YtxFfJU9PgnRfNFUuobNTyoQaAhMB+Y56LnSkl+dinU=;
 h=Date:To:From:Reply-To:Subject:From;
 b=wWXNkaCQ43YHft58dN21xDWXsuGDtjSg9bwQ6euzdZMkSQN71jR+L6hORoKNavYKK
 lO729CUt/a5cV393SStKlZC0pfACNQhXFoSGmsyfQWohg/aOj6a7Quc1FW84FTK4pZ
 i5HMbiq7NYuF8+T8LvUZYqEq+uE0HvZ9ZehrK8PY=
From: ej32u@HIDDEN
Message-ID: <1TK38SyOLkqabqkCrOYwMFSlY5dxH2-9LZVgtl-xgLwFmdAta5cLCMcWRLXya124ex_cHppAJJOM0nyVVS16JUlTv7zWNdB2oy68gM1cNYw=@protonmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="b1_yA5MYsf4lhiVoDkFToO8qvRcojZalXbfjEdTe9IuqA"
X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE
 shortcircuit=no autolearn=disabled version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch
Received-SPF: pass client-ip=185.70.40.140; envelope-from=ej32u@HIDDEN;
 helo=mail-40140.protonmail.ch
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/01 13:32:00
X-ACL-Warn: Detected OS   = Linux 2.2.x-3.x [generic] [fuzzy]
X-Spam_score_int: -30
X-Spam_score: -3.1
X-Spam_bar: ---
X-Spam_report: (-3.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, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
 URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Mailman-Approved-At: Sat, 01 Aug 2020 14:25:43 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

This is a multi-part message in MIME format.

--b1_yA5MYsf4lhiVoDkFToO8qvRcojZalXbfjEdTe9IuqA
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64

SGVsbG8sCgpUaGlzIGlzIHdoYXQgSSB1bmRlcnN0b29kIGZyb20gdGVzdGluZyAoRW1hY3MgMjgu
MC41MCkgYW5kIHRoZSBjb2RlIG9mIGVsZWN0cmljLXBhaXItbW9kZS4KCi0gTW9yZSBwYW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c3BhbiBzdHlsZT0iZm9udC1mYW1pbHk6IGFyaWFsLCBzYW5zLXNlcmlmOyI+PGJy
Pjwvc3Bhbj48L2Rpdj48ZGl2IGNsYXNzPSJwcm90b25tYWlsX3NpZ25hdHVyZV9ibG9jay1wcm90
b24gcHJvdG9ubWFpbF9zaWduYXR1cmVfYmxvY2stZW1wdHkiPjxzcGFuIHN0eWxlPSJmb250LWZh
bWlseTogYXJpYWwsIHNhbnMtc2VyaWY7Ij48YnI+PC9zcGFuPjwvZGl2PjwvZGl2PjxkaXY+PGJy
PjwvZGl2Pg==


--b1_yA5MYsf4lhiVoDkFToO8qvRcojZalXbfjEdTe9IuqA--





Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: ej32u@HIDDEN
Subject: bug#42654: Acknowledgement (Using electric-pair-inihibit-predicate
 won't work for all members of electric-pair-pairs)
Message-ID: <handler.42654.B.1596306346863.ack <at> debbugs.gnu.org>
References: <1TK38SyOLkqabqkCrOYwMFSlY5dxH2-9LZVgtl-xgLwFmdAta5cLCMcWRLXya124ex_cHppAJJOM0nyVVS16JUlTv7zWNdB2oy68gM1cNYw=@protonmail.com>
X-Gnu-PR-Message: ack 42654
X-Gnu-PR-Package: emacs
Reply-To: 42654 <at> debbugs.gnu.org
Date: Sat, 01 Aug 2020 18:26:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 42654 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
42654: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D42654
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#42654: Using electric-pair-inihibit-predicate won't work for all members of electric-pair-pairs
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 06 Jun 2022 15:29:01 +0000
Resent-Message-ID: <handler.42654.B42654.165452932917189 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 42654
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: ej32u@HIDDEN
Cc: 42654 <at> debbugs.gnu.org
Received: via spool by 42654-submit <at> debbugs.gnu.org id=B42654.165452932917189
          (code B ref 42654); Mon, 06 Jun 2022 15:29:01 +0000
Received: (at 42654) by debbugs.gnu.org; 6 Jun 2022 15:28:49 +0000
Received: from localhost ([127.0.0.1]:36511 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nyEev-0004TB-3N
	for submit <at> debbugs.gnu.org; Mon, 06 Jun 2022 11:28:49 -0400
Received: from quimby.gnus.org ([95.216.78.240]:41590)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1nyEes-0004Sg-E5
 for 42654 <at> debbugs.gnu.org; Mon, 06 Jun 2022 11:28:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=6QSl0A85tvKD/qjvmTCUjMF74UdBZnWxnEXbVomkVEs=; b=fpkEbsVWBBFsZs+DBRe7wutYDA
 qJjaYG+eXdwIV627WAWKPkfZsMGhbf++L4keeNKk9F9Gg/4lSrttx8lXL+s/DHqSRpJyAvIAB1N08
 f88YW/9Kqqon+rhAjmvFbRcWktFuQdRNLVFAKjadX8V9yDHbmAcwSUUQXMnHKstZU1rw=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nyEeg-0004i2-P6; Mon, 06 Jun 2022 17:28:39 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
References: <1TK38SyOLkqabqkCrOYwMFSlY5dxH2-9LZVgtl-xgLwFmdAta5cLCMcWRLXya124ex_cHppAJJOM0nyVVS16JUlTv7zWNdB2oy68gM1cNYw=@protonmail.com>
X-Now-Playing: Vilde & Inga's _How Forests Think_: "=?UTF-8?Q?=E2=80=94?= VI"
Date: Mon, 06 Jun 2022 17:28:33 +0200
In-Reply-To: <1TK38SyOLkqabqkCrOYwMFSlY5dxH2-9LZVgtl-xgLwFmdAta5cLCMcWRLXya124ex_cHppAJJOM0nyVVS16JUlTv7zWNdB2oy68gM1cNYw=@protonmail.com>
 (ej32u@HIDDEN's message of "Sat, 01 Aug 2020 17:31:55 +0000")
Message-ID: <87h74xstem.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  ej32u@HIDDEN writes: > * More pairs can be defined
 by adding to electric-pair-pairs. > * To use electric-pair-inhibit-predicate, 
 the syntax of the character must be one of ' > (?\( ?\" ?\$). > * In Org
 mode, it is conveni [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

ej32u@HIDDEN writes:

> * More pairs can be defined by adding to electric-pair-pairs.
> * To use electric-pair-inhibit-predicate, the syntax of the character must be one of '
>  (?\( ?\" ?\$).
> * In Org mode, it is convenient to have pairs for "~", "+", "_", and "/". These
>  characters are not in the syntax classes required to run the inhibition function.
> * The syntax class of the characters can be modified, such as with
>  (modify-syntax-entry ?* "$").
> * Once the syntax class is modified, the characters are automatically paired by
>  electric-pair-mode. This means that the characters then do no need to be added to
>  electric-pair-pairs.
>
> I think it is a bug that electric-pair-inhibit-predicate won't be run when checking
> members of electric-pair-pairs. Yes, the syntax can be modified, but that makes the
> adding of the pair to electric-pair-pairs redundant, no?

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

Looking at the code, I'm not quite sure I understand your point here.
Perhaps it would be easier if you had a simple test case, and you could
explain what you see happening, and what you want to have happen?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 6 Jun 2022 15:28:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 06 11:28:52 2022
Received: from localhost ([127.0.0.1]:36514 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nyEey-0004TQ-BA
	for submit <at> debbugs.gnu.org; Mon, 06 Jun 2022 11:28:52 -0400
Received: from quimby.gnus.org ([95.216.78.240]:41604)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1nyEex-0004Sy-4m
 for control <at> debbugs.gnu.org; Mon, 06 Jun 2022 11:28:51 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc:
 MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=gkeXyV6ZMGP6ReoQesKPyTqFtvEx3Hcg/XoSBwktOQI=; b=JL8ZWO86lM//gK+/G/jv85/oSX
 WGD53QzfBef33GAvQzJZQf+XNhqe7rWzDYaNUYJHfVtahIgxP4DBGQ7rnox1//H/LLQIEoBMStG+x
 FIt7jBdbWyigvAdTMx217qzDhpepIbKy/Y9pJkdqVPCUL5bPVXaf0lWxLn7k58gdtZqI=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1nyEep-0004iE-7F
 for control <at> debbugs.gnu.org; Mon, 06 Jun 2022 17:28:45 +0200
Date: Mon, 06 Jun 2022 17:28:41 +0200
Message-Id: <87fskhstee.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: control message for bug #42654
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  tags 42654 + moreinfo quit 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 42654 + moreinfo
quit





Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#42654: Using electric-pair-inihibit-predicate won't work for all members of electric-pair-pairs
Resent-From: ej32u@HIDDEN
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 07 Jun 2022 02:09:02 +0000
Resent-Message-ID: <handler.42654.B42654.165456769421355 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 42654
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: moreinfo
To: Lars Ingebrigtsen <larsi@HIDDEN>
Cc: 42654 <at> debbugs.gnu.org
Reply-To: ej32u@HIDDEN
Received: via spool by 42654-submit <at> debbugs.gnu.org id=B42654.165456769421355
          (code B ref 42654); Tue, 07 Jun 2022 02:09:02 +0000
Received: (at 42654) by debbugs.gnu.org; 7 Jun 2022 02:08:14 +0000
Received: from localhost ([127.0.0.1]:37199 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nyOdi-0005YN-BN
	for submit <at> debbugs.gnu.org; Mon, 06 Jun 2022 22:08:14 -0400
Received: from mail-4322.protonmail.ch ([185.70.43.22]:58007)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ej32u@HIDDEN>) id 1nyOde-0005Y3-5Y
 for 42654 <at> debbugs.gnu.org; Mon, 06 Jun 2022 22:08:12 -0400
Date: Tue, 07 Jun 2022 02:08:01 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail3; t=1654567684; x=1654826884;
 bh=eEBV2UVcmr0TBnQ3BiCKn9sV35l6b2PspbXEMhegopY=;
 h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To:
 References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To:
 Feedback-ID:Message-ID;
 b=U/gz/lN0wVBKhcXExlVv889AHlwEqT4Y6VtKqj9cQKR4PcUak0UEavLQc4WXxEieI
 dF0ipag6DI2hOp1wJKMhZU8AWMk4m+ZKKODcVicLQAOWas49UXdwBD1pSahaj/JglA
 cQPiLvkW9jlp3ZKOI7By293OshAdvP+gcc84t6YvShDIgCpXTlfL1YwyrHDolFpzj6
 qq4Q4XR2Ak4Y8BjvE8kDXfTFi4+ZZT0yeaOc/OasR0/b5ttP3dDa6EfgP6YriPt/PT
 /6AvUwb4323CDkeNdGPwaPJ3VebracmcpOtHOe+RzXaRqpMqd506aygM7gD31TpkAZ
 /76oH+M3CcaFQ==
From: ej32u@HIDDEN
Message-ID: <fb43e861-b009-86d6-94ab-e55f22f5fb74@HIDDEN>
In-Reply-To: <87h74xstem.fsf@HIDDEN>
References: <1TK38SyOLkqabqkCrOYwMFSlY5dxH2-9LZVgtl-xgLwFmdAta5cLCMcWRLXya124ex_cHppAJJOM0nyVVS16JUlTv7zWNdB2oy68gM1cNYw=@protonmail.com>
 <87h74xstem.fsf@HIDDEN>
Feedback-ID: 1525109:user:proton
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 6/6/22 11:28, Lars Ingebrigtsen wrote:
 > (I'm going through old bug reports that unfortunately weren't resolved
 > at the time.)
 >
 > Looking at the code, I'm not quite sure I understand your point here.
 > Perhaps it would be easier if you had a simple test case, and you could
 > explain what you see happening, and what you want to have happen?
 >
 > --
 > (domestic pets only, the antidote for overdose, milk.)
 >    bloggy blog: http://lars.ingebrigtsen.no

Hello,

This was a while ago, but here is how I remember it.  I wanted to add
the character "*" to ~electric-pair-pairs~ for Org mode.  However, I did
not want it to pair when inserting at the beginning of a line, since the
character is also used to begin headings.

I tried setting ~electric-pair-inhibit-predicate~, but found that it
isn't used unless the inserted character has the right syntax. That
function is run by  ~electric-pair-post-self-insert-function~, which
seems to only run the predicate function if the inserted character is
~(memq syntax '(?\( ?\" ?\$))~.

I think that the running of the inhibition function should also occur
for pairs in ~electric-pair-pairs~ and that it should not depend on the
syntax of the inserted character for pairs in ~electric-pair-pairs~.

Nowadays, I am using Smartparens (https://github.com/Fuco1/smartparens),
which already has the behavior I sought.

Below is an example:

1. Add the character "*" to ~electric-pair-pairs~ so that it is
automatically
    paired:

    #+begin_src emacs-lisp
      (setq-local electric-pair-pairs (cons '(?* . ?*) electric-pair-pairs)=
)
    #+end_src

2. Add a predicate to not pair "*" when it is at the beginning of a
    line.  NOTE: This does not work. The character "*" does not have
    the required syntax to run in
    ~electric-pair-post-self-insert-function~ (one of ?\), ?\", or ?\$).

    #+begin_src emacs-lisp
      (defun my-inhibit-for-org-heading (inserted-char)
        (or (and (eq inserted-char ?*)
                 ;; If point was the beginning of the line, don't pair.
                 (eq (1- (point)) (line-beginning-position)))
            (funcall (default-toplevel-value
'electric-pair-inhibit-predicate)
                     inserted-char)))

      (setq-local electric-pair-inhibit-predicate
#'my-inhibit-for-org-heading)
    #+end_src

3. Test inserting "*" at the beginning of the line.  See that it is
    paired.






Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#42654: Using electric-pair-inihibit-predicate won't work for all members of electric-pair-pairs
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 07 Jun 2022 09:54:01 +0000
Resent-Message-ID: <handler.42654.B42654.16545956102483 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 42654
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: moreinfo
To: ej32u@HIDDEN
Cc: 42654 <at> debbugs.gnu.org, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
Received: via spool by 42654-submit <at> debbugs.gnu.org id=B42654.16545956102483
          (code B ref 42654); Tue, 07 Jun 2022 09:54:01 +0000
Received: (at 42654) by debbugs.gnu.org; 7 Jun 2022 09:53:30 +0000
Received: from localhost ([127.0.0.1]:37815 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nyVtx-0000dy-TF
	for submit <at> debbugs.gnu.org; Tue, 07 Jun 2022 05:53:30 -0400
Received: from quimby.gnus.org ([95.216.78.240]:50944)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1nyVtw-0000dW-20
 for 42654 <at> debbugs.gnu.org; Tue, 07 Jun 2022 05:53:29 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=DWJ8t5iDWai626G9aMdJSjUe8VKGVdKuI3Ho4IJwuS8=; b=URbzu7Ep6ENcTAXQnX0wRpvpTR
 tblwNVT2YZ6CZLlRCQnueeDrl9vg75qgUZdColbzTegY9FTMAPotcoUd3qQ/BWsF66G5f2pkIqlc3
 spRdhY8qQjS8cNKKfx1H/I7fr+YbOKrP7TRM1d38KSktL7DrAYJa0Sf4S1MwEtTD6+R8=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nyVtm-0000xk-PL; Tue, 07 Jun 2022 11:53:21 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
References: <1TK38SyOLkqabqkCrOYwMFSlY5dxH2-9LZVgtl-xgLwFmdAta5cLCMcWRLXya124ex_cHppAJJOM0nyVVS16JUlTv7zWNdB2oy68gM1cNYw=@protonmail.com>
 <87h74xstem.fsf@HIDDEN>
 <fb43e861-b009-86d6-94ab-e55f22f5fb74@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEV0i8mqt9qIe2RZ
 UzQlJhT///8BGhQ6AAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YGBwkyJi7ydSUAAAGOSURBVDjLdZPr
 YcMwCISlDaxM0IAXqGCCoP1n6vGw46QJP2xFH9wh5LT2OcbrevSxYdXHKOCrbWRsPV5tOyt7H22c
 8UHdd/s/0N+TewvbMHmv367y46y/xNaKvu1XGfgX8CWu6S+V7exl3OYLaHQk7vJ7BSZC5J1tS+Yb
 iCA2o/sFTJ0cRJdNmoQowJM5kKIkXrLwDEDExL4zKWsRzbc9CvAJlng+AiAceO4J0Naq1nQhRRyo
 V1wBHhAzUWmlWyRfAE8pxhMVnFLhQaQ4mXdldaDq6pBZxo8QSmD6BJnkiqbtMIy0nMykcb81pAGt
 Vft+xJ5jj1TLXif9HN9TK4GMmIlDAIl9s5WFOVHCnyAycUduY6p6lBXwU8MM4LGkgF/XIlyGQm7f
 8QgCc/G71Gx4OfUpkQ/RO35oWK2jB8asoI8zqNskwFu4SWjLvth3vG9TZAJANk4v5RDrKS1mZAVc
 P1sQvw+XeJJY4s413CRNC/jEA2BW+KGaTfmXF+ZhqO7EaRJ3EBXeoJ3HRrOYzx/t17FtTN2DFAAA
 ACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0wNi0wN1QwOTo1MDozNyswMDowMP8Dw9MAAAAldEVYdGRh
 dGU6bW9kaWZ5ADIwMjItMDYtMDdUMDk6NTA6MzcrMDA6MDCOXntvAAAAAElFTkSuQmCC
X-Now-Playing: The Names's _In Mutation_: "A Coeur Fendre"
Date: Tue, 07 Jun 2022 11:53:17 +0200
In-Reply-To: <fb43e861-b009-86d6-94ab-e55f22f5fb74@HIDDEN>
 (ej32u@HIDDEN's message of "Tue, 07 Jun 2022 02:08:01 +0000")
Message-ID: <87tu8wn6k2.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: ej32u@HIDDEN writes: > I tried setting
 ~electric-pair-inhibit-predicate~, 
 but found that it > isn't used unless the inserted character has the right
 syntax. That > function is run by ~electric-pair-post-self-insert-functi
 [...] Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

ej32u@HIDDEN writes:

> I tried setting ~electric-pair-inhibit-predicate~, but found that it
> isn't used unless the inserted character has the right syntax. That
> function is run by  ~electric-pair-post-self-insert-function~, which
> seems to only run the predicate function if the inserted character is
> ~(memq syntax '(?\( ?\" ?\$))~.

Ah, right.  Here's the complete recipe to reproduce the problem:

(progn
  (require 'elec-pair)

  (setq-local electric-pair-pairs (cons '(?* . ?*) electric-pair-pairs))
  (electric-pair-mode 1)

  (defun my-inhibit-for-org-heading (inserted-char)
    (or (and (eq inserted-char ?*)
             ;; If point was the beginning of the line, don't pair.
             (eq (1- (point)) (line-beginning-position)))
	(funcall (default-toplevel-value
		  'electric-pair-inhibit-predicate)
		 inserted-char)))

  (setq-local electric-pair-inhibit-predicate #'my-inhibit-for-org-heading))

`my-inhibit-for-org-heading' is never run when typing * in this
scenario, because it doesn't have parentheses/quote syntax, so
`electric-pair-syntax-info' returns UNCONDITIONAL true.

I'm not sure what the logic is behind this -- perhaps Jo=C3=A3o has some
comments; added to the CCs.

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 5 Jul 2022 11:37:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 05 07:37:46 2022
Received: from localhost ([127.0.0.1]:49493 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o8gsE-0003xi-BL
	for submit <at> debbugs.gnu.org; Tue, 05 Jul 2022 07:37:46 -0400
Received: from quimby.gnus.org ([95.216.78.240]:43126)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1o8gsC-0003xR-6k
 for control <at> debbugs.gnu.org; Tue, 05 Jul 2022 07:37:44 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc:
 MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=jwXMlTWmLwhpI2jRLEy0QrgdzF54bf5bJMxOwVqfdns=; b=OUjaYzWeqEgp6mZNIIUnhFx3CA
 dm4FrNdano9K5NHHUzdwKLmb/gz1xTT1i+NPsrcg43Nr4FUiw+ZVZv1o3VRW7q0iblxfRmIPRiJ8q
 9Tr6vIYAnVF5sRlsJHPu3wlMe/XA2KFfNU7uvUwptZvzUbENcibClhUhITqiDd9PPu6Y=;
Received: from [84.212.220.105] (helo=joga)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1o8gs4-00018N-Ij
 for control <at> debbugs.gnu.org; Tue, 05 Jul 2022 13:37:38 +0200
Date: Tue, 05 Jul 2022 13:37:36 +0200
Message-Id: <87czej4wov.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: control message for bug #42654
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  tags 42654 - moreinfo quit 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 42654 - moreinfo
quit






Last modified: Tue, 5 Jul 2022 11:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.