unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: Copy/paste issue.
Date: Tue, 29 May 2012 09:53:07 -0400	[thread overview]
Message-ID: <barmar-46A480.09530729052012@news.eternal-september.org> (raw)
In-Reply-To: jq19dp$1pj$4@reader1.panix.com

In article <jq19dp$1pj$4@reader1.panix.com>,
 dkcombs@panix.com (David Combs) wrote:

> In article <mailman.731.1336377127.855.help-gnu-emacs@gnu.org>,
> Yaoyuan  <yaoyuan0329@gmail.com> wrote:
> >-=-=-=-=-=-
> >
> >oh.. I like it, the delete-selection-mode. it has the same behaviour with 
> >other editors. thanks David
> >
> >Thanks
> >YaoYuan
> >
> 
> Well, emacs is what I use 99% of the time, other than vi (or :Q --> ex).
> 
> So I'm not really too sure just what everyone's talking about, even in
> followups to my question.

The basic idea is that if you mark a region before performing an 
operation that would normally insert or delete something, you're 
indicating that you really wanted to replace the region with it.

It's pretty much the way almost every traditional GUI text editor or 
word processor works.  If all you've ever used have been Unix 
character-oriented text editors, then you won't recognize the behavior.

You asked for the "uses" of this mode, and it's mainly just to act like 
other applications that most people have become used to.

Here's an example.  If you want to cut or copy region-1, then use it to 
replace region-2, you'd normally have to do one of the following:

Mark region-2
C-w
Mark region-1
C-w or M-w
Go back to where region-2 used to be
C-y

or

Mark region-1
C-w or M-w
Mark region-2
C-w
C-y M-y or C-2 C-y

With delete-selection-mode, you can simplify it:

Mark region-1
C-w or M-w
Mark region-2
C-y

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


  reply	other threads:[~2012-05-29 13:53 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-31  8:46 Copy/paste issue "Jérôme M. Berger"
2012-03-31  8:51 ` "Jérôme M. Berger"
2012-03-31  9:49   ` Peter Dyballa
2012-03-31 10:24     ` "Jérôme M. Berger"
2012-03-31 10:34   ` Eli Zaretskii
2012-03-31 13:47 ` XeCycle
2012-03-31 15:14   ` Drew Adams
2012-04-01  7:59   ` "Jérôme M. Berger"
     [not found] ` <mailman.189.1333201685.20052.help-gnu-emacs@gnu.org>
2012-05-07  4:19   ` David Combs
2012-05-07  6:27     ` Drew Adams
2012-05-07  7:52     ` Yaoyuan
     [not found]     ` <mailman.730.1336372071.855.help-gnu-emacs@gnu.org>
2012-05-29  1:36       ` David Combs
     [not found]     ` <mailman.731.1336377127.855.help-gnu-emacs@gnu.org>
2012-05-29  1:40       ` David Combs
2012-05-29 13:53         ` Barry Margolin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-03-31 15:44 Silvio Levy
2012-03-31 16:03 ` Drew Adams
2012-03-31 16:15 ` Peter Dyballa
     [not found] ` <mailman.205.1333209850.20052.help-gnu-emacs@gnu.org>
2012-05-07  4:46   ` David Combs
2012-05-07  6:09     ` Vladimir Murzin

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=barmar-46A480.09530729052012@news.eternal-september.org \
    --to=barmar@alum.mit.edu \
    --cc=help-gnu-emacs@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.
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).