Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756783AbYB0J1h (ORCPT ); Wed, 27 Feb 2008 04:27:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754495AbYB0J11 (ORCPT ); Wed, 27 Feb 2008 04:27:27 -0500 Received: from ns.firmix.at ([62.141.48.66]:1561 "EHLO ns.firmix.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753101AbYB0J1Z (ORCPT ); Wed, 27 Feb 2008 04:27:25 -0500 Subject: Re: [PATCH] CodingStyle: multiple updates From: Bernd Petrovitsch To: Guennadi Liakhovetski Cc: Jan Engelhardt , Randy Dunlap , ricknu-0@student.ltu.se, khc@pm.waw.pl, bhalevy.lists@gmail.com, Linux Kernel Mailing List In-Reply-To: References: <1204062430.47c488def40a4@portal.student.luth.se> <20080226135444.f83a0536.randy.dunlap@oracle.com> Content-Type: text/plain Organization: Firmix Software GmbH Date: Wed, 27 Feb 2008 10:27:00 +0100 Message-Id: <1204104420.17396.2.camel@tara.firmix.at> Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 (2.8.3-2.fc6) Content-Transfer-Encoding: 7bit X-Firmix-Scanned-By: MIMEDefang 2.56 on ns.firmix.at X-Firmix-Spam-Score: -2.33 () AWL,BAYES_00,FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Firmix-Spam-Status: No, hits=-2.33 required=5 X-Spam-Score: -2.33 () AWL,BAYES_00,FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Firmix-Envelope-From: X-Firmix-Envelope-To: Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1642 Lines: 34 On Mit, 2008-02-27 at 00:40 +0100, Guennadi Liakhovetski wrote: > On Tue, 26 Feb 2008, Jan Engelhardt wrote: > > > +Continuation lines are always shorter than the initial one and are > > +(1) indented as much as the initial line, plus (2) alignment spaces. > > +Spaces are used so as to not cause odd aligning for users wishing to > > +display tabs at sizes other than 8. In the example below, the > > +continuation line of the printk call therefore has two tabs of logical > > +indent, followed by a number of spaces to align it up. > > Now, I think, I am not the only one using emacs. Until now the "linux" > C-style fitted perfectly with the CodingStyle, now it no longer will. > Namely, emacs puts as many tabs to indent the continuation line as fit > (i.e., at tab width = 8 spaces it's just (extra indent / 8) tabs plus > (extra indent % 8) spaces. Is there a way to make emacs behave compatibly > to this proposal? If not, I would not like to have to re-indent every such Unless I'm misunderstanding something completely: Add "indent-tabs-mode: nil" in a "Local Variables:" section. But since Linux-style has that since ages (if not ever), that should be set for am emacs'ens linux-mode anyway. Bernd -- Firmix Software GmbH http://www.firmix.at/ mobil: +43 664 4416156 fax: +43 1 7890849-55 Embedded Linux Development and Services -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/