unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: emacs-devel@gnu.org
Subject: Re: Suggestion for mouse-based cut/copy/yank
Date: Thu, 26 Jul 2007 19:47:36 +0200	[thread overview]
Message-ID: <85abtj83bb.fsf@lola.goethe.zz> (raw)
In-Reply-To: <BNELLINCGFJLDJIKDGACCEPLCAAA.drew.adams@oracle.com> (Drew Adams's message of "Thu\, 26 Jul 2007 09\:04\:39 -0700")

"Drew Adams" <drew.adams@oracle.com> writes:

>> I often mark material with the mouse using triple clicks (whole
>> lines).  The double click right on the last line for deletion works
>> fine and intuitively and makes it easy to deal with whole lines.
>>
>> However, when yanking with a click, material is yanked right at point
>> rather than at the start of line.
>>
>> That is a nuisance.  So I think it would be nice to store the
>> "granularity" of a mouse click/mark away and use it to move to begin
>> of word/line before yanking.  Maybe the best way would be to use a
>> yank-handler property on the string in question.
>
> I disagree. Yank by mouse should occur at the pointer position. You
> should always be able to point and shoot.

So you are for disabling double and triple clicks for marking since
the don't require exact point and shoot?

> Direct access to any (visible) position is what a pointer device is
> all about.

Why do we then have triple clicks for marking?

> It is not always the case when you insert one or more whole lines
> that you want to insert the text at bol.

Then you could easily refrain from triple-clicks in order to mark your
text.

> You need to be able to specify the exact location using the mouse,
> and that location should not be limited by either what it is that
> was selected (e.g. whole lines) or how it was selected (e.g.  triple
> clicks).

We violate that rule already for right mouse clicks: if you have
marked a region with triple clicks, you can extend the region by
clicking once anywhere with the right mouse key.  According to your
logic, the right mouse key should only mark a partial line, then.

> You might propose that a `mouse-2' triple-click would yank at bol
> (and a double-click would yank at beginning of word), but I still
> think that this kind of thing is a bad idea.

Double click action must be an extension of single-click, since the
single click gets executed anyway.

>> It is likely that it is ok to have this work with
>> keyboard-controlled yanks from mouse-collected kill material, too.
>
> If you use the keyboard, then `C-a C-y' does what you want, no? Am I
> missing something, or would this just save you a `C-a'?

Correct, which is why this is less interesting for keyboard yanks.  So
one could well restrict this functionality to mouse-yank-at-click.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  reply	other threads:[~2007-07-26 17:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-26 13:09 Suggestion for mouse-based cut/copy/yank David Kastrup
2007-07-26 16:04 ` Drew Adams
2007-07-26 17:47   ` David Kastrup [this message]
2007-07-26 16:59 ` Richard Stallman
2007-07-26 17:41   ` David Kastrup
2007-07-27  5:04     ` Richard Stallman
2007-07-27  5:32       ` David Kastrup
2007-07-27  6:37       ` Stefan Monnier

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=85abtj83bb.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@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 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).