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, 24 Jun 2014 17:59:16 +0200 [thread overview]
Message-ID: <87mwd28fjf.fsf@rosalinde.fritz.box> (raw)
In-Reply-To: <jwvoaxjfv40.fsf-monnier+bug#6316@gnu.org> (Stefan Monnier's message of "Mon, 23 Jun 2014 12:31:37 -0400")
On Mon, 23 Jun 2014 12:31:37 -0400 Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> 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).
>
> I installed another patch into trunk which should fix this problem
> more thoroughly. Can you confirm it fixes all the cases you know?
It does not fix the above case, though again, since that happens whether
or not transient-mark-mode is enabled, it's probably a different issue.
It does fix the case I mentioned in my previous reply of using a motion
command to unhighlight the region when transient-mark-mode is disabled,
so it improves upon the previous patch in that respect.
However, with your new patch, temporarily enabling transient-mark-mode,
when it is disabled, seems to break transient-mark-mode; here's a
recipe:
0. emacs -Q
1. Sanity check: `M-< C-SPC M-f' results in ";; This" being highlighted.
Typing `M-x transient-mark-mode' shows the message "Transient-Mark
mode disabled" and results in ";; This" becoming unhighlighted.
Now typing `C-SPC M-f M-x transient-mark-mode' shows the message
"Transient-Mark mode enabled" and results in " buffer" being
highlighted.
2. Type `M-x transient-mark-mode' to disable transient-mark-mode again.
3. Type `C-SPC C-SPC' to temporarily enable transient-mark-mode, showing
the message "Mark activated".
4. Type `M-x transient-mark-mode' to enable transient-mark-mode again
(verified by the message "Transient-Mark mode enabled").
5. Type `C-SPC M-f'
=> The region is not highlighted. Moreover, `C-h v transient-mark-mode'
says:
transient-mark-mode is a variable defined in `C source code'.
Its value is nil
Original value was t
Local in buffer *scratch*; global value is t
The same thing happens if in step 3 you use shift-selection instead of
`C-SPC C-SPC'.
Steve Berman
next prev parent reply other threads:[~2014-06-24 15:59 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
2014-06-23 16:31 ` Stefan Monnier
2014-06-24 15:59 ` Stephen Berman [this message]
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=87mwd28fjf.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).