all messages for Emacs-related lists mirrored at yhetil.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: Wed, 02 Jul 2014 11:27:54 +0200	[thread overview]
Message-ID: <8738ek2jqd.fsf@rosalinde.fritz.box> (raw)
In-Reply-To: <jwvsimleys2.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Tue, 01 Jul 2014 14:14:52 -0400")

On Tue, 01 Jul 2014 14:14:52 -0400 Stefan Monnier <monnier@iro.umontreal.ca> wrote:

>> However, with your new patch, temporarily enabling transient-mark-mode,
>> when it is disabled, seems to break transient-mark-mode; here's a recipe:
>
> Yes, the buffer "remembers" that it was nil.
> I installed an additional patch which tries to avoid this problem,

I confirm that it fixes that problem.  In addition, it fixes (presumably
in combination with your previous patch) another case of unexpected
region highlighting that differs somewhat from the recipe of my OP:

0. emacs -Q
1. M-x transient-mark-mode (disabling it).
2. C-SPC to set the mark in *scratch*, then move point, creating a
   nonempty region, which, as expected, is not highlighted.
3. Open another buffer, e.g. with `C-h v transient-mark-mode RET' and
   select and highlight a region in it, e.g. with `C-SPC C-SPC M-f'.
4. Switch back to *scratch*.
=> The region in *scratch* is now highlighted.

I observe this in emacs-24, which contains your fix for my OP, but not
in trunk, which also contains your last two patches for this bug report.

> tho it probably comes with other undesirable cases.

I haven't found any new ones yet, and given the above problem, I would
be in favor of backporting your last two patches to emacs-24 (sorry I
didn't notice the above problem earlier).

There is another apparently longer-standing behavior (at least it
happens with -Q in 24.3, as well as emacs-24 and trunk), which I noticed
while testing you latest patch: if you mark and highlight a region in a
buffer and then call e.g. `C-h f' or `C-h v', when the *Help* buffer
opens this unhighlights the region in the other buffer, although the
latter remains the current buffer.  Is this supposed to happen, and if
so, why?  (If it's not supposed to happen, I'll open a new bug.)

Steve Berman





  reply	other threads:[~2014-07-02  9:27 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
2014-07-01 18:14               ` Stefan Monnier
2014-07-02  9:27                 ` Stephen Berman [this message]
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

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

  git send-email \
    --in-reply-to=8738ek2jqd.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 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.