all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: yynyygy@gmail.com
Cc: 16822@debbugs.gnu.org
Subject: bug#16822: 24.3.50; show-paren-mode adds confusion to active region
Date: Thu, 15 Jul 2021 06:59:21 +0200	[thread overview]
Message-ID: <87tukwqija.fsf@gnus.org> (raw)
In-Reply-To: <874n3utenw.fsf@gentoo.i-did-not-set--mail-host-address--so-tickle-me>

[-- Attachment #1: Type: text/plain, Size: 684 bytes --]

yynyygy@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:


[-- Attachment #2: Type: image/png, Size: 1601 bytes --]

[-- Attachment #3: Type: text/plain, Size: 218 bytes --]


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

  parent reply	other threads:[~2021-07-15  4:59 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
2014-02-20 21:43   ` Stefan Monnier
2021-07-15  4:54 ` Lars Ingebrigtsen
2021-07-15  4:59 ` Lars Ingebrigtsen [this message]
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=87tukwqija.fsf@gnus.org \
    --to=larsi@gnus.org \
    --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.