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?Jos=C3=A9_?= =?UTF-8?Q?J=C3=BAnior?= Newsgroups: gmane.emacs.bugs Subject: bug#55202: 27.1 Feature request: Show parens when point is anywhere inside of them Date: Sun, 1 May 2022 10:19:15 -0300 Message-ID: References: <87bkwhtzhm.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000750b7105ddf32187" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38099"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55202@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 01 15:20:57 2022 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 1nl9VR-0009l6-RH for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 May 2022 15:20:57 +0200 Original-Received: from localhost ([::1]:50374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nl9VQ-0005Ko-Ci for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 May 2022 09:20:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nl9UZ-0005H6-0i for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 09:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37758) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nl9UY-0005h8-O4 for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 09:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nl9UY-0007yI-Hu for bug-gnu-emacs@gnu.org; Sun, 01 May 2022 09:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jos=C3=A9_?= =?UTF-8?Q?J=C3=BAnior?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 May 2022 13:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55202 X-GNU-PR-Package: emacs Original-Received: via spool by 55202-submit@debbugs.gnu.org id=B55202.165141120030630 (code B ref 55202); Sun, 01 May 2022 13:20:02 +0000 Original-Received: (at 55202) by debbugs.gnu.org; 1 May 2022 13:20:00 +0000 Original-Received: from localhost ([127.0.0.1]:59888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nl9UV-0007xy-Rt for submit@debbugs.gnu.org; Sun, 01 May 2022 09:20:00 -0400 Original-Received: from mail-wm1-f42.google.com ([209.85.128.42]:39910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nl9UT-0007xY-NQ for 55202@debbugs.gnu.org; Sun, 01 May 2022 09:19:58 -0400 Original-Received: by mail-wm1-f42.google.com with SMTP id ay11-20020a05600c1e0b00b0038eb92fa965so9489697wmb.4 for <55202@debbugs.gnu.org>; Sun, 01 May 2022 06:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q54cRkb3M9labs5oc8SOxm4lGuxK8N/TpZsrTTvNJs4=; b=grW55dKuLG787KjyR5qf/0IHZQJsgmQi7zjwuiGNBkRAqJWn/WLy+YNcCttxJYBjLm 6bCuVH2K08sXE2GJfE4ujxs8u2UCEBLUGhajpiMngTKhPza+CXpNeotzbdeiQ91CHtXd Wez0laendS/aydfnuPNEZFhr5fxdVkJFLWAqGJpQYtwfEyoxX2buC9k3+P/BQzzmsvdF r65ndZWL6gt00V/rSF9DOLi2jI18UOD74Kd+Q3zD6DCnYUOq1vSj1UiviuR5FS/1tyAK 2L++cmYO7O+lG8klSUXm5ixtz9dIJH5yjRh9WgTUIP/tpV0NWdjxlGz84LJf28kI8F0T fJ/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q54cRkb3M9labs5oc8SOxm4lGuxK8N/TpZsrTTvNJs4=; b=30TOUlVLODiN/PrQjBWuvAIpuuHK48EaBkO3Imgb68ZX2ZAOIx0CStLYremXmNXeG7 kqem5WWp9kQauKLEdXliHNCU6zvtRLrdEVuHA1FK+q5S+fMafXSJbHKrKCUEZsiXaA8J LSSKukBUTgfOVc27MS2SLwQkD1SK0PzrKgZ6Ks/sTmMjf99cDq10YTw04VysWkxSMd5p XaZC/GF3c5yPa8vCttCxaFlN7nzF1MgfPpzC4INprTdkvWScP9OPevK49hGW9s+jLFFe EyF0cjQO74Be5aYKn5BrSebLQG2JUuYwIRE8ITUJvhEaxYdL2PRjynEsiLhK2pjZ96fN Bd0A== X-Gm-Message-State: AOAM533ah8pj5j4IYyAaaX7bnB+oM/CEvUuNnawRQyEe0hEW4WfgwjOt ea/HFjFNCpmXEYbfl4stl9pIx7PPuku+EPMHQdM= X-Google-Smtp-Source: ABdhPJwTNHB85V/RPyC5fO712mtQYkN7eRH63ZNKcanuctztlbtFeR1wnzhQwCl30oiZp+qGRsC/OO4oVFdbkh9jaYc= X-Received: by 2002:a1c:721a:0:b0:394:7a5:a1f3 with SMTP id n26-20020a1c721a000000b0039407a5a1f3mr11273643wmc.104.1651411191662; Sun, 01 May 2022 06:19:51 -0700 (PDT) In-Reply-To: <87bkwhtzhm.fsf@gnus.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" Xref: news.gmane.io gmane.emacs.bugs:231141 Archived-At: --000000000000750b7105ddf32187 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > That variable doc says "If non-nil, show parens when point is just > inside one.", so when point is right by the paren. Thanks for the explanation. Anyway, I think it would make sense to add what you're requesting -- but > I'm not sure it would be efficient, or that it's well-defined. For > instance, if you're in text-mode and the text is > > {(foo|bar}) > > what should it be blinking? > I didn't know how to answer, so I looked how other editors do. I found two behaviors: 1. Unless the point is right by the parens, it should highlight the curly braces. So in this case it would highlight the curly braces. With the point in these places would highlight the parens, otherwise would highlight the curly braces: {|(|foobar}|)| 2. Ignore and don't highlight anything. On Sun, May 1, 2022 at 5:43 AM Lars Ingebrigtsen wrote: > Jos=C3=A9 J=C3=BAnior writes: > > > How can I set emacs to show parens when the point is anywhere inside of > them? > > > > For example, with the point in the character "i": (po|int) > > > > Coming from other editors, I expect that the parens are highlighted, > > but in emacs they're only highlighted the point is on paren or > > immediately after it, even with the variable "Show Paren When Point > > Inside Paren" set to "on". > > That variable doc says "If non-nil, show parens when point is just > inside one.", so when point is right by the paren. > > Anyway, I think it would make sense to add what you're requesting -- but > I'm not sure it would be efficient, or that it's well-defined. For > instance, if you're in text-mode and the text is > > {(foo|bar}) > > what should it be blinking? > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no > --000000000000750b7105ddf32187 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That variable doc says "If non-nil, show parens when point is just
inside one.", so when point is right by the paren.

Thanks for the explanation.

=
Anyway, I thin= k it would make sense to add what you're requesting -- but
I'm not sure it would be efficient, or that it's well-defined.=C2= =A0 For
instance, if you're in text-mode and the text is

=C2=A0 {(foo|bar})

what should it be blinking?

I didn't know how to answer, so I looked how = other editors do. I found two behaviors:

1. U= nless the point is right by the parens, it should highlight the curly brace= s. So in this case it would highlight the curly braces.

With the point in these places would highlight the parens, otherwise = would highlight the curly braces:

{|(|foobar}|)|

2. Ignore and don&#= 39;t highlight anything.

On Sun, May 1, 2022 at 5:43 AM Lars Ingeb= rigtsen <larsi@gnus.= org> wrote:
Jos=C3=A9 J=C3=BAnior <jjnilton@gmail.com> writes:

> How can I set emacs to show parens when the point is anywhere inside o= f them?
>
> For example, with the point in the character "i": (po|int) >
> Coming from other editors, I expect that the parens are highlighted, > but in emacs they're only highlighted the point is on paren or
> immediately after it, even with the variable "Show Paren When Poi= nt
> Inside Paren" set to "on".

That variable doc says "If non-nil, show parens when point is just
inside one.", so when point is right by the paren.

Anyway, I think it would make sense to add what you're requesting -- bu= t
I'm not sure it would be efficient, or that it's well-defined.=C2= =A0 For
instance, if you're in text-mode and the text is

=C2=A0 {(foo|bar})

what should it be blinking?

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no
--000000000000750b7105ddf32187--