From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: How make Emacs replace highlighted text with next typedcharacters? Date: Wed, 31 Dec 2008 18:55:36 +0200 Message-ID: <874p0k708n.fsf@iki.fi> 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 X-Trace: ger.gmane.org 1230742656 28558 80.91.229.12 (31 Dec 2008 16:57:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2008 16:57:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Drew Adams" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 31 17:58:43 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 1LI4Ol-0006qY-Tv for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Dec 2008 17:58:24 +0100 Original-Received: from localhost ([127.0.0.1]:40537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LI4NY-0005I1-3J for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Dec 2008 11:57:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LI4MJ-000530-Fw for help-gnu-emacs@gnu.org; Wed, 31 Dec 2008 11:55:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LI4MH-00052D-VQ for help-gnu-emacs@gnu.org; Wed, 31 Dec 2008 11:55:51 -0500 Original-Received: from [199.232.76.173] (port=58567 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LI4MH-000528-ME for help-gnu-emacs@gnu.org; Wed, 31 Dec 2008 11:55:49 -0500 Original-Received: from mta-out.inet.fi ([195.156.147.13]:47564 helo=kirsi1.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LI4MH-0004Im-1r for help-gnu-emacs@gnu.org; Wed, 31 Dec 2008 11:55:49 -0500 Original-Received: from mithlond.arda.local (80.220.180.181) by kirsi1.inet.fi (8.5.014) id 48FC5AC9032F51B2; Wed, 31 Dec 2008 18:55:37 +0200 Original-Received: from dtw by mithlond.arda.local with local (Exim 4.69) (envelope-from ) id 1LI4M4-00013f-BM; Wed, 31 Dec 2008 18:55:36 +0200 In-Reply-To: (Drew Adams's message of "Wed\, 31 Dec 2008 08\:36\:53 -0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:61001 Archived-At: Drew Adams (2008-12-31 08:36 -0800) wrote: >> I think you need cua-mode for that. There's option >> cua-delete-selection which you need to switch on. See: > 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 I don't like cua-mode's key bindings either. I just didn't know any other way of getting what the original poster wanted. But now I know, thanks. :-)