From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.bugs Subject: bug#6617: linux kernel C style (fwd) Date: Sun, 24 Apr 2022 14:16:23 -0700 Message-ID: <8735i241y0.fsf@melete.silentflame.com> References: <87ee9z4g00.fsf@gnus.org> <871r5yyl8p.fsf@melete.silentflame.com> <874katvogm.fsf@gnus.org> <87r15uxn0z.fsf@melete.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27745"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.35 Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Dan Nicolaescu , Lars Ingebrigtsen , Dimitrios Apostolou , 6617@debbugs.gnu.org, acm@muc.de To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 24 23:17:13 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nijbT-0006z8-RH for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Apr 2022 23:17:13 +0200 Original-Received: from localhost ([::1]:36942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nijbS-0006J4-MF for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Apr 2022 17:17:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nijbK-0006Hd-Q9 for bug-gnu-emacs@gnu.org; Sun, 24 Apr 2022 17:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nijbK-0003jS-CX; Sun, 24 Apr 2022 17:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nijbK-0003q5-9J; Sun, 24 Apr 2022 17:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sun, 24 Apr 2022 21:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6617 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 6617-submit@debbugs.gnu.org id=B6617.165083499314683 (code B ref 6617); Sun, 24 Apr 2022 21:17:02 +0000 Original-Received: (at 6617) by debbugs.gnu.org; 24 Apr 2022 21:16:33 +0000 Original-Received: from localhost ([127.0.0.1]:60246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nijaq-0003ol-W9 for submit@debbugs.gnu.org; Sun, 24 Apr 2022 17:16:33 -0400 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:54297) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nijap-0003oY-Ct for 6617@debbugs.gnu.org; Sun, 24 Apr 2022 17:16:31 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 117263200AC9; Sun, 24 Apr 2022 17:16:24 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 24 Apr 2022 17:16:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1650834984; x=1650921384; bh=al 32g7yvEbRs6IiHFExT9nlt5QrZl3opXL5yozrxRDk=; b=PT2FFMyUi9+nqHjjh0 KZItJS9gm5zww7kOWqbE5zLystOmz8xYcSRJuRvq7NQFOMmy5mlYkUb7x+yRwI8z 97Who7JTcICcLZAP2bawMdn2Rjn61qIOm56gKGNbp6/jo8kY+1uqXShVK0E/c4St yk4xg698MCNzQsmmFWUD0y2tss1Bdcs3pNwyTqKy4Q6iJc28E+fe6ajd7rpeqzij UHEbeiaTPlyqAYjiEYTaf807Rkt8cffGEPSUj/Ob/iT8zAdkdfdT307NFe7vOAju fLD9+25IxjkciAYXZSY1/tV1NjvXaiMNWMFXAmdw8U68BSLMMZlz2IJAcSa6kIn8 w4aw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1650834984; x= 1650921384; bh=al32g7yvEbRs6IiHFExT9nlt5QrZl3opXL5yozrxRDk=; b=N sdt0AngX9KrxekQj0jZEYPF0lAdmkxxSg1c4+XC+WLHr3LOAIdfaT6peNdSNsr1k oHaJW28J9eELlkW2myR9CCUJdPQuL1dXVHwScTcYlcsjjp/eC9WrJ5HatCeLW5Ha QeHE7kjagurilcJlih4URozfmTmc4r/Y+CgldSgJha3mRsh6DRjnlo8yJNKmyXqv Xb03lfvG5RrXdqIf4oUOmtFYQGFnGSEYY4J8pbfdPk2z3N7lXE7Q8RvePqYYujVx yC+g17MybGAoSpQiypvpLhY6EK+d1tzLkQj5ToGnq8o6kNJSfPLo2KQ6Gp/5e9VS obRQVLSXBeM/wASb3SfvQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrtdelgdduiedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffgffkfggtgesthdttddttdertdenucfhrhhomhepufgvrghn ucghhhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqe enucggtffrrghtthgvrhhnpedvjeettdeiteejgeejkefggfehtdekledtfedtteekgfeu keeftdduhfetleejkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 24 Apr 2022 17:16:24 -0400 (EDT) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id 41B347E59CC; Sun, 24 Apr 2022 14:16:23 -0700 (MST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:230593 Archived-At: Hello Alan, On Sun 24 Apr 2022 at 02:50PM GMT, Alan Mackenzie wrote: > After a bit of thought, I agree with you. I think here it is better > just to add the setting of indent-tabs-mode to the "linux" style. Most > users of "linux" will have that variable set to t one way or another, > and so won't notice. > > There will be a few users using the style for non-Linux projects, who > will be used to indent-tabs-mode being nil. That is just unfortunate. > I think the balance of benefits and problems comes down on the side of > this abrupt change. Right. > I intend to apply the following patch to cc-styles.el soon. If you > want to test it you're very welcome, but please note that since it > changes a variable, the amended CC Mode should be the first CC Mode > you load in the Emacs session. (Otherwise, you'll need to do fancy > things with `makunbound' before loading the new CC Mode.) I'm not in the middle of any C projects using the Linux style atm, so I don't think I'll be able to test, but your patch looks basically equivalent to the "linux-tabs" thing I was doing, so probably doesn't need a lot of testing. Thanks for thinking this one over! -- Sean Whitton