From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: org-mode, please change the name of function org-metaleft etc Date: Wed, 31 Oct 2007 15:57:28 +0100 Message-ID: <472897D8.9030600@gmail.com> References: <47279F39.2010401@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1193842696 26796 80.91.229.12 (31 Oct 2007 14:58:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2007 14:58:16 +0000 (UTC) Cc: dominik@science.uva.nl, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 31 15:58:18 2007 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.50) id 1InF11-0005QG-R0 for ged-emacs-devel@m.gmane.org; Wed, 31 Oct 2007 15:57:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InF0s-0005DH-7x for ged-emacs-devel@m.gmane.org; Wed, 31 Oct 2007 10:57:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1InF0o-0005Ca-Mq for emacs-devel@gnu.org; Wed, 31 Oct 2007 10:57:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1InF0n-0005BJ-OL for emacs-devel@gnu.org; Wed, 31 Oct 2007 10:57:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InF0n-0005Az-Ka for emacs-devel@gnu.org; Wed, 31 Oct 2007 10:57:41 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1InF0f-0006Qs-3p; Wed, 31 Oct 2007 10:57:33 -0400 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:63665 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1InF0c-0006hK-6P; Wed, 31 Oct 2007 15:57:31 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 In-Reply-To: X-Antivirus: avast! (VPS 071031-0, 2007-10-31), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1InF0c-0006hK-6P. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1InF0c-0006hK-6P 91883914ae90fea8fddecaac1a1bb407 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:82218 Archived-At: Richard Stallman wrote: > In org-mode the functions that are bound to some keys are named after > the key binding, for example: > > org-metaleft > > M-left is a basic cursor motion key which runs backward-word. > It is not good for any major mode to rebind such keys, > unless the new binding is a sort of extension or adaptation > of the standard binding. It is hard to see how backward-word > could require any adaptation to a given major mode. > > What's up here? Several things it seems to me. * First your remark that M-left runs backward-word. I have never noticed that, since backward-word is also on C-left. C-left is what is used for backward word moving on w32 in virtually all applications. So if you have experience from w32 you expect C-left to run backward-word. I do not know about other systems, but what be glad to learn. Can someone comment, please? Personally I see no reason to have backward-word on M-left too, but I guess it is there for historical reason. However it takes up a valuable binding. * Second, the (info "(elisp) Key Binding Conventions") says nothing about the arrow keys. * Then it was my proposal to change the name of functions like org-metaleft. The description of org-metaleft is (org-metaleft &optional arg) Promote heading or move table column to left. Calls `org-do-promote' or `org-table-move-column', depending on context. With no specific context, calls the Emacs default `backward-word'. See the individual commands for more information. The function name does not describe what it does. It is of course, as Bastien pointed out, quite hard to name this function after that ...