GNU bug report logs - #16822
24.3.50; show-paren-mode adds confusion to active region

Previous Next

Package: emacs;

Reported by: yynyygy <at> gmail.com

Date: Thu, 20 Feb 2014 07:45:02 UTC

Severity: minor

Tags: moreinfo, wontfix

Found in version 24.3.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: yynyygy <at> gmail.com
Cc: 16822 <at> debbugs.gnu.org
Subject: Re: bug#16822: 24.3.50; show-paren-mode adds confusion to active
 region
Date: Thu, 15 Jul 2021 06:59:21 +0200
[Message part 1 (text/plain, inline)]
yynyygy <at> gmail.com writes:

> When show-paren-mode is on, it adds confusion to the active
> region. Suppose I have some text which is (hello),
>
> 1. I set the region to (hello and place the cursor on the left paren.
> 2. I set the region to (hello) and place the cursor on the left paren.
>
> Note that in Case 1, the right paren is not part of the region while in
> Case 2 it is. In the two cases above, I get exactly the same color on
> the screen, then how can I distinguish between these two different
> cases?

This is still the case in Emacs 28.  Whether I put the mark after the
"o" or after the ")", and then go to the start of the line (in
*scratch*), I get this displayed:

[Message part 2 (image/png, inline)]
[Message part 3 (text/plain, inline)]
Perhaps the solution here is just to introduce a new face for parens
that are part of the region?  Any opinions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

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

Previous Next


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