unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Rudolf Adamkovič" <salutis@me.com>
Cc: 54634@debbugs.gnu.org
Subject: bug#54634: 29.0.50; Off-by-one highlighting
Date: Wed, 30 Mar 2022 14:36:35 +0300	[thread overview]
Message-ID: <83fsmz8yf0.fsf@gnu.org> (raw)
In-Reply-To: <m2o81ogd55.fsf@me.com> (bug-gnu-emacs@gnu.org)

> 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@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.





  reply	other threads:[~2022-03-30 11:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-30  6:36 bug#54634: 29.0.50; Off-by-one highlighting Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-03-30 11:36 ` Eli Zaretskii [this message]
2022-04-03 15:08   ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-04-03 15:43     ` Eli Zaretskii
2022-04-06  5:35       ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-04-06 11:01         ` Eli Zaretskii
2022-04-09 20:41           ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83fsmz8yf0.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=54634@debbugs.gnu.org \
    --cc=salutis@me.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).