From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: Copy/paste issue. Date: Tue, 29 May 2012 09:53:07 -0400 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1338299718 3498 80.91.229.3 (29 May 2012 13:55:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 May 2012 13:55:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 29 15:55:17 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SZMtH-0000Oi-Qt for geh-help-gnu-emacs@m.gmane.org; Tue, 29 May 2012 15:55:16 +0200 Original-Received: from localhost ([::1]:34387 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZMtH-00029H-KH for geh-help-gnu-emacs@m.gmane.org; Tue, 29 May 2012 09:55:15 -0400 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 59 Injection-Info: barmar.motzarella.org; posting-host="ePtxJaRXJPFeIWBMlKfZaA"; logging-data="9046"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+R9H2qZ4JxFh8mfEeHsnjb" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:FcyvaxkhVYhX57YDT5qhSTFlGHc= Original-Xref: usenet.stanford.edu gnu.emacs.help:192630 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85037 Archived-At: In article , dkcombs@panix.com (David Combs) wrote: > In article , > Yaoyuan 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 ***