GNU bug report logs - #6617
linux kernel C style (fwd)

Previous Next

Packages: cc-mode, emacs;

Reported by: Dimitrios Apostolou <jimis <at> gmx.net>

Date: Mon, 12 Jul 2010 10:36:01 UTC

Severity: normal

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Sean Whitton <spwhitton <at> spwhitton.name>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Dan Nicolaescu <dann <at> gnu.org>, Dimitrios Apostolou <jimis <at> gmx.net>, 6617 <at> debbugs.gnu.org, Alan Mackenzie <acm <at> muc.de>
Subject: bug#6617: linux kernel C style (fwd)
Date: Mon, 18 Apr 2022 11:30:04 -0700
Hello,

On Thu 09 Sep 2021 at 04:00PM +02, Lars Ingebrigtsen wrote:

> Sean Whitton <spwhitton <at> spwhitton.name> writes:
>
>> The Linux kernel style is tabs only.  I think that Emacs DTRT if
>> indent-tabs-mode is t.  So, currently I have this fix in my init file:
>>
>>     (c-add-style "linux-tabs" '("linux" (indent-tabs-mode . t)))
>>     (setq c-default-style "linux-tabs")
>
> Right.  Alan, would it make sense to add this style to c-mode?

Were you thinking it would be too much of a compat break to just edit
the linux style to include setting indent-tabs-mode?  I think that would
be a lot more useful.  Anyone who actually wants the Linux kernel's
style would want (what I've called) linux-tabs.

-- 
Sean Whitton




This bug report was last modified 3 years and 103 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.