From: Manoj Srivastava <srivasta@ieee.org>
To: emacs-devel@gnu.org
Subject: Re: yanking a killed or saved region with a single mouse gesture
Date: Tue, 15 Apr 2008 01:01:29 -0500 [thread overview]
Message-ID: <87skxnu05i.fsf@anzu.internal.golden-gryphon.com> (raw)
In-Reply-To: 87hce3k6oj.fsf@elegiac.orebokech.com
On Tue, 15 Apr 2008 07:50:36 +0200, Romain Francoise <romain@orebokech.com> said:
> Manoj Srivastava <srivasta@ieee.org> writes:
>> So mouse 2 saves, mouse 3 yanks the saved region, and holding down
>> the shift key kills instead of saves.
> In which way is this better than the default mouse commands (Mouse-1
> at start of region, single or double Mouse-3 click at the end)?
Mouse 1 sets the point, or sets a region. The gestures do not
reset point at all; they take a section of text at some other point,
and optionally yank it in. Consider the following (I am showing the
lines next to each other, but they can be in different buffers)
--8<---------------cut here---------------start------------->8---
blah blah blah 1 XXXX XXXX XXXX XXXX 2 yadda yadda yadda
some more text p and more yet.
--8<---------------cut here---------------end--------------->8---
The point is at p; and I hold down shit, and drag mouse 3 from
the character 1 over to the character 2. What I get is:
--8<---------------cut here---------------start------------->8---
blah blah blah 12 yadda yadda yadda
some more text p XXXX XXXX XXXX XXXX and more yet.
--8<---------------cut here---------------end--------------->8---
Without the shift, it copies: so I get:
--8<---------------cut here---------------start------------->8---
blah blah blah 1 XXXX XXXX XXXX XXXX 2 yadda yadda yadda
some more text p XXXX XXXX XXXX XXXX and more yet.
--8<---------------cut here---------------end--------------->8---
The point does not change, no mark was set. This single gesture
with the mouse is faster than setting point with mouse 1, setting end
point with mouse 3, optionally deleting with mouse 3, finding the spot
where I need to yank the text to, and hitting mouse 2.
I often use this with different windows in the same frame.
manoj
--
new, adj.: Different color from previous model.
Manoj Srivastava <srivasta@acm.org> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
next prev parent reply other threads:[~2008-04-15 6:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-15 5:21 yanking a killed or saved region with a single mouse gesture Manoj Srivastava
2008-04-15 5:50 ` Romain Francoise
2008-04-15 6:01 ` Manoj Srivastava [this message]
2008-04-15 15:25 ` 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=87skxnu05i.fsf@anzu.internal.golden-gryphon.com \
--to=srivasta@ieee.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).