GNU bug report logs - #78396
[PATCH] Add option for not highlight parens inside comments or strings.

Previous Next

Package: emacs;

Reported by: Elijah Gabe Pérez <eg642616 <at> gmail.com>

Date: Mon, 12 May 2025 18:53:01 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#78396: closed ([PATCH] Add option for not highlight parens
 inside comments or strings.)
Date: Sat, 07 Jun 2025 10:35:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 07 Jun 2025 13:34:02 +0300
with message-id <86zfejhmcl.fsf <at> gnu.org>
and subject line Re: bug#78396: [PATCH] Add option for not highlight parens inside comments or strings.
has caused the debbugs.gnu.org bug report #78396,
regarding [PATCH] Add option for not highlight parens inside comments or strings.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
78396: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78396
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Add option for not highlight parens inside comments or
 strings.
Date: Mon, 12 May 2025 12:51:57 -0600
[Message part 3 (text/plain, inline)]
Tags: patch

Sometimes show-paren will highlight the parens that are inside a
comment/string which looks annoying and somewhat confusing.

e.g.
show-paren will highlight this paren:

  ;; :^)| <- cursor
       ^ paren highlighted as mismatch

or:
  v
  (
 ;; )| <- cursor
    ^ both parens highlighted

I've made an option for disable/control this behavior, by default its
disabled but I wonder if this should be activated instead.

[0001-Add-option-for-not-highlight-parens-inside-comments-.patch (text/patch, attachment)]
[Message part 5 (text/plain, inline)]
-- 
                                          - E.G via GNU Emacs and Org.
[Message part 6 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Elijah Gabe Pérez <eg642616 <at> gmail.com>
Cc: monnier <at> iro.umontreal.ca, 78396-done <at> debbugs.gnu.org
Subject: Re: bug#78396: [PATCH] Add option for not highlight parens inside
 comments or strings.
Date: Sat, 07 Jun 2025 13:34:02 +0300
> From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
> Cc: monnier <at> iro.umontreal.ca,  78396 <at> debbugs.gnu.org
> Date: Thu, 05 Jun 2025 23:06:51 -0600
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> Anyways I'm sending here an updated version of the patch with Eli's
> >> suggestions
> >
> > Thanks, a few minor comments below:
> >
> 
> [...]
> 
> Thanks, sending fixed version:

Thanks, installed on the master branch (with a couple of followup
minor changes), and closing the bug.


This bug report was last modified 11 days ago.

Previous Next


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