GNU bug report logs - #54634
29.0.50; Off-by-one highlighting

Previous Next

Package: emacs;

Reported by: Rudolf Adamkovič <salutis <at> me.com>

Date: Wed, 30 Mar 2022 06:37:01 UTC

Severity: minor

Found in version 29.0.50

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Rudolf Adamkovič <salutis <at> me.com>
Cc: 54634 <at> debbugs.gnu.org
Subject: bug#54634: 29.0.50; Off-by-one highlighting
Date: Wed, 30 Mar 2022 14:36:35 +0300
> Date: Wed, 30 Mar 2022 08:36:38 +0200
> From:  Rudolf Adamkovič via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> 1. emacs -Q
> 2. type M-: (setq show-paren-style ‘expression) RET
> 3. type M-: (set show-paren-priority 0) RET
> 4. type (foo)
> 5. type C-a to move to the beginning of the line
> 6. type C-M-@ to highlight the expression "(foo)"
> 
> EXPECTED:
> 
> The entire expression "(foo)" has active region highlight drawn over it
> (matching what gets copied on M-w).
> 
> ACTUAL:
> 
> "(" has the parenthesis highlight and "foo)" has the active region
> highlight (NOT matching what gets copied on M-w).

I don't think this is a bug, it's actually a (subtle) feature.  Your
expectations are inaccurate, and the actual behavior is not only
intended, but IMNSHO also makes more sense than what you expected,
because under your expected behavior would not show the matching
parentheses.




This bug report was last modified 3 years and 97 days ago.

Previous Next


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