From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Copy/paste issue. Date: Sun, 6 May 2012 23:27:29 -0700 Message-ID: <680C3CDEB62A467DB9EBF6ABA612D038@us.oracle.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1336372075 7672 80.91.229.3 (7 May 2012 06:27:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 May 2012 06:27:55 +0000 (UTC) To: "'David Combs'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 07 08:27:54 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 1SRHQI-0000MA-6s for geh-help-gnu-emacs@m.gmane.org; Mon, 07 May 2012 08:27:54 +0200 Original-Received: from localhost ([::1]:54977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRHQH-0007nh-Hs for geh-help-gnu-emacs@m.gmane.org; Mon, 07 May 2012 02:27:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRHQD-0007na-3Q for help-gnu-emacs@gnu.org; Mon, 07 May 2012 02:27:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRHQB-0004w2-Bp for help-gnu-emacs@gnu.org; Mon, 07 May 2012 02:27:48 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:36559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRHQB-0004vh-5Z for help-gnu-emacs@gnu.org; Mon, 07 May 2012 02:27:47 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q476RgIV026796 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 7 May 2012 06:27:43 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q476Rgjo009946 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 7 May 2012 06:27:42 GMT Original-Received: from abhmt114.oracle.com (abhmt114.oracle.com [141.146.116.66]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q476RgEq026463; Mon, 7 May 2012 01:27:42 -0500 Original-Received: from dradamslap1 (/10.159.219.193) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 06 May 2012 23:27:41 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac0sCLKEvtEr4fTpRGSNoLbEX/c64wAEIzNA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 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:84747 Archived-At: > 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. ;-)]