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

To reply to this bug, email your comments to 78396 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#78396; Package emacs. (Mon, 12 May 2025 18:53:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Elijah Gabe Pérez <eg642616 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 12 May 2025 18:53:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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

This bug report was last modified 3 days ago.

Previous Next


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