From unknown Fri Aug 15 20:51:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35224: [PATCH] include indentation size in .dir-locals Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Apr 2019 01:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35224 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 35224@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155494506710719 (code B ref -1); Thu, 11 Apr 2019 01:12:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Apr 2019 01:11:07 +0000 Received: from localhost ([127.0.0.1]:53707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEOF9-0002mp-2c for submit@debbugs.gnu.org; Wed, 10 Apr 2019 21:11:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47349) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEOF6-0002mK-5Y for submit@debbugs.gnu.org; Wed, 10 Apr 2019 21:11:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:44058) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hEOF0-0004kf-Ti for submit@debbugs.gnu.org; Wed, 10 Apr 2019 21:10:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEOEz-0006jY-Ji for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2019 21:10:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEOEy-0004jh-QO for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2019 21:10:57 -0400 Received: from forward104p.mail.yandex.net ([77.88.28.107]:45034) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hEOEy-0004eY-6n for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2019 21:10:56 -0400 Received: from mxback8g.mail.yandex.net (mxback8g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:169]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 5E1404B00052 for ; Thu, 11 Apr 2019 04:10:52 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback8g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id hCYa4a0YU0-AqgaPfhZ; Thu, 11 Apr 2019 04:10:52 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1554945052; bh=3lraD67+mRKPOsYy+hlcb8A/KNJZCwPSaY0XBgOb95o=; h=Subject:To:From:Date:Message-Id; b=FGlybRBDKfh8Etto+x2rQ/x7FsGDpMqXOLFEE0mFMQpGIMtlt49tU2KYVnEyPf7DW 4ue1q7nfiTSZI+TZDZj+uMIAozutipP3muoqZIqcVWCrlJYD4zJZYgDQzsznbbV77a 73OAJik+iO8KQn27Z8P/zHLPFuIF/UvdxdrjVoco= Authentication-Results: mxback8g.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ajvUkBiQmE-Apl8p2lo; Thu, 11 Apr 2019 04:10:51 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) From: Konstantin Kharlamov Date: Thu, 11 Apr 2019 04:10:46 +0300 Message-Id: <20190411011046.28243-1-Hi-Angel@yandex.ru> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 77.88.28.107 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * .dir-locals.el (c-mode): include indentation size --- .dir-locals.el | 1 + 1 file changed, 1 insertion(+) diff --git a/.dir-locals.el b/.dir-locals.el index 9cd39920c23..657ac32d00f 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -3,6 +3,7 @@ (fill-column . 70))) (c-mode . ((c-file-style . "GNU") (c-noise-macro-names . ("INLINE" "ATTRIBUTE_NO_SANITIZE_UNDE= FINED" "UNINIT" "CALLBACK" "ALIGN_STACK")) + (c-basic-offset . 2) (electric-quote-comment . nil) (electric-quote-string . nil))) (objc-mode . ((c-file-style . "GNU") --=20 2.21.0 From unknown Fri Aug 15 20:51:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35224: [PATCH] include indentation size in .dir-locals Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Apr 2019 02:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35224 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Konstantin Kharlamov Cc: 35224@debbugs.gnu.org Received: via spool by 35224-submit@debbugs.gnu.org id=B35224.155494902724846 (code B ref 35224); Thu, 11 Apr 2019 02:18:01 +0000 Received: (at 35224) by debbugs.gnu.org; 11 Apr 2019 02:17:07 +0000 Received: from localhost ([127.0.0.1]:53733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEPH1-0006Sg-E3 for submit@debbugs.gnu.org; Wed, 10 Apr 2019 22:17:07 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:43821) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEPGy-0006S5-4d for 35224@debbugs.gnu.org; Wed, 10 Apr 2019 22:17:06 -0400 Received: by mail-ed1-f65.google.com with SMTP id w3so3747622edu.10 for <35224@debbugs.gnu.org>; Wed, 10 Apr 2019 19:17:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=wKygavpX70XfMYWGgxvXWJDjVyYTT4O0nSLY0o+gJbI=; b=BAshDCNldRgcx08AwC/G4S37ATCvmFhkmRkWZUYLXQ9Nan2RCQkKB7lst+e2uliKJ/ SsbMjeLzjdaoJftWIZony6AbgELRu1fJzkhIUWrWhkKB4XQBf+BPzHF1XJdWYwz0UZSy FDIjGAUTPCFN7BNeXuFHivz9SNMm1r08aspbyRnyV4PXDZDKR2W2xSrSMKokNOprulj0 JYPlaT4+d4Jm6fUXNYzqBR49lxmLFZVNwuw3FHWj/6QNOSsisr44OVTJwat6uJDZQ/IE vX6Dtz/Vi+LYkj/te/p9DiR53uCudcvJEnRd3JVr6xbIIgrUudTRN4rbb4kZVfhle7zH Mrng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=wKygavpX70XfMYWGgxvXWJDjVyYTT4O0nSLY0o+gJbI=; b=fO6sfiY4e8P+yuAey+2Pvs3v1RLnTmb6Oz+x+yeKwjSWYrl2bH61FnUCdTECDHkJLl ozrIyGM0vATxdqBkMQQM39LLyknPzMqehQ5WZMcrUOdmbwm2SoleybybiBeYuz8rRwpX 5hXmmFjxEqcqf4Wlp5edF/Vs4KNmTm1boJp37EqyqclV0JvxoVWVejYnXooY0LKToXoJ Ose6x6a591HVkfPpazXoO4dUNVAu2G3oiTyNW0p+hTfqUleNCpdoya2WVe46xc71kjjA LQ5V2pefJJWiOYnPz4rqESoivGDgUgs7g85kSu2xP0/vWBoWzkJI1KXPNWfsTMqjwpj7 s63A== X-Gm-Message-State: APjAAAUsqTLBLbmdjBfk7EP455dvdwGj2LrMqq2P5+e60jzn/z+17Uxm B8WTEvpKFZzhKHXMNiuJpLagSA== X-Google-Smtp-Source: APXvYqw8MVcd1c+ffWKQplDJCml6hBe3NSsCygpsYm1dxeub+6W30jsEe7UWbfez3qi0VKpLrM1ziA== X-Received: by 2002:a05:6402:60a:: with SMTP id n10mr15020394edv.98.1554949018376; Wed, 10 Apr 2019 19:16:58 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:f786:805d:f4ab:1006]) by smtp.gmail.com with ESMTPSA id g3sm6803868ejp.31.2019.04.10.19.16.57 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 10 Apr 2019 19:16:57 -0700 (PDT) From: "Basil L. Contovounesios" References: <20190411011046.28243-1-Hi-Angel@yandex.ru> Date: Thu, 11 Apr 2019 03:16:56 +0100 In-Reply-To: <20190411011046.28243-1-Hi-Angel@yandex.ru> (Konstantin Kharlamov's message of "Thu, 11 Apr 2019 04:10:46 +0300") Message-ID: <8736mp5lrb.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) Konstantin Kharlamov writes: > * .dir-locals.el (c-mode): include indentation size > --- > .dir-locals.el | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/.dir-locals.el b/.dir-locals.el > index 9cd39920c23..657ac32d00f 100644 > --- a/.dir-locals.el > +++ b/.dir-locals.el > @@ -3,6 +3,7 @@ > (fill-column . 70))) > (c-mode . ((c-file-style . "GNU") > (c-noise-macro-names . ("INLINE" "ATTRIBUTE_NO_SANITIZE_UNDEFINED" "UNINIT" "CALLBACK" "ALIGN_STACK")) > + (c-basic-offset . 2) > (electric-quote-comment . nil) > (electric-quote-string . nil))) > (objc-mode . ((c-file-style . "GNU") The "GNU" c-file-style already sets c-basic-offset to 2. See c-style-alist and (info "(ccmode) Customizing Indentation"). -- Basil From unknown Fri Aug 15 20:51:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35224: [PATCH] include indentation size in .dir-locals Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Apr 2019 06:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35224 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: "Basil L. Contovounesios" Cc: 35224@debbugs.gnu.org Received: via spool by 35224-submit@debbugs.gnu.org id=B35224.155496389116193 (code B ref 35224); Thu, 11 Apr 2019 06:25:02 +0000 Received: (at 35224) by debbugs.gnu.org; 11 Apr 2019 06:24:51 +0000 Received: from localhost ([127.0.0.1]:53788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hET8l-0004D5-Ff for submit@debbugs.gnu.org; Thu, 11 Apr 2019 02:24:51 -0400 Received: from forward105j.mail.yandex.net ([5.45.198.248]:38187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hET8h-0004Cg-GF for 35224@debbugs.gnu.org; Thu, 11 Apr 2019 02:24:49 -0400 Received: from mxback7g.mail.yandex.net (mxback7g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:168]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 81964B224B3; Thu, 11 Apr 2019 09:24:40 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback7g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id mVSq4guDlB-Oe4WI6Wu; Thu, 11 Apr 2019 09:24:40 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1554963880; bh=cXz3FuKyC6AAHtyb+r5kzqJ3h6gvFXA6CMlwVwNtwac=; h=In-Reply-To:Cc:To:Subject:From:References:Date:Message-Id; b=bpXzDX5kuezd1cpUNrf6D3X3SizDN2pg0d3PhjWCzfBS3ZQdKSdwEDliC8JnnPAun CDjG/dj9+IfBaSNvwcyDqjM7J1qnhYNcnHL5XBoEQP/G6f2AWcdal/OaUDvgwlkd6N eU8wnBb+DSvBphQRU45M74vZ0VwieGpY0U4myNJo= Authentication-Results: mxback7g.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id XcLdO9wfXr-Od60ek2E; Thu, 11 Apr 2019 09:24:39 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Date: Thu, 11 Apr 2019 09:24:38 +0300 From: Konstantin Kharlamov Message-Id: <1554963878.18502.0@yandex.ru> In-Reply-To: <8736mp5lrb.fsf@tcd.ie> References: <20190411011046.28243-1-Hi-Angel@yandex.ru> X-Mailer: geary/mainline~g7970b668 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-5; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) On =C7=E2, Apr 11, 2019 at 03:16, Basil L. Contovounesios=20 wrote: > Konstantin Kharlamov writes: >=20 >> * .dir-locals.el (c-mode): include indentation size >> --- >> .dir-locals.el | 1 + >> 1 file changed, 1 insertion(+) >>=20 >> diff --git a/.dir-locals.el b/.dir-locals.el >> index 9cd39920c23..657ac32d00f 100644 >> --- a/.dir-locals.el >> +++ b/.dir-locals.el >> @@ -3,6 +3,7 @@ >> (fill-column . 70))) >> (c-mode . ((c-file-style . "GNU") >> (c-noise-macro-names . ("INLINE"=20 >> "ATTRIBUTE_NO_SANITIZE_UNDEFINED" "UNINIT" "CALLBACK" "ALIGN_STACK")) >> + (c-basic-offset . 2) >> (electric-quote-comment . nil) >> (electric-quote-string . nil))) >> (objc-mode . ((c-file-style . "GNU") >=20 > The "GNU" c-file-style already sets c-basic-offset to 2. > See c-style-alist and (info "(ccmode) Customizing Indentation"). Oh, this is odd. For some reason I have 4 as the size. I have it set=20 through c-basic-offset by default, but I can't reproduce it with emacs=20 -Q --eval, i.e. opening C file resets it to 2 as should be. I'll research more on this later this evening then. = From unknown Fri Aug 15 20:51:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35224: [PATCH] include indentation size in .dir-locals Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Apr 2019 10:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35224 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Konstantin Kharlamov Cc: 35224@debbugs.gnu.org Received: via spool by 35224-submit@debbugs.gnu.org id=B35224.15549784227012 (code B ref 35224); Thu, 11 Apr 2019 10:28:02 +0000 Received: (at 35224) by debbugs.gnu.org; 11 Apr 2019 10:27:02 +0000 Received: from localhost ([127.0.0.1]:53906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEWv7-0001op-UL for submit@debbugs.gnu.org; Thu, 11 Apr 2019 06:27:02 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:36913) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEWv1-0001oM-T0 for 35224@debbugs.gnu.org; Thu, 11 Apr 2019 06:26:58 -0400 Received: by mail-ed1-f67.google.com with SMTP id f53so3160420ede.4 for <35224@debbugs.gnu.org>; Thu, 11 Apr 2019 03:26:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=6y1JmdUQvHyuCnJi1jA0OeeV8Y1asrUdmfNbh+AuuIg=; b=lkWs8NbZbxGZJuyiKMdVEvTZGWR2QYFDSlFlt0kSvgq8LW8aXENIlflQbWjHgGpzi8 CKl2+rUkeRhDRIxXdQRGLUmu03zU2d+Pk3thurmolMUHpJirFFOv+Un2Fm2YVsFt9W1C pMUcB4IgozBEjPyO1g8UzCTuPiMoeguuBTYbEE4hp88oEF+StnatoqGMcDE51XEdF8+V IX4V5SAJu5BsyJcFEGMW8pTbuweCYH8jlU/sLwfD5qFnAQcVvETMR5CI6YOzTyBQWTYJ 2lt8TzrFZj1UtoNPuB1E8ey2ByOiWbwsBSR5imEn22qCaPY+BNeZwaADcpBZc+zWK3bw 9ipQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=6y1JmdUQvHyuCnJi1jA0OeeV8Y1asrUdmfNbh+AuuIg=; b=B8/TxQ00bKVWRKH66l9vFWIVUA4TRHDermr13zP1Xa+TlWt7U4wmeKLeR9diM0CuQb K4pHQaUPWBzcllvIQfYvDNuEf+O0lVUr4F+eFesbyYerD2tUk02MLU4mq9L71RBfh+40 J7ui2V3ETAzEwsu/L58yO7+RQ8FQEyL8pVUeksa5fJHithQvmso7GijotbTa+xduCTbD 4mGAHqxbzUlErDPlj0J5GxtRg2r7JHcv+AUMAwA4TsezFIt4G5dLDyAfBEsZqElUpcyg YXsMwfz7W9pFFPz7jvviG2ADsH2AgT7oVj2TMyb103+KL5zBCoRZP+B7iBMmdVN+DJIy 5nnw== X-Gm-Message-State: APjAAAW29mx+VRcVM9tJoczmQP3uygRlWTvsagYcSV9jK9mxvNqAoXcl nbwxmsAY6PiQh8JRo5x0IX12XQ== X-Google-Smtp-Source: APXvYqxDcOn2Lq40dJHVlof8SP0sMwISU0DvVm7o20gEmLrk9oQryGOkDSJPKLUH5aWHNwqXjuUeUw== X-Received: by 2002:aa7:c88b:: with SMTP id p11mr23452979eds.79.1554978410010; Thu, 11 Apr 2019 03:26:50 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:f786:805d:f4ab:1006]) by smtp.gmail.com with ESMTPSA id a93sm3487553ede.51.2019.04.11.03.26.48 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 11 Apr 2019 03:26:49 -0700 (PDT) From: "Basil L. Contovounesios" References: <20190411011046.28243-1-Hi-Angel@yandex.ru> <1554963878.18502.0@yandex.ru> Date: Thu, 11 Apr 2019 11:26:42 +0100 In-Reply-To: <1554963878.18502.0@yandex.ru> (Konstantin Kharlamov's message of "Thu, 11 Apr 2019 09:24:38 +0300") Message-ID: <87sguorg65.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) severity 35224 wishlist quit Konstantin Kharlamov writes: > On =D0=A7=D1=82, Apr 11, 2019 at 03:16, Basil L. Contovounesios wrote: >> Konstantin Kharlamov writes: >> >>> * .dir-locals.el (c-mode): include indentation size >>> --- >>> .dir-locals.el | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/.dir-locals.el b/.dir-locals.el >>> index 9cd39920c23..657ac32d00f 100644 >>> --- a/.dir-locals.el >>> +++ b/.dir-locals.el >>> @@ -3,6 +3,7 @@ >>> (fill-column . 70))) >>> (c-mode . ((c-file-style . "GNU") >>> (c-noise-macro-names . ("INLINE" >>> "ATTRIBUTE_NO_SANITIZE_UNDEFINED" "UNINIT" "CALLBACK" "ALIGN_STACK")) >>> + (c-basic-offset . 2) >>> (electric-quote-comment . nil) >>> (electric-quote-string . nil))) >>> (objc-mode . ((c-file-style . "GNU") >> >> The "GNU" c-file-style already sets c-basic-offset to 2. >> See c-style-alist and (info "(ccmode) Customizing Indentation"). > > Oh, this is odd. For some reason I have 4 as the size. I have it set thro= ugh > c-basic-offset by default, but I can't reproduce it with emacs -Q --eval,= i.e. > opening C file resets it to 2 as should be. Globally setting c-basic-offset overrides the cc-mode style inheritance system. There are various ways to customise this variable in a more granular way, such as defining a custom style which inherits from a built-in style, or setting c-basic-offset locally in a mode hook. For details, see (info "(ccmode) Config Basics"). --=20 Basil From unknown Fri Aug 15 20:51:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35224: [PATCH] include indentation size in .dir-locals Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Apr 2019 10:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35224 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: "Basil L. Contovounesios" Cc: 35224@debbugs.gnu.org Received: via spool by 35224-submit@debbugs.gnu.org id=B35224.155497915616029 (code B ref 35224); Thu, 11 Apr 2019 10:40:02 +0000 Received: (at 35224) by debbugs.gnu.org; 11 Apr 2019 10:39:16 +0000 Received: from localhost ([127.0.0.1]:53912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEX6y-0004AS-9U for submit@debbugs.gnu.org; Thu, 11 Apr 2019 06:39:16 -0400 Received: from forward101j.mail.yandex.net ([5.45.198.241]:40304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEX6v-0004AE-My for 35224@debbugs.gnu.org; Thu, 11 Apr 2019 06:39:15 -0400 Received: from mxback10o.mail.yandex.net (mxback10o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::24]) by forward101j.mail.yandex.net (Yandex) with ESMTP id AB7061BE133F; Thu, 11 Apr 2019 13:39:05 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback10o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id y108z9hTpV-d5mW8LY3; Thu, 11 Apr 2019 13:39:05 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1554979145; bh=Gau8heo9c7VbABVsHgKGqp1VWHE3TPhYI6mow23vrTw=; h=In-Reply-To:Cc:To:Subject:From:References:Date:Message-Id; b=Co7XQxFBWMp+EYVykr5jIKqYny6AiDNUopS6L3DgteIKB9tbwsi43geVYEom4mCjk GA62yL/cr6pdsYGCtiYkm6eAttYVmObJsmOtoDBmd0etKzFSWk2cxIfPVli5faRgLK 6Ijdmm2Z/ZDW8zqhgXfD7+C6gQv6n+C5Br+0WfGU= Authentication-Results: mxback10o.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id BzNr3CP6ta-d4COGOXn; Thu, 11 Apr 2019 13:39:04 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Date: Thu, 11 Apr 2019 13:39:03 +0300 From: Konstantin Kharlamov Message-Id: <1554979143.18502.4@yandex.ru> In-Reply-To: <87sguorg65.fsf@tcd.ie> References: <20190411011046.28243-1-Hi-Angel@yandex.ru> <1554963878.18502.0@yandex.ru> X-Mailer: geary/mainline~g7970b668 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-5; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On =C7=E2, Apr 11, 2019 at 11:26, Basil L. Contovounesios=20 wrote: > severity 35224 wishlist > quit >=20 > Konstantin Kharlamov writes: >=20 >> On =C7=E2, Apr 11, 2019 at 03:16, Basil L. Contovounesios=20 >> wrote: >>> Konstantin Kharlamov writes: >>>=20 >>>> * .dir-locals.el (c-mode): include indentation size >>>> --- >>>> .dir-locals.el | 1 + >>>> 1 file changed, 1 insertion(+) >>>>=20 >>>> diff --git a/.dir-locals.el b/.dir-locals.el >>>> index 9cd39920c23..657ac32d00f 100644 >>>> --- a/.dir-locals.el >>>> +++ b/.dir-locals.el >>>> @@ -3,6 +3,7 @@ >>>> (fill-column . 70))) >>>> (c-mode . ((c-file-style . "GNU") >>>> (c-noise-macro-names . ("INLINE" >>>> "ATTRIBUTE_NO_SANITIZE_UNDEFINED" "UNINIT" "CALLBACK"=20 >>>> "ALIGN_STACK")) >>>> + (c-basic-offset . 2) >>>> (electric-quote-comment . nil) >>>> (electric-quote-string . nil))) >>>> (objc-mode . ((c-file-style . "GNU") >>>=20 >>> The "GNU" c-file-style already sets c-basic-offset to 2. >>> See c-style-alist and (info "(ccmode) Customizing Indentation"). >>=20 >> Oh, this is odd. For some reason I have 4 as the size. I have it=20 >> set through >> c-basic-offset by default, but I can't reproduce it with emacs -Q=20 >> --eval, i.e. >> opening C file resets it to 2 as should be. >=20 > Globally setting c-basic-offset overrides the cc-mode style=20 > inheritance > system. There are various ways to customise this variable in a more > granular way, such as defining a custom style which inherits from a > built-in style, or setting c-basic-offset locally in a mode hook. > For details, see (info "(ccmode) Config Basics"). Oh, okay, so this works as expected. But since googling "change=20 indentation size" always gives using specifically c-basic-offset (e.g.=20 https://stackoverflow.com/questions/14939608/how-to-change-emacs-struct-ind= ents-from-4-to-2-spaces),=20 I guess it's safe to assume most of Emacs users has it changed. So it's=20 useful to add this to dir-locals anyway. = From unknown Fri Aug 15 20:51:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35224: [PATCH] include indentation size in .dir-locals Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Apr 2019 10:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35224 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Konstantin Kharlamov Cc: 35224@debbugs.gnu.org Received: via spool by 35224-submit@debbugs.gnu.org id=B35224.155498033017769 (code B ref 35224); Thu, 11 Apr 2019 10:59:01 +0000 Received: (at 35224) by debbugs.gnu.org; 11 Apr 2019 10:58:50 +0000 Received: from localhost ([127.0.0.1]:53934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEXPu-0004cW-Ba for submit@debbugs.gnu.org; Thu, 11 Apr 2019 06:58:50 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:37219) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEXPq-0004cG-AK for 35224@debbugs.gnu.org; Thu, 11 Apr 2019 06:58:47 -0400 Received: by mail-ed1-f68.google.com with SMTP id f53so3236836ede.4 for <35224@debbugs.gnu.org>; Thu, 11 Apr 2019 03:58:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=/lmTXuwVPHFz+M36Ls9mBFjut1WYPaM1BSDk9LV1dRU=; b=aFNWtlaP2SqwrYwf8MtW8APmt8Efv/o7oMz9NZyEPXVl8ye0hrWPvL2NGa5Svet7jr jd2dPaKbvWvPj0pbC/ZXchxXrgiwi/O1c2jokk5mAQAHiw5LAkfchHUQosC6EY0QWvPF iD6bEWgSDbeWQXhZqLKOE11KwzIw1mWtz4gqCQQEiOrsnBvw1Prx8/pYEptQqEhbT8+K QQoggm7ddP5uqUoTZCkGK8MVXGuBSKGhsSDf0gpzjbDgmsyc1pxj2EeeTftn3bHH+kAN blt6sVJbyk5b50noNcbAWQm/OJapO+M4hGEMzaEECWWZLt95Zlipei32sbv/zB7V7r9w M79A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=/lmTXuwVPHFz+M36Ls9mBFjut1WYPaM1BSDk9LV1dRU=; b=mcuxNNZUg5wfBWnVi+HO3fWLhhAcR00sbCNJjIvoGjoJnofGuPpqI28EmTw0rIxpRk sp0+AP6RU3dm94CvVqVBgCuPk3lMrK33aTp6Vw1aQ33sJFx/h9uotPJYHalLfa/yDdZH 9wAjsm5pmn/fMWiZsB68CEw2Mlh7KlfIUyARj4jn/WFCtgDl0wFQaG39NWC2YmDkdPEu R3cveMGk2mAw063/L2Kxc/508CwKVkg50Bknzv7L/mtoN0Aej41uRXV6zh9uBM85E7cZ Tc8uZil5SesKZYGqqV7kMvpx+HTjIc/5/ykYmyBsz9gRVvHb4Y9IiGMrcNRBp9IiYlCN tfEg== X-Gm-Message-State: APjAAAV9u47RqX3MGNA4lzyTwUAUtCXcSCyIIqu/r3xoi2V1H85Y4BCi FUhi5a9gD8faAVoD0egr8hGWGQ== X-Google-Smtp-Source: APXvYqxZvqIyy+DAXc7JcwSQ6QaxJunnQVTe1udIGLbLoH9sQj3kBEkgMKNGeoWMeHXC1V0Op49MbA== X-Received: by 2002:a50:a705:: with SMTP id h5mr31191537edc.226.1554980319277; Thu, 11 Apr 2019 03:58:39 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:f786:805d:f4ab:1006]) by smtp.gmail.com with ESMTPSA id d21sm1300665edx.41.2019.04.11.03.58.38 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 11 Apr 2019 03:58:38 -0700 (PDT) From: "Basil L. Contovounesios" References: <20190411011046.28243-1-Hi-Angel@yandex.ru> <1554963878.18502.0@yandex.ru> <1554979143.18502.4@yandex.ru> Date: Thu, 11 Apr 2019 11:58:37 +0100 In-Reply-To: <1554979143.18502.4@yandex.ru> (Konstantin Kharlamov's message of "Thu, 11 Apr 2019 13:39:03 +0300") Message-ID: <87d0lsreoy.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Konstantin Kharlamov writes: > On =D0=A7=D1=82, Apr 11, 2019 at 11:26, Basil L. Contovounesios wrote: > >> Globally setting c-basic-offset overrides the cc-mode style inheritance >> system. There are various ways to customise this variable in a more >> granular way, such as defining a custom style which inherits from a >> built-in style, or setting c-basic-offset locally in a mode hook. >> For details, see (info "(ccmode) Config Basics"). > > Oh, okay, so this works as expected. But since googling "change indentati= on > size" always gives using specifically c-basic-offset (e.g. > https://stackoverflow.com/questions/14939608/how-to-change-emacs-struct-i= ndents-from-4-to-2-spaces), > I guess it's safe to assume most of Emacs users has it changed. So it's u= seful > to add this to dir-locals anyway. IMO, that's a bug in the configuration of those users because they're overriding how cc-mode works, and the cc-mode manual describes in detail the various ways to customise indentation. So I don't see a need to change the Emacs dir-locals-file to accommodate this use-case. But that's just one opinion, and I'm not familiar with prevailing policy on what to add to the Emacs dir-locals-file. --=20 Basil From unknown Fri Aug 15 20:51:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35224: [PATCH] include indentation size in .dir-locals Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Apr 2019 13:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35224 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: "Basil L. Contovounesios" Cc: 35224@debbugs.gnu.org, hi-angel@yandex.ru Received: via spool by 35224-submit@debbugs.gnu.org id=B35224.15549894718997 (code B ref 35224); Thu, 11 Apr 2019 13:32:02 +0000 Received: (at 35224) by debbugs.gnu.org; 11 Apr 2019 13:31:11 +0000 Received: from localhost ([127.0.0.1]:54044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEZnK-0002L3-Iu for submit@debbugs.gnu.org; Thu, 11 Apr 2019 09:31:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEZnJ-0002Ko-4r for 35224@debbugs.gnu.org; Thu, 11 Apr 2019 09:31:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEZnD-00037H-Gz; Thu, 11 Apr 2019 09:31:03 -0400 Received: from [176.228.60.248] (port=3593 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hEZnC-0004Ly-DA; Thu, 11 Apr 2019 09:31:03 -0400 Date: Thu, 11 Apr 2019 16:30:43 +0300 Message-Id: <83a7gw654s.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <87d0lsreoy.fsf@tcd.ie> (contovob@tcd.ie) References: <20190411011046.28243-1-Hi-Angel@yandex.ru> <1554963878.18502.0@yandex.ru> <1554979143.18502.4@yandex.ru> <87d0lsreoy.fsf@tcd.ie> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: "Basil L. Contovounesios" > Date: Thu, 11 Apr 2019 11:58:37 +0100 > Cc: 35224@debbugs.gnu.org > > IMO, that's a bug in the configuration of those users because they're > overriding how cc-mode works, and the cc-mode manual describes in detail > the various ways to customise indentation. So I don't see a need to > change the Emacs dir-locals-file to accommodate this use-case. > > But that's just one opinion, and I'm not familiar with prevailing policy > on what to add to the Emacs dir-locals-file. I don't think we have any definitive policy, but FWIW, I agree with Basil on this one. Does anyone else have an opinion? From unknown Fri Aug 15 20:51:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35224: [PATCH] include indentation size in .dir-locals Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Apr 2019 13:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35224 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: "Basil L. Contovounesios" Cc: 35224@debbugs.gnu.org Received: via spool by 35224-submit@debbugs.gnu.org id=B35224.155499102212395 (code B ref 35224); Thu, 11 Apr 2019 13:58:01 +0000 Received: (at 35224) by debbugs.gnu.org; 11 Apr 2019 13:57:02 +0000 Received: from localhost ([127.0.0.1]:54977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEaCM-0003Dq-4P for submit@debbugs.gnu.org; Thu, 11 Apr 2019 09:57:02 -0400 Received: from forward102j.mail.yandex.net ([5.45.198.243]:49858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEaCG-0003DD-Da for 35224@debbugs.gnu.org; Thu, 11 Apr 2019 09:56:58 -0400 Received: from mxback14j.mail.yandex.net (mxback14j.mail.yandex.net [IPv6:2a02:6b8:0:1619::90]) by forward102j.mail.yandex.net (Yandex) with ESMTP id 94144F20570; Thu, 11 Apr 2019 16:56:46 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback14j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id QbByAcRaUl-ukW4dAci; Thu, 11 Apr 2019 16:56:46 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1554991006; bh=XNxIYlHpRpstQpmt30B0xOUVYnkPk3boF6FazNp1cGI=; h=In-Reply-To:Cc:To:Subject:From:References:Date:Message-Id; b=sOrX/YVBPXWzFoKpiGtBnXlumorks6hQHcd3kQTRBP2Nd2IwCqJ8V3xJ5AMxuEHPn KS9yx5UH+PIDOVaqVhlwYJxF7PHrAFLLhVq+sNmXR7hdpJYP5OYFRDgxKyoOh7IHVX 1Jmv1QbDkTucwFVJvLDSueiC1QchrLeXAp0gFqaE= Authentication-Results: mxback14j.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 0yqemcBZet-ujImgaJ3; Thu, 11 Apr 2019 16:56:45 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Date: Thu, 11 Apr 2019 16:56:44 +0300 From: Konstantin Kharlamov Message-Id: <1554991004.18502.5@yandex.ru> In-Reply-To: <87d0lsreoy.fsf@tcd.ie> References: <20190411011046.28243-1-Hi-Angel@yandex.ru> <1554963878.18502.0@yandex.ru> <1554979143.18502.4@yandex.ru> X-Mailer: geary/mainline~g7970b668 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-5; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On =C7=E2, Apr 11, 2019 at 11:58, Basil L. Contovounesios=20 wrote: > Konstantin Kharlamov writes: >=20 >> On =C7=E2, Apr 11, 2019 at 11:26, Basil L. Contovounesios=20 >> wrote: >>=20 >>> Globally setting c-basic-offset overrides the cc-mode style=20 >>> inheritance >>> system. There are various ways to customise this variable in a=20 >>> more >>> granular way, such as defining a custom style which inherits from a >>> built-in style, or setting c-basic-offset locally in a mode hook. >>> For details, see (info "(ccmode) Config Basics"). >>=20 >> Oh, okay, so this works as expected. But since googling "change=20 >> indentation >> size" always gives using specifically c-basic-offset (e.g. >> =20 >> https://stackoverflow.com/questions/14939608/how-to-change-emacs-struct-= indents-from-4-to-2-spaces), >> I guess it's safe to assume most of Emacs users has it changed. So=20 >> it's useful >> to add this to dir-locals anyway. >=20 > IMO, that's a bug in the configuration of those users because they're > overriding how cc-mode works, and the cc-mode manual describes in=20 > detail > the various ways to customise indentation. So I don't see a need to > change the Emacs dir-locals-file to accommodate this use-case. Okay, but we can't ignore the fact that such usecase exists and is=20 widely employed (if needed, I can throw more links to these advices on=20 stackexchange site). So let me ask: is there a downside to making this change? Because if=20 there's none then the change is an improvement, it's that simple. > But that's just one opinion, and I'm not familiar with prevailing=20 > policy > on what to add to the Emacs dir-locals-file. >=20 > -- > Basil = From unknown Fri Aug 15 20:51:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35224: [PATCH] include indentation size in .dir-locals Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Apr 2019 15:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35224 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Konstantin Kharlamov Cc: 35224@debbugs.gnu.org Received: via spool by 35224-submit@debbugs.gnu.org id=B35224.155499618720876 (code B ref 35224); Thu, 11 Apr 2019 15:24:01 +0000 Received: (at 35224) by debbugs.gnu.org; 11 Apr 2019 15:23:07 +0000 Received: from localhost ([127.0.0.1]:55038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEbXf-0005Qe-A2 for submit@debbugs.gnu.org; Thu, 11 Apr 2019 11:23:07 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:37692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEbXd-0005Pw-7S for 35224@debbugs.gnu.org; Thu, 11 Apr 2019 11:23:06 -0400 Received: by mail-ed1-f68.google.com with SMTP id f53so4001195ede.4 for <35224@debbugs.gnu.org>; Thu, 11 Apr 2019 08:23:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=rT/WkUFVkfEXn/rKRuMdJZy4wMUnJgn5OdXkQT2oNkA=; b=oSLian8LFX2XLFuzaIfxqEMSP+/cumPsb54grGfldH8CqNRc5cq7S9JZ3doxMtZy3d jc8fpdhO38YM5hLsY5wASEfdwpng2WoEAsAKp6Q9Q6gjqGzMPIR9VLaTLA5bSbJAodI0 dTiqUrVGV02QZdduassZ5qEWKbWLoFGKqmpci75IlQpHhGQGwILpdmCFg1qkek3/PLet mhw/am7WuH+RSfW6JNVQ9f3HyLUilqmyPD1CvYh7hbfYFe2a3uFmhFVVld1I2e3Vcote 1vATWk5zw/XGLCjxxhE6bGrmbjkvHIqWxezx7qBe3C9rXRjMxYwI6GHLay0Gkaub1ge6 rE8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=rT/WkUFVkfEXn/rKRuMdJZy4wMUnJgn5OdXkQT2oNkA=; b=dstO047oeRLIi7VERi1znxXkhhntVobxJIQ7nLBVEz+1qNYfBql27XUFHaSUqABGXv /czsvXXhrB5piVwLRbJzbb7UyxNbBJb7I0raYPEj2BrQlxhV7M9uVrDKvfp9/h2Iw6FN DmWtrnJp1Ia1NMv1uLTMkR9C3iXCBv0f89s7yfeuUPoBe9nTuLfHN466xNsHYs6dsdkk 6gBaVTNU1CbzeNY6XZLk+ZrYK1vyxcNbgiRWC/C0kGf1Smp44B9zmuwlUZHB5PKDstGk CQ+CiCuLgmJwdXyTfMcQgYfsRty99IJCtbnfRT559pLckW/gBPHk10oVJAgPzRHibTGi FMmg== X-Gm-Message-State: APjAAAVVcK+6KlsogufzvH84TZsQONaRLlSrAHaOGhPj6TGFsp4xo4qu CE5s0WvVljZfHs4aU07sz0e+SaWR+c6ArXLA X-Google-Smtp-Source: APXvYqzYF8L9RCLu9S5ZVsJ/VpUPhXiq5uqBcrca1Cg9R4FfqbjQWyHiEdX/RmLgVsQtUTlNXUUnwQ== X-Received: by 2002:a17:906:81cf:: with SMTP id e15mr26822352ejx.241.1554996177400; Thu, 11 Apr 2019 08:22:57 -0700 (PDT) Received: from localhost ([163.172.211.46]) by smtp.gmail.com with ESMTPSA id r18sm4273402edq.38.2019.04.11.08.22.56 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 11 Apr 2019 08:22:56 -0700 (PDT) From: "Basil L. Contovounesios" References: <20190411011046.28243-1-Hi-Angel@yandex.ru> <1554963878.18502.0@yandex.ru> <1554979143.18502.4@yandex.ru> <1554991004.18502.5@yandex.ru> Date: Thu, 11 Apr 2019 16:22:54 +0100 In-Reply-To: <1554991004.18502.5@yandex.ru> (Konstantin Kharlamov's message of "Thu, 11 Apr 2019 16:56:44 +0300") Message-ID: <87zhow36sx.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Konstantin Kharlamov writes: > On =D0=A7=D1=82, Apr 11, 2019 at 11:58, Basil L. Contovounesios wrote: >> Konstantin Kharlamov writes: >> >>> On =D0=A7=D1=82, Apr 11, 2019 at 11:26, Basil L. Contovounesios >>> wrote: >>> >>>> Globally setting c-basic-offset overrides the cc-mode style inheritan= ce >>>> system. There are various ways to customise this variable in a more >>>> granular way, such as defining a custom style which inherits from a >>>> built-in style, or setting c-basic-offset locally in a mode hook. >>>> For details, see (info "(ccmode) Config Basics"). >>> >>> Oh, okay, so this works as expected. But since googling "change indent= ation >>> size" always gives using specifically c-basic-offset (e.g. >>> https://stackoverflow.com/questions/14939608/how-to-change-emacs-struc= t-indents-from-4-to-2-spaces), >>> I guess it's safe to assume most of Emacs users has it changed. So it's >>> useful >>> to add this to dir-locals anyway. >> >> IMO, that's a bug in the configuration of those users because they're >> overriding how cc-mode works, and the cc-mode manual describes in detail >> the various ways to customise indentation. So I don't see a need to >> change the Emacs dir-locals-file to accommodate this use-case. > > Okay, but we can't ignore the fact that such usecase exists and is widely > employed (if needed, I can throw more links to these advices on stackexch= ange > site). The widespread dissemination of synoptic, not universally applicable, or bad advise in the wild doesn't necessarily validate any particular use-case. > So let me ask: is there a downside to making this change? Because if ther= e's > none then the change is an improvement, it's that simple. The downside is that this is an invasive change in that it affects all people working on the Emacs sources. For many it may have no obvious effect, for others it may mask problems/inconsistencies in their configuration, and yet others it may end up annoying due to unforeseen consequences. A net loss, potentially. There is nothing obviously wrong with the current Emacs dir-locals-file in this respect (if it ain't broke don't fix it), whereas the user customisations you refer to are arguably problematic (if it is broke fix it). Again, just one opinion; I won't mind if others welcome this change. --=20 Basil From unknown Fri Aug 15 20:51:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35224: [PATCH] include indentation size in .dir-locals Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jun 2019 17:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35224 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: "Basil L. Contovounesios" , 35224@debbugs.gnu.org, hi-angel@yandex.ru Received: via spool by 35224-submit@debbugs.gnu.org id=B35224.15613117845430 (code B ref 35224); Sun, 23 Jun 2019 17:44:02 +0000 Received: (at 35224) by debbugs.gnu.org; 23 Jun 2019 17:43:04 +0000 Received: from localhost ([127.0.0.1]:54477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hf6W8-0001PV-1Q for submit@debbugs.gnu.org; Sun, 23 Jun 2019 13:43:04 -0400 Received: from quimby.gnus.org ([80.91.231.51]:44412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hf6W6-0001P4-3Q for 35224@debbugs.gnu.org; Sun, 23 Jun 2019 13:43:02 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hf6W1-00007f-9u; Sun, 23 Jun 2019 19:42:59 +0200 From: Lars Ingebrigtsen References: <20190411011046.28243-1-Hi-Angel@yandex.ru> <1554963878.18502.0@yandex.ru> <1554979143.18502.4@yandex.ru> <87d0lsreoy.fsf@tcd.ie> <83a7gw654s.fsf@gnu.org> Date: Sun, 23 Jun 2019 19:42:57 +0200 In-Reply-To: <83a7gw654s.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 11 Apr 2019 16:30:43 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> IMO, that's a bug in the configuration of those users because they're >> overriding how cc-mode works, and the cc-mode manual describes in detail >> the various ways to customise indentation. So I [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> IMO, that's a bug in the configuration of those users because they're >> overriding how cc-mode works, and the cc-mode manual describes in detail >> the various ways to customise indentation. So I don't see a need to >> change the Emacs dir-locals-file to accommodate this use-case. >> >> But that's just one opinion, and I'm not familiar with prevailing policy >> on what to add to the Emacs dir-locals-file. > > I don't think we have any definitive policy, but FWIW, I agree with > Basil on this one. > > Does anyone else have an opinion? Didn't look like it, so I guess the majority were against this change. So I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 13:43:08 2019 Received: (at control) by debbugs.gnu.org; 23 Jun 2019 17:43:08 +0000 Received: from localhost ([127.0.0.1]:54480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hf6WC-0001Pq-Ap for submit@debbugs.gnu.org; Sun, 23 Jun 2019 13:43:08 -0400 Received: from quimby.gnus.org ([80.91.231.51]:44434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hf6WB-0001Pg-Ga for control@debbugs.gnu.org; Sun, 23 Jun 2019 13:43:07 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hf6W8-00007u-P8 for control@debbugs.gnu.org; Sun, 23 Jun 2019 19:43:06 +0200 Date: Sun, 23 Jun 2019 19:43:04 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #35224 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 35224 wontfix close 35224 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 35224 wontfix close 35224 quit