unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: emacs-devel@gnu.org
Subject: Suggestion for mouse-based cut/copy/yank
Date: Thu, 26 Jul 2007 15:09:50 +0200	[thread overview]
Message-ID: <86lkd3pazl.fsf@lola.quinscape.zz> (raw)


Hi,

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.  It is likely that it
is ok to have this work with keyboard-controlled yanks from
mouse-collected kill material, too.

For what it is worth, vi has "p" and "P" commands for inserting
material after and before the cursor (which perversely is not between,
but _on_ characters and lines conceptually), and those also heed the
"line-basedness" of the commands putting the stuff in the kill buffer.

It is actually quite convenient.

-- 
David Kastrup

             reply	other threads:[~2007-07-26 13:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-26 13:09 David Kastrup [this message]
2007-07-26 16:04 ` Suggestion for mouse-based cut/copy/yank Drew Adams
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=86lkd3pazl.fsf@lola.quinscape.zz \
    --to=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).