all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: Selection threshold with mouse
Date: Sat, 19 Jul 2014 11:26:17 -0700	[thread overview]
Message-ID: <barmar-F4DF04.11261619072014@news.eternal-september.org> (raw)
In-Reply-To: mailman.5704.1405791121.1147.help-gnu-emacs@gnu.org

In article <mailman.5704.1405791121.1147.help-gnu-emacs@gnu.org>,
 Drew Adams <drew.adams@oracle.com> wrote:

> > When I set region using mouse from left to right, region expands at
> > very end of each character.  Is it possible to set to threshold to the
> > middle of a character instead of very end of a character?
> 
> Not too sure what you mean, but the region (selection) is the
> sequence of characters between two buffer positions (point and mark).
> 
> Emacs buffer positions are always between characters (or before the
> first character or after the last character).  They are never "on" a
> character.

To expand on this, it's essentially the same as selecting a character 
with the mouse. If you click on a character, the cursor will be put on 
that character. But when the cursor is "on" a character, the point is 
actually to the left of that character -- if you set the mark and then 
move left, the highlighted character is not in the region.

So swiping works consistently with selecting a character. When you swipe 
to the right, the rightmost character isn't included in the region until 
you reach the space between it and the next character. When you swipe to 
the left, the character is included in the region as soon as you go past 
the space between it and the next character.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


  parent reply	other threads:[~2014-07-19 18:26 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-19  8:32 Selection threshold with mouse Tak Kunihiro
2014-07-19 17:31 ` Drew Adams
2014-07-19 23:52   ` Tak Kunihiro
2014-07-20  1:22     ` Stefan Monnier
2014-07-20  4:23       ` Eli Zaretskii
     [not found]       ` <mailman.5728.1405830249.1147.help-gnu-emacs@gnu.org>
2014-07-20 14:37         ` Stefan Monnier
2014-07-20 15:04           ` Eli Zaretskii
     [not found]           ` <mailman.5763.1405868682.1147.help-gnu-emacs@gnu.org>
2014-07-20 15:37             ` Stefan Monnier
2014-07-20 16:24               ` Eli Zaretskii
     [not found]               ` <mailman.5768.1405873481.1147.help-gnu-emacs@gnu.org>
2014-07-20 16:44                 ` Stefan Monnier
2014-07-20 17:21                   ` Eli Zaretskii
2014-07-21 14:20                     ` Stefan Monnier
2014-07-21 15:31                       ` Eli Zaretskii
2014-07-23  0:27       ` Tak Kunihiro
2014-07-25  8:41         ` Eli Zaretskii
2014-07-20  1:26     ` Michael Heerdegen
     [not found] ` <mailman.5704.1405791121.1147.help-gnu-emacs@gnu.org>
2014-07-19 18:26   ` Barry Margolin [this message]
2014-07-19 18:47     ` Eli Zaretskii
     [not found]     ` <<837g395gp2.fsf@gnu.org>
2014-07-19 19:41       ` Drew Adams

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=barmar-F4DF04.11261619072014@news.eternal-september.org \
    --to=barmar@alum.mit.edu \
    --cc=help-gnu-emacs@gnu.org \
    /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.