From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.bugs Subject: bug#35224: [PATCH] include indentation size in .dir-locals Date: Thu, 11 Apr 2019 09:24:38 +0300 Message-ID: <1554963878.18502.0@yandex.ru> References: <20190411011046.28243-1-Hi-Angel@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-5; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="6774"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 35224@debbugs.gnu.org To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 11 08:25:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hET96-0001df-Rk for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Apr 2019 08:25:13 +0200 Original-Received: from localhost ([127.0.0.1]:42502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hET95-0007sO-Nm for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Apr 2019 02:25:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hET8y-0007sE-Oh for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 02:25:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hET8x-0006Ci-Rv for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 02:25:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40244) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hET8w-0006CB-TG for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 02:25:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hET8w-0004Dj-KY for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 02:25:02 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 35224-submit@debbugs.gnu.org id=B35224.155496389116193 (code B ref 35224); Thu, 11 Apr 2019 06:25:02 +0000 Original-Received: (at 35224) by debbugs.gnu.org; 11 Apr 2019 06:24:51 +0000 Original-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 Original-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 Original-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) Original-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 Original-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) In-Reply-To: <8736mp5lrb.fsf@tcd.ie> X-Mailer: geary/mainline~g7970b668 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157484 Archived-At: 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. =