From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: no-spam@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: delete-selection-mode Date: Thu, 29 Apr 2010 22:37:30 +0200 Message-ID: <87zl0mngfp.fsf@kfs-lx.rd.rdm> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272573471 8135 80.91.229.12 (29 Apr 2010 20:37:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Apr 2010 20:37:51 +0000 (UTC) Cc: rms@gnu.org, Stefan Monnier , James Cloos , emacs-devel@gnu.org To: Deniz Dogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 29 22:37:49 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 1O7aUU-00064b-6c for ged-emacs-devel@m.gmane.org; Thu, 29 Apr 2010 22:37:46 +0200 Original-Received: from localhost ([127.0.0.1]:37741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7aUT-0000iS-Jc for ged-emacs-devel@m.gmane.org; Thu, 29 Apr 2010 16:37:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O7aUN-0000gq-1v for emacs-devel@gnu.org; Thu, 29 Apr 2010 16:37:39 -0400 Original-Received: from [140.186.70.92] (port=58205 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7aUL-0000fH-Fj for emacs-devel@gnu.org; Thu, 29 Apr 2010 16:37:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O7aUJ-0002SB-Ct for emacs-devel@gnu.org; Thu, 29 Apr 2010 16:37:37 -0400 Original-Received: from ge0.mail1.hoer.dk.ip.fullrate.dk ([90.185.1.42]:57210 helo=smtp.fullrate.dk) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O7aUJ-0002Ro-7O; Thu, 29 Apr 2010 16:37:35 -0400 Original-Received: from kfs-lx.rd.rdm.cua.dk (3008ds4-amb.0.fullrate.dk [90.184.173.162]) by smtp.fullrate.dk (Postfix) with SMTP id 7A9509CFCA; Thu, 29 Apr 2010 22:37:31 +0200 (CEST) In-Reply-To: (Deniz Dogan's message of "Thu, 29 Apr 2010 20:27:07 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (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:124328 Archived-At: Deniz Dogan writes: > 2010/4/29 James Cloos : >>>>>>> "SM" == Stefan Monnier writes: >> >> SM> I'd like to make the DEL part default (i.e. hitting DEL when the >> SM> selection is active deletes the selection), >> >> 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. [off topic] With CUA, using a numeric prefix 1-9 for C-x and C-c will put the killed/copied text into numeric register 1-9 instead of on the kill-ring. Giving C-v a numeric prefix will yank from that register rather than the kill ring. This works for rectangles too. [on topic] With CUA, deleting text (including selected text deleted by "delete-selection-mode") automatically copies the deleted text into register 0. This means that the last stretch of text deleted (rather than killed) can be yanked back with C-0 C-v. Of course, it's gone as soon as you delete something else - but it's saved my day more than once :-) -- Kim F. Storm http://www.cua.dk