unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 6316@debbugs.gnu.org
Subject: bug#6316: 24.0.50; unexpected region highlighting
Date: Tue, 27 May 2014 22:51:48 +0200	[thread overview]
Message-ID: <87wqd7osgr.fsf@rosalinde.fritz.box> (raw)
In-Reply-To: <jwv4n0bqncj.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Tue, 27 May 2014 11:00:12 -0400")

On Tue, 27 May 2014 11:00:12 -0400 Stefan Monnier <monnier@iro.umontreal.ca> wrote:

>> Could someone who knows how region highlighting works take a look at
>> this issue, which continues to annoy me?
>
> I installed a patch which fixes this particular recipe,

I confirm that the unexpected highlighting with the recipe of my OP is
gone, thanks much.

>                                                         but this is
> a very messy part of transient-mark-mode, so I wouldn't be surprised if
> there are other problematic cases.

Indeed, the recipe David De La Harpe Golden gave still produces
unexpected highlighting (though, despite being phenomenologically the
same sort of problem, maybe it's technically different, since it happens
even with transient-mark-mode enabled).

Your patch also does not account for the case of using a motion command
to unhighlight the region when transient-mark-mode is disabled, instead
of using M-w to do that as in my OP.  The reason is apparently that
moving point does not deactivate the mark, unlike M-w or C-g, so your
fix does not come into play.  It's clear that motion commands should not
deactivate the mark when transient-mark-mode is enabled, since they
change the bounds of the active region.  But when transient-mark-mode is
disabled but then temporarily enabled by double clicking or shift
selection, thus highlighting the region, and moving point unhighlights
the region, doesn't it seem reasonable to deactivate the mark in this
case?

Steve Berman





  reply	other threads:[~2014-05-27 20:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-31  7:30 bug#6316: 24.0.50; unexpected region highlighting with disabled transient-mark-mode Stephen Berman
2010-05-31 12:29 ` Stephen Berman
2012-05-29 20:42   ` bug#6316: 24.0.50; unexpected region highlighting Stephen Berman
2014-05-27 13:57     ` Stephen Berman
2014-05-27 15:00       ` Stefan Monnier
2014-05-27 20:51         ` Stephen Berman [this message]
2014-06-23 16:31           ` Stefan Monnier
2014-06-24 15:59             ` Stephen Berman
2014-07-01 18:14               ` Stefan Monnier
2014-07-02  9:27                 ` Stephen Berman
2014-07-02 13:29                   ` Drew Adams
2014-07-02 13:50                     ` Stephen Berman
2019-09-26 10:17 ` Stefan Kangas

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=87wqd7osgr.fsf@rosalinde.fritz.box \
    --to=stephen.berman@gmx.net \
    --cc=6316@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).