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: Elijah Gabe Pérez <eg642616 <at> gmail.com>
Subject: bug#78396: closed (Re: bug#78396: [PATCH] Add option for not
 highlight parens inside comments or strings.)
Date: Sat, 07 Jun 2025 10:35:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#78396: [PATCH] Add option for not highlight parens inside comments or strings.

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 78396 <at> debbugs.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: 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.

[Message part 3 (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 4 (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 6 (text/plain, inline)]
-- 
                                          - E.G via GNU Emacs and Org.

This bug report was last modified 10 days ago.

Previous Next


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