From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: C-d deleting region considered harmful Date: Sun, 19 Sep 2010 04:09:20 +0900 Message-ID: <874odm98db.fsf@catnip.gol.com> References: <87eicrx1ls.fsf@catnip.gol.com> <4C94E03D.8090002@gmail.com> <87fwx699pc.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1284836981 6938 80.91.229.12 (18 Sep 2010 19:09:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Sep 2010 19:09:41 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 18 21:09:39 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 1Ox2n5-000617-2P for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2010 21:09:39 +0200 Original-Received: from localhost ([127.0.0.1]:41971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ox2n4-0004tI-Fl for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2010 15:09:38 -0400 Original-Received: from [140.186.70.92] (port=35411 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ox2mx-0004tD-S3 for emacs-devel@gnu.org; Sat, 18 Sep 2010 15:09:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ox2mw-00073m-L9 for emacs-devel@gnu.org; Sat, 18 Sep 2010 15:09:31 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:55930) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ox2mw-00073Z-El for emacs-devel@gnu.org; Sat, 18 Sep 2010 15:09:30 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ox2mv-0005yQ-NN for emacs-devel@gnu.org; Sat, 18 Sep 2010 21:09:29 +0200 Original-Received: from 218.231.154.125.eo.eaccess.ne.jp ([218.231.154.125]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Sep 2010 21:09:29 +0200 Original-Received: from miles by 218.231.154.125.eo.eaccess.ne.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Sep 2010 21:09:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 218.231.154.125.eo.eaccess.ne.jp System-Type: x86_64-unknown-linux-gnu Cancel-Lock: sha1:9d4B9t6PsRST5jJB0ggblRsnfHY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:130439 Archived-At: Lars Magne Ingebrigtsen writes: > The "DEL deleting the region" behaviour was something that was driving > me insane. I usually jump around a lot with `C-x C-x' in buffers, and > then I may want to delete something, and I use `DEL' to delete stuff > with. > > So I just switched off `transient-mark-mode', which is something I > suspect most Emacs old-timers will be more comfortable with. I really like transient-mark-mode actually, and generally find the "active region functionality" of most commands both useful and intuitive. C-d is not one of those commands, of course; really I think it's simply too low-level a command, and the extra functionality not really a natural extension of the basic functionality. Hmm, it might be cute if the "active region" stuff was actually handled by the key-binding lookup mechanism! (global-set-key [active-region ?\C-d] (lambda (n beg end) (interactive "p\nr") (if (yes-or-no-p "Do you really, really, want to delete the region?!?!?") (kill-region beg end) (delete-forward-char n)))) -Miles -- Is it true that nothing can be known? If so how do we know this? -Woody Allen