linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bart Van Assche <bvanassche@acm.org>
To: Alison Chaiken <alison@she-devel.com>
Cc: Federico Vaga <federico.vaga@vaga.pv.it>,
	Jonathan Corbet <corbet@lwn.net>,
	linux-doc@vger.kernel.org, Matthew Wilcox <willy@infradead.org>,
	"Geyslan G . Bem" <geyslan@gmail.com>,
	Tiago Natel de Moura <tiago4orion@gmail.com>,
	Joe Perches <joe@perches.com>, Li Yang <leo@zh-kernel.org>
Subject: Re: [PATCH] Documentation/CodingStyle: Use directory-local variables for emacs
Date: Sat, 5 Jan 2019 13:04:31 -0800	[thread overview]
Message-ID: <e8b69c8e-6d70-38b3-7b5d-06cc5b251999@acm.org> (raw)
In-Reply-To: <84ce7ee302856836b922cfe0ddf2a74e@she-devel.com>

On 1/5/19 11:58 AM, Alison Chaiken wrote:
> On 2019-01-04 14:39, Bart Van Assche wrote:
>>> As a general comment, I personally think that it worth to mention the 
>>> fact
>>> that the user can take this code (actually part of it) and put it in 
>>> a .dir-
>>> locals.el file in the top-level directory.
>>
>> I'm not sure we should recommend this. Settings in ~/.emacs are not 
>> affected
>> by git clean -f -x but .dir-locals.el is removed by that command.
> 
> Why not add the file to .gitignore, possibly in a separate patch?

Hi Alison,

I think that git clean -f -x also removes files specified in .gitignore. 
 From the git-clean man page:

   -x
      Don't use the standard ignore rules read from .gitignore (per
      directory) and $GIT_DIR/info/exclude, but do still use the ignore
      rules given with -e options. This allows removing all untracked
      files, including build products. This can be used (possibly in
      conjunction with git reset) to create a pristine working directory
      to test a clean build.

Bart.

      reply	other threads:[~2019-01-05 21:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-04 21:08 [PATCH] Documentation/CodingStyle: Use directory-local variables for emacs Bart Van Assche
2019-01-04 21:08 ` [PATCH] Documentation/CodingStyle: Move emacs settings into .dir-locals.el Bart Van Assche
2019-01-04 21:11   ` Bart Van Assche
2019-01-04 22:10 ` [PATCH] Documentation/CodingStyle: Use directory-local variables for emacs Federico Vaga
2019-01-04 22:39   ` Bart Van Assche
2019-01-05 19:58     ` Alison Chaiken
2019-01-05 21:04       ` Bart Van Assche [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e8b69c8e-6d70-38b3-7b5d-06cc5b251999@acm.org \
    --to=bvanassche@acm.org \
    --cc=alison@she-devel.com \
    --cc=corbet@lwn.net \
    --cc=federico.vaga@vaga.pv.it \
    --cc=geyslan@gmail.com \
    --cc=joe@perches.com \
    --cc=leo@zh-kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=tiago4orion@gmail.com \
    --cc=willy@infradead.org \
    /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.
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 NNTP newsgroup(s).