GNU bug report logs - #79047
Add some multi-character pairs to some major modes.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Elijah Gabe Pérez <eg642616@HIDDEN>; dated Sat, 19 Jul 2025 02:05:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 79047) by debbugs.gnu.org; 20 Jul 2025 11:30:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 20 07:30:16 2025
Received: from localhost ([127.0.0.1]:49250 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1udSFD-0006oE-RQ
	for submit <at> debbugs.gnu.org; Sun, 20 Jul 2025 07:30:16 -0400
Received: from mail.muc.de ([193.149.48.3]:23093)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <acm@HIDDEN>) id 1udSFB-0006Kt-Bz
 for 79047 <at> debbugs.gnu.org; Sun, 20 Jul 2025 07:30:13 -0400
Received: (qmail 9955 invoked by uid 3782); 20 Jul 2025 13:30:05 +0200
Received: from muc.de (p4fe152fa.dip0.t-ipconnect.de [79.225.82.250]) (using
 STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP;
 Sun, 20 Jul 2025 13:30:05 +0200
Received: (qmail 8388 invoked by uid 1000); 20 Jul 2025 11:30:04 -0000
Date: Sun, 20 Jul 2025 11:30:04 +0000
To: Elijah Gabe =?iso-8859-1?Q?P=E9rez?= <eg642616@HIDDEN>
Subject: Re: bug#79047: Add some multi-character pairs to some major modes.
Message-ID: <aHzTPJJl8ijm3tdn@HIDDEN>
References: <87ms91gcmb.fsf@HIDDEN>
 <867c04fzpv.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <867c04fzpv.fsf@HIDDEN>
X-Submission-Agent: TMDA/1.3.x (Ph3nix)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79047
Cc: 79047 <at> debbugs.gnu.org, acm@HIDDEN, Eli Zaretskii <eliz@HIDDEN>,
 John Muhl <jm@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
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 (-)

Hello, Elijah.

One important point.

On Sat, Jul 19, 2025 at 09:42:52 +0300, Eli Zaretskii wrote:
> > From: Elijah Gabe Pérez <eg642616@HIDDEN>
> > Date: Fri, 18 Jul 2025 20:04:12 -0600

> > Since `electric-pair-mode` now supports multi-character pairs, it would
> > be better if some major modes add some of these pairs.

Are you sure about this?  In NEWS, there is the rather sloppily worded
entry:

    ** Electric Pair mode can now pair multiple delimiters at once.
    You can now insert or wrap text with multiple sets of parentheses and
    other matching delimiters at once with Electric Pair mode, by providing
    a prefix argument when inserting one of the delimiters.

It uses the sloppy American English ambiguity where "multiple" can mean
either "several", or "composed of several parts".  In correct British
English "multiple" has only the latter meaning.

I think in this NEWS entry the meaning "several" was intended, and you
may have misread it.  I don't think electric-pair-mode has any facilities
for pairing a multiple delimiter; only for pairing several of the same
delimiter at once, e.g. (((....))).

Please check if I am correct or mistaken on this point.  If I'm correct,
then the prerequisites for implementing this change are absent, and there
is nothing more to discuss.

> > Before making the patch for this (and to avoid doing another regression
> > like bug#77823), here is a list of the modes and their possible pairs:

[ .... ]

-- 
Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79047; Package emacs. Full text available.

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


Received: (at 79047) by debbugs.gnu.org; 19 Jul 2025 18:52:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 19 14:52:02 2025
Received: from localhost ([127.0.0.1]:44660 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1udCfB-0000sQ-Jg
	for submit <at> debbugs.gnu.org; Sat, 19 Jul 2025 14:52:02 -0400
Received: from fhigh-b7-smtp.messagingengine.com ([202.12.124.158]:57923)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <jm@HIDDEN>) id 1udCf7-0000re-BB
 for 79047 <at> debbugs.gnu.org; Sat, 19 Jul 2025 14:51:59 -0400
Received: from phl-compute-10.internal (phl-compute-10.phl.internal
 [10.202.2.50])
 by mailfhigh.stl.internal (Postfix) with ESMTP id 77DFD7A0062;
 Sat, 19 Jul 2025 14:51:51 -0400 (EDT)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-10.internal (MEProxy); Sat, 19 Jul 2025 14:51:51 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to; s=fm2; t=1752951111;
 x=1753037511; bh=vKH4WjvkrWMuR7JHnDt0j9vCSxN2RhJwBa6FXqtywTo=; b=
 1lf8QUb9rLesRMkhXt+w1G8XVqFmth0G+axHLVu9aBLOtoxVKGMFb53vbxe2OUz4
 Wf7vFIV0o54hezt/78QNp7788NEmA0e/86Dg360lbrYGg3EdARMEmYasGaXM3aMT
 cQpLJTmzviiAoYleaWfCFHG4n+9mwmSrGERHTGsH7XkBy3zv/2tO3+4jx5M9c6HX
 Eg3NE/+GbExbJnBjVVolMmBOHQn7fwRXyO4GhBPEV8+FqWJ9owLMYBtZz5NLyl+p
 kgxM9Fd/DqdCFG5CDTuWzhbPXYvUQ6Qqrbol2Ufq9Hc8QdS2am8fQKxwTTWVAL72
 +OMp8p3/DbAAlAjgAIR7Rw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1752951111; x=
 1753037511; bh=vKH4WjvkrWMuR7JHnDt0j9vCSxN2RhJwBa6FXqtywTo=; b=I
 nwCqm7AM2oUbPTeXDERECbESSYJ9n1IvFzVKFGrrh02IFyaRGeA09XBedwtIyGEq
 GIkqlDdmO6IoSojud38/NHaH9AsfciCJxtzhV/PgKg8fJ6UMB4Qv+MCiV5w+Ld6s
 o1vT1YDl31lPvqdIdaiFISonM6fGOY5oX9uXygxK7yoIpd+o+N3MjE82Dn4AGW2h
 zmsH45b2CobtPPnAUxUKouiJ1J8giykqaSELmwO/uMYvVysjgKIxo9hAcPvhF01/
 0uzTz7MuUjWg3Vw1WJagn67MxstHc/HvNsahl0iwSfl02n59nHCgSgkiOh3MetnN
 7QY9psvm4DzjcLOo033AQ==
X-ME-Sender: <xms:Rul7aHKgqVDE_a2HrX8auxYzzZ7nQVjY5_IOO60h4A9fGHUvEZqyeQ>
 <xme:Rul7aIR5jbhEhuk4Q3uzqaVg9U1Oyh4YxEd_4aRT6Zsvjhe5py9x94mX2vJPwZ-9h
 bqY4PJJnndunfq-InE>
X-ME-Received: <xmr:Rul7aOuuFTFN2VvSptwdF0ZGMrBWQyrUOxkTXAVkPq_9sD8l0JHHrQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdeijedutdcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug
 hrpefhvfevufgjfhffkfgfgggtgfesthhqredttderjeenucfhrhhomhepjhhohhhnuchm
 uhhhlhcuoehjmhesphhusgdrphhinhhkqeenucggtffrrghtthgvrhhnpedtjeethfefve
 evgfevheehtddvteejveejieffteehheehfffgffeuleeiueejffenucevlhhushhtvghr
 ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjmhesphhusgdrphhinhhkpd
 hnsggprhgtphhtthhopeehpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeejledt
 geejseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepmhhonhhnihgvrhesih
 hrohdruhhmohhnthhrvggrlhdrtggrpdhrtghpthhtoheprggtmhesmhhutgdruggvpdhr
 tghpthhtohepvghgieegvdeiudeisehgmhgrihhlrdgtohhmpdhrtghpthhtohepvghlih
 iisehgnhhurdhorhhg
X-ME-Proxy: <xmx:Rul7aBbkP8KnjgTEqok7Pz1dHKYdwS28jTgcgD62K0aoEb5mXiCFLQ>
 <xmx:Rul7aMEi2Wspgh43pFvPAZ0NqbsLfB1pedfo59ymlUviZFxk3VRBeg>
 <xmx:Rul7aNyMXLEodMfQSOUxAav-wnAJKFgf-1WxzUI5DCXrAUQo219WTA>
 <xmx:Rul7aGkRszErlOOHy8eQGjZ9Li1Sgl9HDoom9HDOQHXnu_yQMPhN9g>
 <xmx:R-l7aFhk7D-iS4cjcu0uNA2YWkFRschnh7iskA1LwcMWIMvp8iQ1ih77>
Feedback-ID: i74194916:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat,
 19 Jul 2025 14:51:49 -0400 (EDT)
From: john muhl <jm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#79047: Add some multi-character pairs to some major modes.
In-Reply-To: <867c04fzpv.fsf@HIDDEN>
References: <87ms91gcmb.fsf@HIDDEN> <867c04fzpv.fsf@HIDDEN>
Date: Sat, 19 Jul 2025 13:51:39 -0500
Message-ID: <87o6tgko90.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 79047
Cc: 79047 <at> debbugs.gnu.org, Alan Mackenzie <acm@HIDDEN>,
 Elijah Gabe =?utf-8?Q?P=C3=A9rez?= <eg642616@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
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.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Elijah Gabe P=C3=A9rez <eg642616@HIDDEN>
>> Date: Fri, 18 Jul 2025 20:04:12 -0600
>>=20
>> Since `electric-pair-mode` now supports multi-character pairs, it would
>> be better if some major modes add some of these pairs.
>>=20
>> Before making the patch for this (and to avoid doing another regression
>> like bug#77823), here is a list of the modes and their possible pairs:
>>=20
>>  - c-like modes
>>      "/*" "*/"
>>  - lua-ts-mode
>>      "--[" "--]"
>>  - texinfo-mode (idk which others one) (based in a Stefan Monnier idea)
>>      "``" "''"
>>  - lisp-mode (common-lisp-mode)
>>     "#|" "|#"
>>=20
>> What do you think?
>
> When discussing in a bug report issues related to some specific
> packages, it is usually a good idea to CC the authors/developers of
> those packages, because we cannot be sure they track the bug-gnu-emacs
> list all the time.
>
> I've now added people who I think are relevant to your proposal.
>
> Thanks.

I=E2=80=99m not sure what the question is here but in general if someone fi=
nds
something useful to add to lua-ts-mode I=E2=80=99m fine with it; especially=
 if
it comes with tests for the change.

Just reading the above I=E2=80=99d point out that Lua multi-line comments a=
ren=E2=80=99t
symmetrical:

  --[[
  Here is a very
  long comment.
  ]]

and electric-pair-mode already works in that case.

Some people like to add a second pair of dashes before the closing
brackets but they are stylistic, not a requirement.

Elijah, if I missed the point then maybe you could show the proposed
patch to lua-ts-mode.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79047; Package emacs. Full text available.

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


Received: (at 79047) by debbugs.gnu.org; 19 Jul 2025 18:27:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 19 14:27:11 2025
Received: from localhost ([127.0.0.1]:44478 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1udCH8-0006wR-NO
	for submit <at> debbugs.gnu.org; Sat, 19 Jul 2025 14:27:11 -0400
Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]:60695)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <eg642616@HIDDEN>)
 id 1udCH5-0006w1-Ni
 for 79047 <at> debbugs.gnu.org; Sat, 19 Jul 2025 14:27:08 -0400
Received: by mail-ot1-x344.google.com with SMTP id
 46e09a7af769-73e7e4432f5so1598959a34.1
 for <79047 <at> debbugs.gnu.org>; Sat, 19 Jul 2025 11:27:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1752949622; x=1753554422; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=xXg+oo7KWv0aWVxvtkmNEkA3jOBvQ9e8j5b8Acgz7tA=;
 b=OWtfEFJ20szQsAheWMDBqSAOo0YG4BkrDa6wBj7N50ixtzMD3x+7QQfOkOgU91maFa
 NATCzS8obksKVPoO4v3Vy+PzN9WIWxhHfdjpj9YzSwCtU5mSca59LK7D7p2Hc8tympSS
 AOshdQzujnFnmWYUGm0zDbkQNlTcoMp1JSaQlkTm25JPfdpL13PHpc5Eb+V/eBO5fPxW
 cI4xxBqMWB2t+cg1eGMDvEC4Hl6mxOLCnDQJgVr++qCxcMHgse0m3IOJIMfDSN0Wbm/h
 0p37N28UweSyhpHfGjg0VdslEzeX95v9qAK2Db54WaYheQKU/6SMYZoGUnOoCQcZcYZ9
 ApoQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1752949622; x=1753554422;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=xXg+oo7KWv0aWVxvtkmNEkA3jOBvQ9e8j5b8Acgz7tA=;
 b=f/JXah5IWwFz+usF3+RiADe8C2WjbDDr10P6YyEHQu7K89Jl3KVMWeklMbUSl1MUPO
 wNrAM3kSkTq+T6Igh82Uvp+M+6OjmkZ8Ks1FZfku8+IrKVPlUDNma7q6twUpiU6uSl8g
 SCzgNLZsg5bdQfsSEIYvCWSNGP5O3RSH/eNeE5yIW0b/tM02CLYuflEDRGikWMoXpngG
 pzhubI+JLInrIn2p1CmK75TfmDOrwLzOAIMhA2+oWnksj72mWWFGTIsOv4OFxDMo9WDb
 zdMF3fw5UiVMZHgHRKuyih+QoLqZSGY5auXtkMySkVp2y/X4vPk+veWiORPNsXMJzDbQ
 oSvg==
X-Gm-Message-State: AOJu0Yysd5rjWhLR3g8ET8yVOhABkgbj4/V6lFQkBiz5Rn2yl8cpMVNu
 T8XLNuHbDA82AbNATSEPtY+wNvnHnEbcWn+xDH5DPoFbljGvn3DXdCHA9UoU2XXz
X-Gm-Gg: ASbGnctQF3EpKRqcEcir/gX64CURVUm/tcKCmT+fudGMy2g3jp4nQsnBIMjjxhp7+K3
 gIn4UP43vSjVzzo5IQVHKWxgjFQr4Vh30dYbcUXfgEdavGeN9+i4v4mmf2nq10oe6N2oKwMra4g
 VzSCxcMNv/lCkOCFR54HaJGsf5L4KET6xxbEXc2+ZwBurN8iSIpDenfJI8HhYEzE70XzeQB9pix
 goGzaREf9V++KLBTvO6hPyBex9tHuJiH3zid8M6NXfc0QTbnsqxBTAQIbI2kRZg644h2z0JqOjW
 gHb5Aye92CuG96t++uYaAMDqW/E92DBgUOGZ1BtHAlFZpxOt9b+fniYWR7+BXUUV30ai5biWXVQ
 mdaHnwGGuHB7q9qE=
X-Google-Smtp-Source: AGHT+IFbbPg6BH48d+sabVwZhbJntJDfcpqYuVf5OU6cyBUhb9H9lOAanU3kg0WYZX3RYhUiJS9KNw==
X-Received: by 2002:a05:6830:4110:b0:73b:2617:87f1 with SMTP id
 46e09a7af769-73e665e0854mr11950117a34.28.1752949621708; 
 Sat, 19 Jul 2025 11:27:01 -0700 (PDT)
Received: from fedora ([189.215.162.117]) by smtp.gmail.com with ESMTPSA id
 46e09a7af769-73e8366da85sm1501187a34.22.2025.07.19.11.27.00
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 19 Jul 2025 11:27:01 -0700 (PDT)
From: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
Subject: Re: bug#79047: Add some multi-character pairs to some major modes.
In-Reply-To: <aHvNXbZE6Jsueh1_@HIDDEN>
References: <87ms91gcmb.fsf@HIDDEN> <867c04fzpv.fsf@HIDDEN>
 <aHt6xYh6h4cbLnz_@HIDDEN> <87seisdtjs.fsf@HIDDEN>
 <aHvNXbZE6Jsueh1_@HIDDEN>
Date: Sat, 19 Jul 2025 12:26:59 -0600
Message-ID: <87ldokdojw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 79047
Cc: 79047 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>,
 John Muhl <jm@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
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: -0.7 (/)

Alan Mackenzie <acm@HIDDEN> writes:

>> > Elijah, I'm speaking here from the point of view of CC Mode.
>
>> > What exactly do you mean by "adding" these multi-character pairs?  What
>> > would the user see that she doesn't already see?
>
>> These pairs are meant to be used in for auto-close block comments, after
>> the user types "/*", the corresponding "*/" will be inserted, packages
>> such as smartparens provide this behavior to most C-like modes.
>
> OK, thanks.
>
> But who's going to want to do this when there's M-; `comment-dwim' which
> inserts both the comment opener and comment closer in a single key
> stroke?

comment-dwim sometimes doesn't insert the comments where i want, it
mostly insert the comments at the end of the line, or indent them
according to `comment-column` (which ofc can be configured, but in most
the cases, it will not work as expected).

> Surely anybody typing /* explicitly will being doing so on a
> rare occasion when she _doesn't_ want the closing */ also inserted.

The feature can be optional, enabled via an user option or command,
similar to `c-toggle-auto-newline`.

>> > Or are you talking about doing something we already do, but in a
>> > different way?
>
>> I don't know if CC Mode have something similar.
>
> M-; is common to most (?all) programming and text modes.

Right, but calling comment-dwim in some modes doesn't insert a block
comment, even if those modes supports block comments, (e.g. js-mode)

-- 
- E.G via GNU Emacs and Org.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79047; Package emacs. Full text available.

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


Received: (at 79047) by debbugs.gnu.org; 19 Jul 2025 16:52:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 19 12:52:56 2025
Received: from localhost ([127.0.0.1]:43958 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1udAnw-0006f0-8S
	for submit <at> debbugs.gnu.org; Sat, 19 Jul 2025 12:52:56 -0400
Received: from mail.muc.de ([193.149.48.3]:34163)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <acm@HIDDEN>) id 1udAnt-0006eX-8G
 for 79047 <at> debbugs.gnu.org; Sat, 19 Jul 2025 12:52:54 -0400
Received: (qmail 59894 invoked by uid 3782); 19 Jul 2025 18:52:46 +0200
Received: from muc.de (pd953aea6.dip0.t-ipconnect.de [217.83.174.166]) (using
 STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP;
 Sat, 19 Jul 2025 18:52:46 +0200
Received: (qmail 18057 invoked by uid 1000); 19 Jul 2025 16:52:45 -0000
Date: Sat, 19 Jul 2025 16:52:45 +0000
To: Elijah Gabe =?iso-8859-1?Q?P=E9rez?= <eg642616@HIDDEN>
Subject: Re: bug#79047: Add some multi-character pairs to some major modes.
Message-ID: <aHvNXbZE6Jsueh1_@HIDDEN>
References: <87ms91gcmb.fsf@HIDDEN> <867c04fzpv.fsf@HIDDEN>
 <aHt6xYh6h4cbLnz_@HIDDEN> <87seisdtjs.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <87seisdtjs.fsf@HIDDEN>
X-Submission-Agent: TMDA/1.3.x (Ph3nix)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79047
Cc: 79047 <at> debbugs.gnu.org, acm@HIDDEN, Eli Zaretskii <eliz@HIDDEN>,
 John Muhl <jm@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
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 (-)

Hello, Elijah.

On Sat, Jul 19, 2025 at 10:39:03 -0600, Elijah Gabe Pérez wrote:
> Alan Mackenzie <acm@HIDDEN> writes:

> >> > From: Elijah Gabe Pérez <eg642616@HIDDEN>
> >> > Date: Fri, 18 Jul 2025 20:04:12 -0600

> >> > Since `electric-pair-mode` now supports multi-character pairs, it would
> >> > be better if some major modes add some of these pairs.

> >> > Before making the patch for this (and to avoid doing another regression
> >> > like bug#77823), here is a list of the modes and their possible pairs:

> >> >  - c-like modes
> >> >      "/*" "*/"

> > Elijah, I'm speaking here from the point of view of CC Mode.

> > What exactly do you mean by "adding" these multi-character pairs?  What
> > would the user see that she doesn't already see?

> These pairs are meant to be used in for auto-close block comments, after
> the user types "/*", the corresponding "*/" will be inserted, packages
> such as smartparens provide this behavior to most C-like modes.

OK, thanks.

But who's going to want to do this when there's M-; `comment-dwim' which
inserts both the comment opener and comment closer in a single key
stroke?  Surely anybody typing /* explicitly will being doing so on a
rare occasion when she _doesn't_ want the closing */ also inserted.

> > Or are you talking about doing something we already do, but in a
> > different way?

> I don't know if CC Mode have something similar.

M-; is common to most (?all) programming and text modes.

> -- 
> - E.G via GNU Emacs and Org.

-- 
Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79047; Package emacs. Full text available.

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


Received: (at 79047) by debbugs.gnu.org; 19 Jul 2025 16:39:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 19 12:39:15 2025
Received: from localhost ([127.0.0.1]:43886 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1udAah-0005iH-30
	for submit <at> debbugs.gnu.org; Sat, 19 Jul 2025 12:39:15 -0400
Received: from mail-ot1-x342.google.com ([2607:f8b0:4864:20::342]:55700)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <eg642616@HIDDEN>)
 id 1udAae-0005hj-Pe
 for 79047 <at> debbugs.gnu.org; Sat, 19 Jul 2025 12:39:13 -0400
Received: by mail-ot1-x342.google.com with SMTP id
 46e09a7af769-73e810dc03bso392216a34.3
 for <79047 <at> debbugs.gnu.org>; Sat, 19 Jul 2025 09:39:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1752943147; x=1753547947; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=dyWNHLYAKR9nBnOfeU1NAhp7p3R+xw87od28A4xMSnE=;
 b=aoRLl4Yeqmdaz0H4DVMPxf4CZMpkGR0o1xCoFAnwLLGvZ8KZFCq8vhwvPXR9uix90o
 qZQSBZcvxz/FJDWFzDFB9YLoVWj41YawETZtNB508IBmu1cHldDE3aeESDA72IK7pgNt
 y67oBc61aXD075NnbNl2WYQZFODDtmWG46JSahevuYYuvwG/IeMPuhLavFov+pqqQ9cr
 L7GnbqQo20SZZng6j7Rd+PdWMgAjiAyrO7+p9dB+WklKcbCFFPLnbf+xwLplC7dxZd4L
 oJkmAZZIUaCJPxrmiJZZRk4t6tdJ71vubBslaId/WFn3/yge32Ba9yA6dtKdsZp8iUfl
 S20w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1752943147; x=1753547947;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=dyWNHLYAKR9nBnOfeU1NAhp7p3R+xw87od28A4xMSnE=;
 b=GfyBm+71XTYKKAlF/tDu1khDai9iIc3SvBgJzBeRWR5MY2IagNnpnrTTOiY8oq7jeW
 VyeqIr7Zv64USS9+hdhlraPB4He+SN4cj+YriRI+BYWjLfOf/ixeHiP8KBk3OUfitccQ
 GI7MJwtPUgr29eaRshvj4Epz3dAA6mje376Xt4x+CduzNLv4x2cD3lTA85TkXlXkiS84
 vReT1KYSwyFS+9nZYH9gvWaGgW+o1sdFXUz/4j2J4rTI2eSs3lPwXAqx2fhbZ1hdxYd4
 fjgLlW5j4ORf8cJ8MLhDKQ1FGCpjvzMnJa91er2gfL7KEmLDLrBxiJCyvbL8BcYXDc9M
 MeSA==
X-Forwarded-Encrypted: i=1;
 AJvYcCUN3jecPhR1ahpIiIzQ3s5BvIZCYIBN9BWW6NjKBd+xPZVswtcaNbCOsfKPcB57650yqizb8A==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwJI1Cc9eqVHEPABcu9ZCd6etqQbw0PVwBO2AovUhnlJ+iSd/v8
 YTlRZZW4WVLBGf3cgL2TEexGE7bcp6jug/+AJpTGguvY7+UskeYRGcPD
X-Gm-Gg: ASbGncvf8rNjL/oYI/dTxUpd8Z/Dx3lEMzkqH4FMnyyf/JDInK9xzxcRTm0JC99faU5
 7HD1zAWxZaEWIICmHOGUWHL5yawhV9VEehbb/RAkLopPoBi78R6+T2fAlfqhsdyZk0vGxZHTBz7
 S5y6XsghtGMIl6BjHU9u3tzUkxxEjV/+yAq3U/7GfWAtW5CitOYwxLBqjd5V2ArrAmTUJ4Jp7qW
 x7+h8ErOaKpud4xJty3/wkK92b8oQzp/1hZsAzt36KzUqwLlc0ZrgCnXzS+FfYYMtnVkG8usNzs
 RwbciUF0s/GaQbkbyoMZ6htXF4mxjQxN4q9epxgIz4cY1wLTqIQHvedvIVTtRcADdjsWAHW4ALh
 Voj1oYL2/QqYPmxM=
X-Google-Smtp-Source: AGHT+IE1p4omr2bbxHA/JpOZAxkYgw4z76fW6n7fclmTCffPlfovcSO6JCkxNJ2g7cKBE7F4DYutkw==
X-Received: by 2002:a05:6830:6f48:b0:73e:6313:3fdf with SMTP id
 46e09a7af769-73e662c8423mr13136634a34.16.1752943146901; 
 Sat, 19 Jul 2025 09:39:06 -0700 (PDT)
Received: from fedora ([189.215.162.117]) by smtp.gmail.com with ESMTPSA id
 006d021491bc7-615bcda4dc6sm839945eaf.27.2025.07.19.09.39.05
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 19 Jul 2025 09:39:06 -0700 (PDT)
From: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
Subject: Re: bug#79047: Add some multi-character pairs to some major modes.
In-Reply-To: <aHt6xYh6h4cbLnz_@HIDDEN>
References: <87ms91gcmb.fsf@HIDDEN> <867c04fzpv.fsf@HIDDEN>
 <aHt6xYh6h4cbLnz_@HIDDEN>
Date: Sat, 19 Jul 2025 10:39:03 -0600
Message-ID: <87seisdtjs.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 79047
Cc: 79047 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>,
 John Muhl <jm@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
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: -0.7 (/)

Alan Mackenzie <acm@HIDDEN> writes:

>> > From: Elijah Gabe P=C3=A9rez <eg642616@HIDDEN>
>> > Date: Fri, 18 Jul 2025 20:04:12 -0600
>
>> > Since `electric-pair-mode` now supports multi-character pairs, it would
>> > be better if some major modes add some of these pairs.
>
>> > Before making the patch for this (and to avoid doing another regression
>> > like bug#77823), here is a list of the modes and their possible pairs:
>
>> >  - c-like modes
>> >      "/*" "*/"
>
> Elijah, I'm speaking here from the point of view of CC Mode.
>
> What exactly do you mean by "adding" these multi-character pairs?  What
> would the user see that she doesn't already see?

These pairs are meant to be used in for auto-close block comments, after
the user types "/*", the corresponding "*/" will be inserted, packages
such as smartparens provide this behavior to most C-like modes.

> Or are you talking about doing something we already do, but in a
> different way?

I don't know if CC Mode have something similar.

--=20
- E.G via GNU Emacs and Org.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79047; Package emacs. Full text available.

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


Received: (at 79047) by debbugs.gnu.org; 19 Jul 2025 11:00:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 19 07:00:32 2025
Received: from localhost ([127.0.0.1]:40457 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ud5Iu-0002Hc-7F
	for submit <at> debbugs.gnu.org; Sat, 19 Jul 2025 07:00:32 -0400
Received: from mail.muc.de ([193.149.48.3]:61336)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <acm@HIDDEN>) id 1ud5Iq-0002HC-Qg
 for 79047 <at> debbugs.gnu.org; Sat, 19 Jul 2025 07:00:30 -0400
Received: (qmail 32634 invoked by uid 3782); 19 Jul 2025 13:00:22 +0200
Received: from muc.de (pd953aea6.dip0.t-ipconnect.de [217.83.174.166]) (using
 STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP;
 Sat, 19 Jul 2025 13:00:21 +0200
Received: (qmail 8504 invoked by uid 1000); 19 Jul 2025 11:00:21 -0000
Date: Sat, 19 Jul 2025 11:00:21 +0000
To: Eli Zaretskii <eliz@HIDDEN>,
 Elijah Gabe =?iso-8859-1?Q?P=E9rez?= <eg642616@HIDDEN>
Subject: Re: bug#79047: Add some multi-character pairs to some major modes.
Message-ID: <aHt6xYh6h4cbLnz_@HIDDEN>
References: <87ms91gcmb.fsf@HIDDEN>
 <867c04fzpv.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <867c04fzpv.fsf@HIDDEN>
X-Submission-Agent: TMDA/1.3.x (Ph3nix)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79047
Cc: 79047 <at> debbugs.gnu.org, acm@HIDDEN, John Muhl <jm@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
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 (-)

Hello, Eli.

Thanks for the heads up!

On Sat, Jul 19, 2025 at 09:42:52 +0300, Eli Zaretskii wrote:
> > From: Elijah Gabe Pérez <eg642616@HIDDEN>
> > Date: Fri, 18 Jul 2025 20:04:12 -0600

> > Since `electric-pair-mode` now supports multi-character pairs, it would
> > be better if some major modes add some of these pairs.

> > Before making the patch for this (and to avoid doing another regression
> > like bug#77823), here is a list of the modes and their possible pairs:

> >  - c-like modes
> >      "/*" "*/"

Elijah, I'm speaking here from the point of view of CC Mode.

What exactly do you mean by "adding" these multi-character pairs?  What
would the user see that she doesn't already see?

Or are you talking about doing something we already do, but in a
different way?

> >  - lua-ts-mode
> >      "--[" "--]"
> >  - texinfo-mode (idk which others one) (based in a Stefan Monnier idea)
> >      "``" "''"
> >  - lisp-mode (common-lisp-mode)
> >     "#|" "|#"

> > What do you think?

> When discussing in a bug report issues related to some specific
> packages, it is usually a good idea to CC the authors/developers of
> those packages, because we cannot be sure they track the bug-gnu-emacs
> list all the time.

> I've now added people who I think are relevant to your proposal.

> Thanks.

-- 
Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79047; Package emacs. Full text available.

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


Received: (at 79047) by debbugs.gnu.org; 19 Jul 2025 06:43:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 19 02:43:12 2025
Received: from localhost ([127.0.0.1]:38994 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ud1Hr-0007Xc-GI
	for submit <at> debbugs.gnu.org; Sat, 19 Jul 2025 02:43:11 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:45950)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ud1Hp-0007XG-JL
 for 79047 <at> debbugs.gnu.org; Sat, 19 Jul 2025 02:43:10 -0400
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 <eliz@HIDDEN>)
 id 1ud1Hh-0003YH-AV; Sat, 19 Jul 2025 02:43:01 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=pbhE0IZ8rkoVC87aoUKGhRWx2FHSd+/aGt5a+hq+wz8=; b=MeMgQABtHKUMxH5qFNsf
 RJiR/pMztFOVy3/R7Smbp/aIsEJjjN3ub67QKPxrdrNPghl35hteTFBsWJ0fapkJ/1DRO0m85JTHa
 +WYf+jTs9gResjb/H54Fp+T/9penuOvFwmORNzbEpVzvcMCidxltt5opeLFS90JERh6H5Q2LbgRVb
 v35KUwYCg8OuZXTKnSCe/gUMnQ4MfmdlosTn0n8zhKtjMBlArqUMXm0covV32Grkk/P0LzjwIeUf7
 FhPzDgDaq9FsDXdCqwWOXueRjU5SJ8XVjlXGP1hosrN+HDAQt5BjS6tKW5zAok02D5C1hdzL+RaDd
 jaWG7FOOtq+2Cw==;
Date: Sat, 19 Jul 2025 09:42:52 +0300
Message-Id: <867c04fzpv.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Elijah Gabe =?iso-8859-1?Q?P=E9rez?= <eg642616@HIDDEN>,
 Alan Mackenzie <acm@HIDDEN>, John Muhl <jm@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <87ms91gcmb.fsf@HIDDEN> (message from Elijah Gabe
 =?iso-8859-1?Q?P=E9rez?= on Fri, 18 Jul 2025 20:04:12 -0600)
Subject: Re: bug#79047: Add some multi-character pairs to some major modes.
References: <87ms91gcmb.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79047
Cc: 79047 <at> debbugs.gnu.org
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 (---)

> From: Elijah Gabe Pérez <eg642616@HIDDEN>
> Date: Fri, 18 Jul 2025 20:04:12 -0600
> 
> Since `electric-pair-mode` now supports multi-character pairs, it would
> be better if some major modes add some of these pairs.
> 
> Before making the patch for this (and to avoid doing another regression
> like bug#77823), here is a list of the modes and their possible pairs:
> 
>  - c-like modes
>      "/*" "*/"
>  - lua-ts-mode
>      "--[" "--]"
>  - texinfo-mode (idk which others one) (based in a Stefan Monnier idea)
>      "``" "''"
>  - lisp-mode (common-lisp-mode)
>     "#|" "|#"
> 
> What do you think?

When discussing in a bug report issues related to some specific
packages, it is usually a good idea to CC the authors/developers of
those packages, because we cannot be sure they track the bug-gnu-emacs
list all the time.

I've now added people who I think are relevant to your proposal.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79047; Package emacs. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 19 Jul 2025 02:04:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 18 22:04:47 2025
Received: from localhost ([127.0.0.1]:37572 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ucwwR-00020U-DJ
	for submit <at> debbugs.gnu.org; Fri, 18 Jul 2025 22:04:47 -0400
Received: from lists.gnu.org ([2001:470:142::17]:56262)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eg642616@HIDDEN>)
 id 1ucwwO-0001yy-F5
 for submit <at> debbugs.gnu.org; Fri, 18 Jul 2025 22:04:45 -0400
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 <eg642616@HIDDEN>)
 id 1ucwvy-0000a9-Ff
 for bug-gnu-emacs@HIDDEN; Fri, 18 Jul 2025 22:04:19 -0400
Received: from mail-ot1-x342.google.com ([2607:f8b0:4864:20::342])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <eg642616@HIDDEN>)
 id 1ucwvw-0000lJ-M6
 for bug-gnu-emacs@HIDDEN; Fri, 18 Jul 2025 22:04:17 -0400
Received: by mail-ot1-x342.google.com with SMTP id
 46e09a7af769-72c14138668so1090803a34.2
 for <bug-gnu-emacs@HIDDEN>; Fri, 18 Jul 2025 19:04:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1752890654; x=1753495454; darn=gnu.org;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=PPU1rPbjDN2eV3vZJ49QzGliUzIAEVx6EY/YF9ijCps=;
 b=H2IzDYYyDjRj15W6blqlEcI3eF9LxlgXZYQFZt7FZ81Vtyqpb0GVgZYyoHjTSxQsxE
 8QhedHn1JPOgPbsBOS5z1+sz3c3hbZ0Msdso6Jci5ZCxBwDGHxuok1oqHS8VNTvIPlYl
 pi8R9yAoWW7S/9sbA8gsfV4aV/KXg/IpsVzI9ETSPqLggCBHb0WglTZBLnxcmL2iBRPC
 dHnDEFpydUcevSKOGWbPKrtcu9L0uQD6iJ2SQ1MGcpV3hI44ilCUSuyc9vgyjyO8m29i
 j9ZFPUEF+t6bbKjArFtTVePwdfcyZj8gcA2/pLwgvkFH2+Y5MUtR98yCbjqGogk7CaKV
 9PJA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1752890654; x=1753495454;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=PPU1rPbjDN2eV3vZJ49QzGliUzIAEVx6EY/YF9ijCps=;
 b=MflUf3Sg3ePd2k98CYdm4G5Qo4SlSNnoLlOsyfKRFPqvOTeaG9DfhA8T/a53X3dTmg
 E6fXbtrYBVTtX6aLN1p9pIUnuy8FTslqIYREOyywE5fuB/Mkqv3wFDw3KiX4zhqxBDMA
 9qPOd3LaJGX/Ci96AFQqmkiuTZhx5UnpSbazCmUMup55dJbhPrn5URHJ1CV/JL7aMU4J
 6EGtQt/LNy4Za1pyOosQWbOcbU4wom1aQWKENEP4lhGrVGRVmnTWfQDt9vGwzstK0wu4
 RLz9bbcgA21JbH07oizzrZ1BHPdnOi6CEC4t0VfYz4dR8ID4EzCqp9a0J5C9Jo/IDluq
 8/xA==
X-Gm-Message-State: AOJu0YypgabW6KQO52q3UnyCEh1uwiD2cixoKoEpLDukBZHgsi1cwB3F
 5n/+ZWPN10uflNewJ5GByUJuizcBwfRC25u3qLDZU4627mTBfj3x1Fib11EZl3SK
X-Gm-Gg: ASbGncvv/p4bCtl8tflY4W2tNBz3s8LGm4+6s3oofQPoE0mxeWHjSTmpc72jDYBEsvJ
 4VlWhPErfXw/WFXyh84hWyHmdsvZp0eHkUWcGduOQpzmi0E6LmIAbP+UuXfZ/41R1sJgFBY6Rvq
 Zak48h6J/REvzGHFprF0LZeksRc1S/jSVHzet00P47+hhXHnIA7Z5IgFC+vopc9/Ocb1Gq0bLpJ
 QDt3gOk+rAEVyR+stZNvxiR/45q0N1NLvIz00IJ7/wKZ0NubPvtBFzWADb77Vl1kBubOg6uuJqk
 4JSYxSiCAubFZvnDTcwGZiowQw5PvV8I4aS/Ui+dNB9IeqOaMaSWhUMMT2usyl/+ZppNmijA9Cv
 8wXoZW1JhGgBI2iw=
X-Google-Smtp-Source: AGHT+IFVWUzbARSVSa/BXezPDOe2/eC5fdmRoiXIvF9yYb5mymY00eINPTMBq3jy4Y0xxetJFozVfw==
X-Received: by 2002:a05:6830:3483:b0:73e:655f:45de with SMTP id
 46e09a7af769-73e83359e0fmr4172445a34.5.1752890654396; 
 Fri, 18 Jul 2025 19:04:14 -0700 (PDT)
Received: from fedora ([189.215.162.117]) by smtp.gmail.com with ESMTPSA id
 46e09a7af769-73e83be07c4sm1089864a34.61.2025.07.18.19.04.13
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 18 Jul 2025 19:04:14 -0700 (PDT)
From: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Add some multi-character pairs to some major modes.
Date: Fri, 18 Jul 2025 20:04:12 -0600
Message-ID: <87ms91gcmb.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2607:f8b0:4864:20::342;
 envelope-from=eg642616@HIDDEN; helo=mail-ot1-x342.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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
 the administrator of that system for details.
 Content preview: Since `electric-pair-mode` now supports multi-character pairs,
 it would be better if some major modes add some of these pairs. Before making
 the patch for this (and to avoid doing another regression like bug#77823),
 here is a list of the modes and their possible pairs: 
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
 in digit (eg642616[at]gmail.com)
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (eg642616[at]gmail.com)
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
X-Debbugs-Envelope-To: submit
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: 0.2 (/)

Since `electric-pair-mode` now supports multi-character pairs, it would
be better if some major modes add some of these pairs.

Before making the patch for this (and to avoid doing another regression
like bug#77823), here is a list of the modes and their possible pairs:

 - c-like modes
     "/*" "*/"
 - lua-ts-mode
     "--[" "--]"
 - texinfo-mode (idk which others one) (based in a Stefan Monnier idea)
     "``" "''"
 - lisp-mode (common-lisp-mode)
    "#|" "|#"

What do you think?

-- 
- E.G via GNU Emacs and Org.




Acknowledgement sent to Elijah Gabe Pérez <eg642616@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#79047; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 20 Jul 2025 11:30:02 UTC

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