From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: delete-selection-mode Date: Thu, 29 Apr 2010 12:47:32 -0700 Message-ID: <91B0376A7BC343CAA41CBAA5BB0A5C8D@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1272570590 29684 80.91.229.12 (29 Apr 2010 19:49:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Apr 2010 19:49:50 +0000 (UTC) Cc: 'Stefan Monnier' , rms@gnu.org, emacs-devel@gnu.org To: "'Deniz Dogan'" , "'James Cloos'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 29 21:49:48 2010 connect(): No such file or directory 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 1O7Zk3-0007bc-BV for ged-emacs-devel@m.gmane.org; Thu, 29 Apr 2010 21:49:47 +0200 Original-Received: from localhost ([127.0.0.1]:38218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7Zk2-0001Rb-T2 for ged-emacs-devel@m.gmane.org; Thu, 29 Apr 2010 15:49:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O7Zjy-0001RF-50 for emacs-devel@gnu.org; Thu, 29 Apr 2010 15:49:42 -0400 Original-Received: from [140.186.70.92] (port=51784 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7Zjw-0001Qq-JZ for emacs-devel@gnu.org; Thu, 29 Apr 2010 15:49:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O7Zjv-0003F5-MX for emacs-devel@gnu.org; Thu, 29 Apr 2010 15:49:40 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:41441) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O7Zjr-0003Do-DB; Thu, 29 Apr 2010 15:49:35 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o3TJnQ7t012910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 29 Apr 2010 19:49:28 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o3TEYWtW012938; Thu, 29 Apr 2010 19:49:23 GMT Original-Received: from abhmt018.oracle.com by acsmt355.oracle.com with ESMTP id 222125391272570452; Thu, 29 Apr 2010 12:47:32 -0700 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 29 Apr 2010 12:47:31 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: Acrnyaecw9ZdQ8r5Tyu4oCbXuVYYRwACkC4g X-Auth-Type: Internal IP X-Source-IP: acsinet15.oracle.com [141.146.126.227] X-CT-RefId: str=0001.0A090205.4BD9E2C9.01D9:SCFMA922111,ss=1,fgs=0 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:124327 Archived-At: > > With the ability to yank it back, or without? > > > > The ability to delete text w/o any way to recover it would > > be a disaster. > > > > And I haven't been able to deduce the answer to that > > question from the various posts on the various threads > > which I've read. > > > > If the deleted text /can/ be yanked back, then your > > proposal is welcome. > > > > (Even though I used the work yank, recovery via (undo) also > > would do.) > > I don't see how it would be a disaster not to be able to yank it back. > You would still be able to kill-region with C-w. > > I'm in favor of making DEL delete the selection (*not* killing it). > Not being able to "undo" back text after deleting it would be a > terrible idea, but I'd doubt anyone is suggesting we do that. `delete-selection-mode' has always acted the way you request: delete, not kill for DEL. ;; 'supersede ;; Delete the active region and ignore the current command, ;; i.e. the command will just delete the region. (put 'delete-backward-char 'delete-selection 'supersede) (put 'backward-delete-char-untabify 'delete-selection 'supersede) (put 'delete-char 'delete-selection 'supersede) And any user can easily change the behavior. Just put this in your .emacs if you want DEL to kill the region: (put 'delete-backward-char 'delete-selection 'kill) (put 'backward-delete-char-untabify 'delete-selection 'kill)