unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "David Kastrup" <dak@gnu.org>, <emacs-devel@gnu.org>
Subject: RE: Suggestion for mouse-based cut/copy/yank
Date: Thu, 26 Jul 2007 09:04:39 -0700	[thread overview]
Message-ID: <BNELLINCGFJLDJIKDGACCEPLCAAA.drew.adams@oracle.com> (raw)
In-Reply-To: <86lkd3pazl.fsf@lola.quinscape.zz>

> 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. Direct access to any (visible) position
is what a pointer device is all about.

It is not always the case when you insert one or more whole lines that you
want to insert the text at bol. 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).

Although I disagree that your suggestion is a good idea for either of these
cases, it might help for discussion to separate whole-line selections into
those that are selected in the manner you described (triple-click), and
those that are selected in some other way. Your suggestion makes more sense
for the former situation than for the latter (though I disagree with it in
both cases).

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.

> 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'?

  reply	other threads:[~2007-07-26 16:04 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 [this message]
2007-07-26 17:47   ` David Kastrup
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=BNELLINCGFJLDJIKDGACCEPLCAAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=dak@gnu.org \
    --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).