From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: cc-mode enhancement for Objective-C Date: Sat, 13 Oct 2007 21:13:26 +0000 Message-ID: <20071013211325.GA1908@muc.de> References: <55f7df060710122343j6cc17fc8qa73ef5964fc4068a@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192309742 26216 80.91.229.12 (13 Oct 2007 21:09:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2007 21:09:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: Adrian Robert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 13 23:08:52 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 1IgoE7-0000SZ-8j for ged-emacs-devel@m.gmane.org; Sat, 13 Oct 2007 23:08:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgoE0-00061z-Md for ged-emacs-devel@m.gmane.org; Sat, 13 Oct 2007 17:08:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IgoDx-00061j-SD for emacs-devel@gnu.org; Sat, 13 Oct 2007 17:08:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IgoDw-000613-At for emacs-devel@gnu.org; Sat, 13 Oct 2007 17:08:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgoDw-000610-7U for emacs-devel@gnu.org; Sat, 13 Oct 2007 17:08:40 -0400 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IgoDv-0006Ry-Mi for emacs-devel@gnu.org; Sat, 13 Oct 2007 17:08:40 -0400 Original-Received: (qmail 25567 invoked by uid 3782); 13 Oct 2007 21:08:33 -0000 Original-Received: from acm.muc.de (p57B1D971.dip.t-dialin.net [87.177.217.113]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sat, 13 Oct 2007 23:08:31 +0200 Original-Received: (qmail 2468 invoked by uid 1000); 13 Oct 2007 21:13:26 -0000 Content-Disposition: inline In-Reply-To: <55f7df060710122343j6cc17fc8qa73ef5964fc4068a@mail.gmail.com> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 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:80822 Archived-At: Hallo, Adrian: On Sat, Oct 13, 2007 at 09:43:30AM +0300, Adrian Robert wrote: > Hi, > This patch, against emacs-unicode-2/lisp/progmodes, enhances cc-mode's > handling of Objective-C: > - auto-indent method calls by colons (like XCode) > - syntax highlighting for method calls > - add more constants for font-lock highlighting > I'm unsure if that means it needs to go into cc-mode's own tree? I > sent a couple of messages a while ago to cc-mode's own list but they > may have been drowned in spam. Apologies. They were indeed so drowned. This was back in 2005. It would be nice to get them into the CC Mode distribution. > (If there are any Obj-C devs using emacs on this list, perhaps they > could try the patch -- it's also built-in to the Emacs.app > distribution at http://emacs-app.sf.net/ ) Could I ask you two little favours? (i) Please prefix the names of all the variables with "c-"; e.g., change objc-method-arg-min-delta-to-bracket to c-objc-method-arg-min-delta-to-bracket. (ii) Could you resubmit your patch as a context diff. Do this by calling, e.g. "diff -c cc-vars.old.el cc-vars.el". This makes it much ^^ easier, both to read and to apply to file versions which aren't quite the same as the ones you started with. > Changed files: [ .... ] Thanks! -- Alan Mackenzie (Ittersbach, Germany).