From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: Re: Copy/paste issue. Date: Tue, 29 May 2012 01:36:59 +0000 (UTC) Organization: Public Access Networks Corp. Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1338255618 18557 80.91.229.3 (29 May 2012 01:40:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 May 2012 01:40: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 03:40: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 1SZBPx-00061M-LP for geh-help-gnu-emacs@m.gmane.org; Tue, 29 May 2012 03:40:13 +0200 Original-Received: from localhost ([::1]:57787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZBPx-0000FT-DO for geh-help-gnu-emacs@m.gmane.org; Mon, 28 May 2012 21:40:13 -0400 Original-Path: usenet.stanford.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 46 Original-NNTP-Posting-Host: panix2.panix.com Original-X-Trace: reader1.panix.com 1338255419 1843 166.84.1.2 (29 May 2012 01:36:59 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Tue, 29 May 2012 01:36:59 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Original-Xref: usenet.stanford.edu gnu.emacs.help:192626 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:85033 Archived-At: In article , Drew Adams wrote: >> Now, I'd never hear do delete-selection-mode, so I did a C-h f on it: >> >> Question: what are some of the uses of this mode? Maybe name >> 2 or 3 uses, so I can understand if it's something I should get >> familiar with. > >`delete-selection-mode' is quite similar to what you are (probably) used to >outside of Emacs: after you select text, what you type replaces the selection. >And Backspace deletes it. (To cancel selection, hit `C-g'.) > >>>From (emacs) `Using Region': > >,---- >| By default, text insertion occurs normally even if the mark is >| active--for example, typing `a' inserts the character `a', then >| deactivates the mark. If you enable Delete Selection mode, a minor >| mode, then inserting text while the mark is active causes the text in >| the region to be deleted first. To toggle Delete Selection mode on or >| off, type `M-x delete-selection-mode'. >`---- > >[IMHO, `delete-selection-mode' should be the default behavior for Emacs. It >took a couple decades to get even `transient-mark-mode' accepted as the default. >(`transient-mark-mode' is a like a neutered `delete-selection-mode'.) Perhaps >in a couple more decades `delete-selection-mode' will be accepted. ;-)] > > Thanks! I'll have to try it -- see if I like it. One question to make it totally clear. Without that mode turned on, how would I accomplish the same thing? That is, end up with the same result. Then maybe, why it's better done WITH the mode. (Hey, you've already done enough. Don't answer this unless you want to. Thanks!) David