emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Suggestion for mouse-based cut/copy/yank


From: Drew Adams
Subject: RE: Suggestion for mouse-based cut/copy/yank
Date: Thu, 26 Jul 2007 09:04:39 -0700

> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]