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: movement bindings in c-mode Date: Mon, 23 Jun 2008 17:37:39 +0900 Message-ID: Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1214210332 11318 80.91.229.12 (23 Jun 2008 08:38:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2008 08:38:52 +0000 (UTC) Cc: bug-cc-mode@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 23 10:39:37 2008 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 1KAhaK-0000v7-1d for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2008 10:39:36 +0200 Original-Received: from localhost ([127.0.0.1]:41140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAhZU-0004KS-UO for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2008 04:38:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KAhYd-0003hS-Uy for emacs-devel@gnu.org; Mon, 23 Jun 2008 04:37:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KAhYc-0003fU-Cf for emacs-devel@gnu.org; Mon, 23 Jun 2008 04:37:51 -0400 Original-Received: from [199.232.76.173] (port=40622 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAhYb-0003fF-S1 for emacs-devel@gnu.org; Mon, 23 Jun 2008 04:37:49 -0400 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]:41977) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KAhYU-0000up-QA; Mon, 23 Jun 2008 04:37:43 -0400 Original-Received: from relay11.aps.necel.com ([10.29.19.46]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m5N8bd3A021474; Mon, 23 Jun 2008 17:37:39 +0900 (JST) Original-Received: from relay31.aps.necel.com ([10.29.19.20] [10.29.19.20]) by relay11.aps.necel.com with ESMTP; Mon, 23 Jun 2008 17:37:39 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay31.aps.necel.com with ESMTP; Mon, 23 Jun 2008 17:37:39 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 70F783F1; Mon, 23 Jun 2008 17:37:39 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop Original-Lines: 22 X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) 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:99761 Archived-At: In c-mode, I notice that C-M-a is bound to `c-beginning-of-defun', overriding the global binding to `beginning-of-defun'. The generic `beginning-of-defun' function offers some additional functionality (in particular, it sets the mark before jumping), and seems to work just as well. We should generally try to avoid gratuitous mode-specific rebinding of generic bindings that work properly. I suppose this rebinding made sense in the past when the generic mechanism was less capable, but does it make sense any more? Any comments? [A similar argument applies to other commands like c-end-of-defun] Thanks, -Miles -- `There are more things in heaven and earth, Horatio, Than are dreamt of in your philosophy.'