From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christoph Newsgroups: gmane.emacs.devel Subject: Re: C-d deleting region considered harmful Date: Sat, 18 Sep 2010 14:23:40 -0600 Message-ID: <4C951FCC.1@gmail.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; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1284841459 23490 80.91.229.12 (18 Sep 2010 20:24:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Sep 2010 20:24:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 18 22:24:18 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 1Ox3xB-00033y-MY for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2010 22:24:16 +0200 Original-Received: from localhost ([127.0.0.1]:60646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ox3x9-0003DL-CQ for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2010 16:24:07 -0400 Original-Received: from [140.186.70.92] (port=44010 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ox3x1-0003D1-DZ for emacs-devel@gnu.org; Sat, 18 Sep 2010 16:24:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ox3wu-0000ir-ML for emacs-devel@gnu.org; Sat, 18 Sep 2010 16:23:53 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:41039) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ox3wu-0000in-H2 for emacs-devel@gnu.org; Sat, 18 Sep 2010 16:23:52 -0400 Original-Received: by iwn33 with SMTP id 33so4883962iwn.0 for ; Sat, 18 Sep 2010 13:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=pWR1KSOv0sZO+u33o3Xs4/v8mU1WLT9W9Q5WKRebg8s=; b=rXGsD5EUDYCB5y1F49H5wZhfE1DZEgIH5RMrO5KoHGKFJ/SVzgOGIfFlhhwzegAQ74 3RwjV+Der2vsWNsBipUBwpUzUE0FGkgcqF+kRh7xBDcr9jeU128esSCh8YPP3ajq2HI6 TaK4IUHGobx2YtRW3MW+DHHKBRHIr8Qe5Shjs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=nGepFnYLxMgpJuKgXY/YpIDluy+/iKnocOaiGbgrpzo7/UR/QBtA8Md3SXwiZKKQmF m53IiWISQjVaCID2cBD32NW0DvH0XavpBUwqjPaHTfTrLtdEEwzrPef4gXAfcP+Ge1EE yEm0VNEEe0iDjYVDJNMBadvA5c1OBS/06tJFI= Original-Received: by 10.231.36.202 with SMTP id u10mr7522394ibd.64.1284841431880; Sat, 18 Sep 2010 13:23:51 -0700 (PDT) Original-Received: from [192.168.1.4] (97-122-97-123.hlrn.qwest.net [97.122.97.123]) by mx.google.com with ESMTPS id e12sm5301075iba.18.2010.09.18.13.23.48 (version=SSLv3 cipher=RC4-MD5); Sat, 18 Sep 2010 13:23:51 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100825 Thunderbird/3.1.3 In-Reply-To: <87fwx699pc.fsf@catnip.gol.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:130455 Archived-At: On 9/18/2010 12:40 PM, Miles Bader wrote: > I press C-d to delete the character after the cursor -- the command is > called "delete-forward-char" after all. In 23.2 you use C-d to delete the character UNDER the cursor. Unless you have a different definition of cursor than I do. delete-forward-char does not make much sense to me either. From the documentation the only difference to delete-char is said behavior or killing the active region. Technically, it's a delete backwards. I do like the behavior though. > It's not uncommon to have the region be activated somewhat > inadvertently; I usually activate the region to perform some kind of a command on it. If I decide that I need to delete the character under the cursor instead of deleting to entire region, is it too strange to hit C-g first, to deactivate the region and then press C-d to delete the character? That seems like a pretty normal workflow to me. Unless you are expecting implicit behavior like deactivating the region before deleting the character. As an Emacs user of 2 years (not 200) I wouldn't necessarily expect implicit (or traditional) behavior like that. ;) > Moreover, adding this new functionality to DEL/backspace has > undeniable utility, because many many mac/windows users have that > particular usage hardwired into their fingers. This is _not_ true of > C-d. Absolutely true. C-d, to me, is a convenient alias for the key, which on most keyboards is inefficiently out of reach. Every single Windows application that I just pulled up from Explorer, to Firefox, Chrome, Open Office or whichever, behaves the same: pressing on selected text deletes the entire selection. That, of course, does not mean Emacs must do the same, but just serves as an example that there is many many users who would expect this to work like they are used to. Christoph