From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dimitrios Apostolou Newsgroups: gmane.emacs.bugs Subject: bug#6617: linux kernel C style (fwd) Date: Mon, 12 Jul 2010 13:08:42 +0300 (EEST) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: dough.gmane.org 1278950305 3965 80.91.229.12 (12 Jul 2010 15:58:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Jul 2010 15:58:25 +0000 (UTC) To: 6617@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 12 17:58:23 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1OYLOh-0001ow-4S for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Jul 2010 17:58:23 +0200 Original-Received: from localhost ([127.0.0.1]:53668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYLOg-00022Q-4V for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Jul 2010 11:58:22 -0400 Original-Received: from [140.186.70.92] (port=44555 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYGkB-00014M-8Q for bug-gnu-emacs@gnu.org; Mon, 12 Jul 2010 07:00:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OYGk9-00014f-B4 for bug-gnu-emacs@gnu.org; Mon, 12 Jul 2010 07:00:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37361) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYGk9-00014a-7n for bug-gnu-emacs@gnu.org; Mon, 12 Jul 2010 07:00:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OYGMk-0006Yg-2y; Mon, 12 Jul 2010 06:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dimitrios Apostolou Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Jul 2010 10:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6617 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.127893090925195 (code B ref -1); Mon, 12 Jul 2010 10:36:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jul 2010 10:35:09 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYGLs-0006YK-Sj for submit@debbugs.gnu.org; Mon, 12 Jul 2010 06:35:09 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYFuk-0006Kx-22 for submit@debbugs.gnu.org; Mon, 12 Jul 2010 06:07:06 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:54553) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OYFum-000326-Hm for submit@debbugs.gnu.org; Mon, 12 Jul 2010 06:07:08 -0400 Original-Received: from [140.186.70.92] (port=46025 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYFuh-0000e1-AV for bug-gnu-emacs@gnu.org; Mon, 12 Jul 2010 06:07:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OYFuf-0001h0-Tz for bug-gnu-emacs@gnu.org; Mon, 12 Jul 2010 06:07:03 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:60083) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OYFuf-0001gS-HA for bug-gnu-emacs@gnu.org; Mon, 12 Jul 2010 06:07:01 -0400 Original-Received: (qmail invoked by alias); 12 Jul 2010 10:06:58 -0000 Original-Received: from unknown (EHLO thanos-desktop.ics.forth.gr) [139.91.92.11] by mail.gmx.net (mp041) with SMTP; 12 Jul 2010 12:06:58 +0200 X-Authenticated: #4463548 X-Provags-ID: V01U2FsdGVkX18xbTAziYsxtTPzL7fkkEo+r9QAgTaUlGkyVNR6vN lYlYCZYDo2nAQE X-X-Sender: jimis@localhost.localdomain User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Mon, 12 Jul 2010 06:35:06 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 12 Jul 2010 06:36:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 12 Jul 2010 11:58:16 -0400 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38448 Archived-At: Hi, I sent the following to help-gnu-emacs and got no reply, maybe this list is more relevant. ---------- Forwarded message ---------- Date: Thu, 8 Jul 2010 21:56:09 +0300 (EEST) From: Dimitrios Apostolou To: help-gnu-emacs@gnu.org Subject: linux kernel C style Hello list, is the "linux" c-style supposed to be compliant to the linux kernel style guidelines? I just realised that all this time emacs was indenting my code slightly wrong, specifically the use of spaces is forbidden, even when continuing the argument list of a function. I use the following lines in my .emacs, taken from Documentation/CodingStyle of the kernel tree. Perhaps they should be added to "linux" style? (defun c-lineup-arglist-tabs-only (ignored) "Line up argument lists by tabs, not spaces" (let* ((anchor (c-langelem-pos c-syntactic-element)) (column (c-langelem-2nd-pos c-syntactic-element)) (offset (- (1+ column) anchor)) (steps (floor offset c-basic-offset))) (* (max steps 1) c-basic-offset))) ;; Add kernel style (c-add-style "linux-tabs-only" '("linux" (c-offsets-alist (arglist-cont-nonempty c-lineup-gcc-asm-reg c-lineup-arglist-tabs-only)))) (custom-set-variables '(c-default-style "linux-tabs-only") ) Thanks, Dimitris