Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp362981pxf; Wed, 24 Mar 2021 06:56:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzef2cB5U8g5HtMfNOwRcbuUrENFhBuMeqeYfGzL5mKyocFcGdhnuVuVSDByxxxpffuAx/I X-Received: by 2002:a05:6402:57:: with SMTP id f23mr3456244edu.323.1616594207752; Wed, 24 Mar 2021 06:56:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616594207; cv=none; d=google.com; s=arc-20160816; b=TsDRnFhZpgs2OPKKsirsoO07h/ogj7nOgpeNlOEkXVxRne1rFERIH3+vYArmSez6JO EEqyHGHuS8MqnRp6Xbnc4ZYE0r6+Y6r7GjntlH69l8EQVOuLmc9+A4+6dxMgwi1oyo6b n9nEvgsgv0P8TC9tfn0mduNw5iVOcVL9JEZx7bvJIw2D7rIaUIF6qvIFExUCrzMCYh0/ WhEwLf2zTiKMt4k3Xl4E4+mWqvKlAhJ4YVYRb9wp8cOklJ5bONBJp2hbAgOWQX49/Tmz ZhIbPau2kKS+FH6sad6/euAn94LggfwO0aua/Xl4aSNaTfRq7jLkPWdKNCrYSlyV/4o3 teeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Dvah2sQbqHoaGAS0Q85+TEdR5X4CfBTZc7XrxId8o5g=; b=aPuI4mk0aLzWuGUp2YbRr/pOj8XovsiX7UuMpSxAwALIntBy8PrM3npBYdFRuEThXV 3HMzM+I26y9TEKqg1I8iIhIhgmCRKtBC7+Eglti58Ibo/iElfQKRYuFBdjy1c3lh5KAs 8p5OtDHBEurTTjI0OS/IwwE0OfMW22vMY7AZVjnJ0VW8NmnMkh1jqvod9o4o9xzKV6Ku 8iYw2WNwZXdygejcIykffCXk4M4UWcNYsmgMPeqnhP+K2dvWRjUCmRiPURWjtjkWRA5h z5m4CXoPgrxP4ZfBTRS0SMmydIflKLG8bRche6Obo/DjoEVqIv+wak59vLpfFaF7smB4 DVRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bo5si1719180edb.459.2021.03.24.06.56.23; Wed, 24 Mar 2021 06:56:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235756AbhCXNya (ORCPT + 99 others); Wed, 24 Mar 2021 09:54:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:50710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235430AbhCXNyT (ORCPT ); Wed, 24 Mar 2021 09:54:19 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9FD53619BB; Wed, 24 Mar 2021 13:54:18 +0000 (UTC) Date: Wed, 24 Mar 2021 09:54:17 -0400 From: Steven Rostedt To: Masahiro Yamada Cc: Linux Kernel Mailing List , Linux Kbuild mailing list , Andrew Morton , "John (Warthog9) Hawley" Subject: Re: [PATCH 2/2] streamline_config.pl: Add softtabstop=4 for vim users Message-ID: <20210324095417.49c6377b@gandalf.local.home> In-Reply-To: References: <20210322213806.089334551@goodmis.org> <20210322214032.293992979@goodmis.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Mar 2021 15:01:13 +0900 Masahiro Yamada wrote: > On Tue, Mar 23, 2021 at 6:40 AM Steven Rostedt wrote: > > > > From: "Steven Rostedt (VMware)" > > > > The tab stop for Perl files is by default (at least in emacs) to be 4 > > spaces, where a tab is used for all 8 spaces. Add a local variable comment > > to make vim do the same by default, and this will help keep the file > > consistent in the future when others edit it via vim and not emacs. > > > > Signed-off-by: Steven Rostedt (VMware) > > > Documentation/process/coding-style.rst says "do not do this". I take that file more as for C code, never took it for Perl ;-) > > Rather, I want to remove this ugly stuff entirely. > https://lore.kernel.org/patchwork/patch/1401439/ And I totally agree it does not belong in C code. > > Adding .editorconfig seems OK to me, but > Doing this in individual files in an editor-specific > manner is a horror. Is there a way to add this for the directory? The reason I added this was because of the different ways that vim and emacs handle Perl files. I just added this to ktest.pl because I want it to be consistent. The emacs way to edit Perl is to have 4 space indentation, but use tabs for every 8 spaces. That is, you have: (4 spaces) (1 tab) (1 tab and 4 spaces) (2 tabs) (2 tabs and 4 spaces) etc. What I found from people who edit Perl code is that they will either just indent 8 (with tabs), or just use all spaces. Then you have: (1 tab and 4 spaces) (followed by 12 spaces!) The way to make vim work the same is to add the softtabspace=4 command. We can not add this, but then have to either police the patches coming in, or constantly clean up the code after the fact. This code doesn't change much, so I'm fine with that. But for ktest.pl, I'm adding it. -- Steve