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: How make Emacs replace highlighted text with next typedcharacters? Date: Wed, 31 Dec 2008 08:36:53 -0800 Message-ID: <000e01c96b65$fd7f5820$0200a8c0@us.oracle.com> References: <84e4aae8-769f-4200-9d06-f8c8be58276f@z28g2000prd.googlegroups.com> <87k59gg53p.fsf@iki.fi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230741455 24509 80.91.229.12 (31 Dec 2008 16:37:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2008 16:37:35 +0000 (UTC) To: "'Teemu Likonen'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 31 17:38:41 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LI45a-0000EW-GW for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Dec 2008 17:38:34 +0100 Original-Received: from localhost ([127.0.0.1]:34206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LI44M-0004Hn-F5 for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Dec 2008 11:37:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LI440-0004HV-O6 for help-gnu-emacs@gnu.org; Wed, 31 Dec 2008 11:36:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LI440-0004HA-2F for help-gnu-emacs@gnu.org; Wed, 31 Dec 2008 11:36:56 -0500 Original-Received: from [199.232.76.173] (port=36889 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LI43z-0004H7-SM for help-gnu-emacs@gnu.org; Wed, 31 Dec 2008 11:36:55 -0500 Original-Received: from rcsinet13.oracle.com ([148.87.113.125]:32986 helo=rgminet13.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LI43z-0001u6-CU for help-gnu-emacs@gnu.org; Wed, 31 Dec 2008 11:36:55 -0500 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mBVGbTd0007978 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 31 Dec 2008 16:37:30 GMT Original-Received: from acsmt702.oracle.com (acsmt702.oracle.com [141.146.40.80]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mBVGV1wq023094; Wed, 31 Dec 2008 16:31:02 GMT Original-Received: from dradamslap1 (/141.144.90.249) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 31 Dec 2008 16:36:48 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87k59gg53p.fsf@iki.fi> Thread-Index: AclrI8Yy4o6HfnBtRl6Vr2fsUP0MkQAQdmgg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt702.oracle.com [141.146.40.80] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090209.495B9FA2.0308:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60999 Archived-At: > > How make Emacs replace highlighted text with next typed characters? > > > > When you hightlight text in Emacs and then type new text, > the new text > > does NOT replace the highlighted text. > > I think you need cua-mode for that. There's option > cua-delete-selection > which you need to switch on. See: > > C-h f cua-mode RET > M-x customize-group RET cua RET I disagree - or, rather, it depends what you want. `cua-selection-mode' is `cua-mode' without a lot of extra key bindings. It will do what you request. I recommend `delete-selection-mode', in library `delsel.el'. It does just what you want. http://www.emacswiki.org/emacs/DeleteSelectionMode