Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp940561lqj; Mon, 3 Jun 2024 05:52:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4QjA3HCXFx49eKdtYIjJB/v/9yDHBWPYtyZ9bzO91HDD4gtHfKRk13FRDcJBCSs7XUanuzOiH80JcfS7aOyN/TAodRmW8Fesam9GgPA== X-Google-Smtp-Source: AGHT+IHRrR+jLCVOjI+Fib7jp2O2ryH/qtAjZ/X0JR3xOvxwyFI+OwJufTLfZv3y9hkw2IGBlwSj X-Received: by 2002:a05:622a:1827:b0:43b:1546:f8a9 with SMTP id d75a77b69052e-43ff52b68c5mr110402651cf.51.1717419159876; Mon, 03 Jun 2024 05:52:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717419159; cv=pass; d=google.com; s=arc-20160816; b=JPybhkdFAZOrooe1HN5OxPyqlHQKG1y9p42CBd6/nRd8SV/6iHEoNJHK/NeqvstpTT BZxZJoZsIvXhMBp79j64rXNyO1F/lxDcO7nX8mNEIDgXONR5wvDnezlPZv10XYLB6Y0x kqXHnGcMXulpWvJIZ5eAcQ5wv3+IakLHo1xuc8trZticVkFX9EjtViZRqvhc0Bth49DT E8mzbisViWFKcFD+RjnZIsFAORHSM4+KPI5qJOHjlraPdtiJ3IVwTJJh+YMVKsog/9Hn 0bAIaY5epPtR+KG9h3kpUx2STo8e1RyyBJtQph2c2bc7FvStepBrmOcSlvU698HG6fYH 1+MQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=JadfoHdtygKM61WU7kYRFYh3wqb4hbUSntCtUEQugPM=; fh=Pkck4oWqyjuyAqS4Fg2/xo1CkWW6gJqW6AHt8ZnShOg=; b=aCXVLPpsmaUIBAc/qxbjQpN4ZD8alwgQbjSivjxuajSWFFpAnbU5lSpWQtVQa4LYyP YqRrexY/PcDFUalmdPXrmyHILxJE4zBkPsWCgt2CkiVj7IgoMt7O5vUMsGNXmj3STfD3 KvprOZc6GW9Q5CT4pZxC5a91rNdHZ96iBhGfSBz/3SB8snDstbOCa/cHYEEPLsQi0kzL 7oio7/vi3kSrujPGNzmREpoxYi8YKc8R1swaSO3xNxuNrHrqYu+VQ4JKNP2cQBq/EDDa BDlEeBul5huzLdpqlNtL95ykoUjCaR868evN6hALbvNR8YaE1zPUA0UasSOAY4VL7N/p tGKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HL1QWV2I; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-199136-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199136-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43ff2466edcsi85911251cf.342.2024.06.03.05.52.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 05:52:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199136-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HL1QWV2I; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-199136-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199136-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9588A1C215A1 for ; Mon, 3 Jun 2024 12:52:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85FC212C484; Mon, 3 Jun 2024 12:52:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HL1QWV2I" Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36896286A6 for ; Mon, 3 Jun 2024 12:52:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717419153; cv=none; b=o8kYOjY9hjMP7T4z+9nAX4Tu1zJQkln68DS2cNKPhW02dP1W6Jkt2/MT70Lj4Z66A97QvbQ6E1Pg/cwOorhV/zbbS7sRj1mB/G5BQVF9mMv6sagtFlrAFsnTaVcBReq7celk6jLN8pxSR93brugeaVt4ibix6/G3IAUBf1RI47c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717419153; c=relaxed/simple; bh=JadfoHdtygKM61WU7kYRFYh3wqb4hbUSntCtUEQugPM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=R1RwD6aXKzCnjvEbWpsRzgBbm03WRUmsij5tArByOMA/tSpXEvAH+58ZgWBaZKQbloD6sJ31AN6gpZyl9DGPolcnAwy1JY1OE94h4VnTp94PmbIXalesfNdisbWk3apmWHAu3erDazUlCRkhZwNdyPBCk/8PgzJE9W+My3GCoHo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HL1QWV2I; arc=none smtp.client-ip=209.85.218.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a68ee841138so158193966b.1 for ; Mon, 03 Jun 2024 05:52:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717419150; x=1718023950; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=JadfoHdtygKM61WU7kYRFYh3wqb4hbUSntCtUEQugPM=; b=HL1QWV2I3Zn80z8vfxR5iVwLi2g097ZSkz2N8Zm2i1hI1zbMhA/sC4XaqYRCuSRGzm HmVhLZDvZU94iL7Dv7fg38UeUtGpaGktLDBrkEEqnpIvfY/hAg6KhMep1/EoSUzUXSfd YXGnv42W/wnDeYzLZmPTG03XXC+/t0G5h5OgpBaTqv1SVpsrcAXg04owWhTvKCQA0B47 1t6CvR/s82zZki/b1AdS5OMAC1ja/DSNryN3F3h0jCPlkyhdggJ0zIaQBQSVgK307f25 97R8QGvlmpWPrsGewbstN9j/3KKozb0GZvjadwPZZgln96mm6mdIZLKvbMg6BfBupQD/ LH0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717419150; x=1718023950; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JadfoHdtygKM61WU7kYRFYh3wqb4hbUSntCtUEQugPM=; b=rvNhKxbFzm1+xdfYWhLnUrnl2LseLYjAZwEu809TdZyjK0HabtmDRGGzXmuQVSb3hW +lBx8OGZZ0dF5UH/rwiTI6P2ES9DdIwIZ2SIvGmgHFFO+XwkWHvohVwksRlsR6tLxcrz 9mdyVFMzI9rNv2cAX+mbUJcgNwvr1ZOxCx2M1frh2XyH1UfoQuJPpl3NgD15evONfHPh wQvY0T2tu6V9ZjI7S/dTG5NymjlHL5UdmZfQiRvLhq+QwjGHDDQYYykm48bElI5o6QkM bJhegpZSTB5ijqXM0p5OR+I26PsWi1XnVwFGos0a/tmPhvqtP592igDBfx7RlSN2mIO2 gxng== X-Forwarded-Encrypted: i=1; AJvYcCXceDW0pu+XjmFK2H6K290tdEOHh2Hu5/rbE1kooTQFfsuRdS35VbbCkrDSKJ1oZ8PYwN4ZK8YMsgqGoisxFQWhJrnb53QcteYFRdiQ X-Gm-Message-State: AOJu0YzVpwdr2PVFtl7kzD1Olh3M8JQn05kyQVaYLd6iYwJbF1mM38dJ fSTaY8R9QRrFSIievJlJpvH9Whdqs15yns+VQzQgd+Nlv7q5D6aBgeToRXFF40UV66dI8VVQR8x CRTOWxxYKxNbsJW3aHOl31rFQd8Y= X-Received: by 2002:a17:907:516:b0:a59:b88c:2b2a with SMTP id a640c23a62f3a-a6821b71cdemr466092666b.50.1717419150212; Mon, 03 Jun 2024 05:52:30 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20230601075333.14021-1-ihuguet@redhat.com> <874jiikr6e.fsf@meer.lwn.net> <20240603121853.GA19897@nvidia.com> In-Reply-To: <20240603121853.GA19897@nvidia.com> From: Mateusz Guzik Date: Mon, 3 Jun 2024 14:52:18 +0200 Message-ID: Subject: Re: [PATCH v4] Add .editorconfig file for basic formatting To: Jason Gunthorpe Cc: Masahiro Yamada , =?UTF-8?B?w43DsWlnbyBIdWd1ZXQ=?= , Vincent MAILHOL , Jonathan Corbet , ojeda@kernel.org, danny@kdrag0n.dev, mic@digikod.net, linux-kernel@vger.kernel.org, joe@perches.com, linux@rasmusvillemoes.dk, willy@infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 3, 2024 at 2:18=E2=80=AFPM Jason Gunthorpe wro= te: > > On Sun, Jun 02, 2024 at 05:30:51PM +0200, Mateusz Guzik wrote: > > > As is I think the config mostly gets in the way and most people have a > > setup which does not use it (for example my vim does not). Alternativel= y > > maye it is neovim which is overzalous here and other editors don't trea= t > > the entire file. If there is a way to convince the thing to only tend t= o > > whitespace issues in edited lines that would be great. > > Yes, I think that is quite overzealous, I'd view it as a vim issue. > I don't know about vim specifically, it was neovim here, for the record. Anyhow I put on latex gloves and typed in "apt install emacs", added the plugin as documented on github (https://github.com/editorconfig/editorconfig-emacs + entries to .emacs.d/init.el) and got precisely the same behavior. There is no way I'm trying to other editors. At this point I suspect this *is* the intended behavior and other people don't run into it because their editor does not look at .editorconfig to begin with. Note my vim does not either, I only ran into it after experimenting with ne= ovim. --=20 Mateusz Guzik