From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: AW: delete-selection-mode Date: Wed, 17 Mar 2010 21:54:58 -0400 Message-ID: References: <87ocitw2dl.fsf@stupidchicken.com> <201003130001.o2D01FFQ003489@godzilla.ics.uci.edu> <87vdd1yqe4.fsf@stupidchicken.com> <87eijjzrkd.fsf_-_@mail.jurta.org> <874okf8dep.fsf@lola.goethe.zz> <7697A57B1AD9104F993CDF6A5B69430C0A70E50872@CORPMAIL08.corp.capgemini.com> <4BA0CDF9.40707@online.de> <76682E4761EA432EB929E5E199B0F92A@us.oracle.com> <87wrxb57e1.fsf@lola.goethe.zz> <87sk7z571u.fsf@lola.goethe.zz> <81674B067AF84670A2EDDB0178E0C0CC@us.oracle.com> <877hpa68ys.fsf@lola.goethe.zz> <874oke4kor.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1268877318 14752 80.91.229.12 (18 Mar 2010 01:55:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Mar 2010 01:55:18 +0000 (UTC) Cc: David Kastrup , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 18 02:55:12 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ns4x5-0008Qw-7W for ged-emacs-devel@m.gmane.org; Thu, 18 Mar 2010 02:55:11 +0100 Original-Received: from localhost ([127.0.0.1]:49054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ns4x4-0004ip-9U for ged-emacs-devel@m.gmane.org; Wed, 17 Mar 2010 21:55:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ns4wz-0004hm-Li for emacs-devel@gnu.org; Wed, 17 Mar 2010 21:55:05 -0400 Original-Received: from [140.186.70.92] (port=43568 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ns4wy-0004h9-F5 for emacs-devel@gnu.org; Wed, 17 Mar 2010 21:55:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ns4wx-0000w4-Bt for emacs-devel@gnu.org; Wed, 17 Mar 2010 21:55:04 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:25056 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ns4wv-0000vS-6Z; Wed, 17 Mar 2010 21:55:01 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAJYkoUtFpZMX/2dsb2JhbACbJXS4YYR2BIsV X-IronPort-AV: E=Sophos;i="4.51,262,1267419600"; d="scan'208";a="58480947" Original-Received: from 69-165-147-23.dsl.teksavvy.com (HELO pastel.home) ([69.165.147.23]) by ironport2-out.pppoe.ca with ESMTP; 17 Mar 2010 21:54:59 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id F068A80C4; Wed, 17 Mar 2010 21:54:58 -0400 (EDT) In-Reply-To: <874oke4kor.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 17 Mar 2010 19:01:24 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:122130 Archived-At: > I use delete-selection mode, but mainly for one reason: I want DEL to > delete the region when it's active. How 'bout this: Generalize the feature we already have under mouse-region-delete-keys to apply to the region regardless whether it was activated by the mouse or not. This will be a good occasion to get rid of the butt-ugly and bug-inducing code that implements the feature now. And it will provide the DEL part of delete-selection-mode. I'd be happy to also provide the self-insert behavior of delete-selection-mode, but at least this intermediate step sounds very good to me. The implementation should keep an eye towards generalizing it to self-insertion keys (i.e. maybe it should just use the code from delete-selection-mode). Stefan