From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: GNU coding standard highlighting rules (was: [PATCH] GnuTLS support on Woe32) Date: Thu, 24 Mar 2011 10:49:35 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87aagk7c34.fsf_-_@lifelogs.com> References: <87ipvwl1nx.wl%claudio.bley@gmail.com> <83oc5ogp89.fsf@gnu.org> <87ipvuwslp.wl%claudio.bley@gmail.com> <87hbbc0zi6.wl%claudio.bley@gmail.com> <83oc5gsdwc.fsf@gnu.org> <87ei6bunxz.wl%claudio.bley@gmail.com> <83tyf6rhgn.fsf@gnu.org> <84zkoy6tah.wl%claudio.bley@gmail.com> <87hbb5a4xq.fsf@lifelogs.com> <84ipvkx1da.wl%claudio.bley@gmail.com> <87d3ls7n3b.fsf@lifelogs.com> <87vczdwjuk.wl%claudio.bley@gmail.com> <87k4fr3koi.fsf@lifelogs.com> <87d3lhimrw.wl%claudio.bley@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300981802 728 80.91.229.12 (24 Mar 2011 15:50:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Mar 2011 15:50:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 24 16:49:57 2011 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 1Q2mnM-0000rN-Hq for ged-emacs-devel@m.gmane.org; Thu, 24 Mar 2011 16:49:56 +0100 Original-Received: from localhost ([127.0.0.1]:33400 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2mnM-0002yR-1a for ged-emacs-devel@m.gmane.org; Thu, 24 Mar 2011 11:49:56 -0400 Original-Received: from [140.186.70.92] (port=39956 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2mnG-0002xl-JO for emacs-devel@gnu.org; Thu, 24 Mar 2011 11:49:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2mnF-0003UI-Ik for emacs-devel@gnu.org; Thu, 24 Mar 2011 11:49:50 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:39331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2mnF-0003Th-8N for emacs-devel@gnu.org; Thu, 24 Mar 2011 11:49:49 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q2mnD-0000oi-QT for emacs-devel@gnu.org; Thu, 24 Mar 2011 16:49:47 +0100 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Mar 2011 16:49:47 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Mar 2011 16:49:47 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:7e0PX7xCkazLCL67YaBQeZ1uPR8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:137636 Archived-At: On Wed, 23 Mar 2011 17:55:04 -0400 Stefan Monnier wrote: >>> Again, the above needs spaces before the open paren. >> OK, is there a style guide somewhere or better yet a style checker for >> these kind of faux pas? SM> No. But we do have abut 8MB of examples ;-) SM> Wait, yes there is: the GNU coding standard (www.gnu.org/prep/standards/) I would love to see highlighting rules for C and ELisp that at least catch the comment problems: starting with lowercase and a period without two spaces, etc. I don't know the Emacs highlighting at all so I can't write these myself, plus I would probably miss many of the rules through inexperience. If those rules could be enabled with a file-local variable that would be even better. It would really help people like me and Claudio who don't work with the Emacs source code often. It would probably benefit most GNU projects, not just Emacs, to provide this. Ted