all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: yynyygy@gmail.com, 16822@debbugs.gnu.org
Subject: bug#16822: 24.3.50; show-paren-mode adds confusion to active region
Date: Thu, 20 Feb 2014 09:44:29 -0800 (PST)	[thread overview]
Message-ID: <0da65346-23b7-4b99-967d-1a25c5877175@default> (raw)
In-Reply-To: <874n3utenw.fsf@gentoo.i-did-not-set--mail-host-address--so-tickle-me>

> 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?
> 
> Compared to the more rational behavior of Emacs 24.3, I think the paren
> which is part of the region should have the same color with the region
> while the paren which is not part of the region can has matching paren
> color. In this way, the user can tell which part is selected and which
> part is not.

Well put.

Yes, it used to be the case that the region highlighting was used
to show clearly what text is in the region (each char), as specified
by the doc:

http://www.gnu.org/software/emacs/manual/html_node/elisp/Displaying-Faces.html

That policy was changed recently, introducing the behavior change
that you report.  Now, other highlighting can take precedence
visually over region highlighting for various chars of the region.

Some people like the change.  Some don't.  Regression or improvement -
take your pick.  (No, you cannot take your pick in practice, e.g.,
via customization.  But you can at least make up your own mind.)

If you are interested, see bugs #15899, #16192, #15618, and this very
long emacs-devel thread:
http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01272.html

15899: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15899
16192: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16192
15618: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15618





  reply	other threads:[~2014-02-20 17:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-20  7:40 bug#16822: 24.3.50; show-paren-mode adds confusion to active region yynyygy
2014-02-20 17:44 ` Drew Adams [this message]
2014-02-20 21:43   ` Stefan Monnier
2021-07-15  4:54 ` Lars Ingebrigtsen
2021-07-15  4:59 ` Lars Ingebrigtsen
2021-07-15  6:53   ` Eli Zaretskii
2021-07-15  8:45     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0da65346-23b7-4b99-967d-1a25c5877175@default \
    --to=drew.adams@oracle.com \
    --cc=16822@debbugs.gnu.org \
    --cc=yynyygy@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.