From: Konstantin Kharlamov <hi-angel@yandex.ru>
To: "Basil L. Contovounesios" <contovob@tcd.ie>
Cc: 35224@debbugs.gnu.org
Subject: bug#35224: [PATCH] include indentation size in .dir-locals
Date: Thu, 11 Apr 2019 09:24:38 +0300 [thread overview]
Message-ID: <1554963878.18502.0@yandex.ru> (raw)
In-Reply-To: <8736mp5lrb.fsf@tcd.ie>
On Чт, Apr 11, 2019 at 03:16, Basil L. Contovounesios
<contovob@tcd.ie> wrote:
> Konstantin Kharlamov <Hi-Angel@yandex.ru> 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
through 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.
I'll research more on this later this evening then.
next prev parent reply other threads:[~2019-04-11 6:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-11 1:10 bug#35224: [PATCH] include indentation size in .dir-locals Konstantin Kharlamov
2019-04-11 2:16 ` Basil L. Contovounesios
2019-04-11 6:24 ` Konstantin Kharlamov [this message]
2019-04-11 10:26 ` Basil L. Contovounesios
2019-04-11 10:39 ` Konstantin Kharlamov
2019-04-11 10:58 ` Basil L. Contovounesios
2019-04-11 13:30 ` Eli Zaretskii
2019-06-23 17:42 ` Lars Ingebrigtsen
2019-04-11 13:56 ` Konstantin Kharlamov
2019-04-11 15:22 ` Basil L. Contovounesios
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1554963878.18502.0@yandex.ru \
--to=hi-angel@yandex.ru \
--cc=35224@debbugs.gnu.org \
--cc=contovob@tcd.ie \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).