all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>, help-gnu-emacs@gnu.org
Subject: RE: Mark set by ?mark-*? not deactivated by point motion
Date: Mon, 17 Sep 2018 12:39:55 -0700 (PDT)	[thread overview]
Message-ID: <7746d008-7a6f-456f-926e-28a0ec13cd7e@default> (raw)
In-Reply-To: <jwvy3c00wxx.fsf-monnier+gmane.emacs.help@gnu.org>

> I'm more wondering about why you'd mark a word with M-@ only to
> immediately afterwards deactivate the region.
> 
> I never use M-@ but I use C-M-SPC all the time, and very often I do
> C-M-SPC (maybe repeated a few times) followed by some cursor motion
> (including C-x C-x sometimes) to "fine tune" the boundaries of the
> active region.
> 
> So I rely on this behavior very frequently and I find it rather
> convenient not to have to re-activate the mark explicitly when I'm done
> tuning its boundaries.
> 
> On the contrary, I find the deactivate-mark behavior of
> "navigation after shifted-navigation" to be a mis-feature: it forces me
> to be careful to keep the shift key pressed until I'm really done
> setting up the region and it prevents me from using navigation commands
> which I can't use in a shifted form (or which don't (yet) support
> shift-select-mode).  I don't mind very much, tho: I just use C-SPC
> instead, but I think in terms of UI, navigation should never deactivate
> the mark.
> 
> I have the impression that this behavior was simply copied from other
> applications, and those don't have something equivalent to Emacs's C-g,
> so their users are used to making a dummy un-shifted cursor movement
> when they just want to deactivate the selection.  But in Emacs we have
> C-g for that.

I can see both points of view. The behavior objected to here by
Yuri is fairly standard in Emacs, but Emacs does not follow it
everywhere.

A case where the behavior follows instead what Yuri expects for
this is selecting text with the mouse (in any way: double-click,
mouse-1 then mouse-3 etc.). In this case immediately subsequent
cursor motion does deactivate the region.

Whether Emacs should be consistent in this regard, I don't know.
But apparently Emacs presumes that if you use `M-@' to select a
word (put the active region around it) then you intend cursor
motion to extend it. And apparently it presumes that if you
double-click  mouse-1 to select it then you do not intend cursor
motion to extend it.

A guess is that the latter choice is because it presumes that you
will use only the mouse to extend it. That's not bad reasoning,
I think, but it does make for some inconsistency, so maybe it
can confuse some users.

I tend to like the existing behavior, FWIW. But especially in
cases where there is no mouse equivalent I think it's helpful
to be able to use keyboard and mouse together indifferently.
In that context, see bug #32747.



  reply	other threads:[~2018-09-17 19:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-17 17:25 Mark set by ‘mark-*’ not deactivated by point motion Yuri Khan
2018-09-17 18:25 ` Eli Zaretskii
2018-09-17 19:18 ` Stefan Monnier
2018-09-17 19:39   ` Drew Adams [this message]
2018-09-18  6:24   ` Yuri Khan
     [not found]   ` <mailman.897.1537213211.1284.help-gnu-emacs@gnu.org>
2018-09-18  8:45     ` Mark set by ?mark-*? " Loris Bennett
2018-09-18 11:45       ` Eli Zaretskii
     [not found]       ` <mailman.918.1537271124.1284.help-gnu-emacs@gnu.org>
2018-09-19  6:33         ` Loris Bennett

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=7746d008-7a6f-456f-926e-28a0ec13cd7e@default \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@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.