On Fri, 2019-01-04 at 13:18 +0200, Jani Nikula wrote:
> Also, you probably do not wish the file to change when you switch
> branches with different upstream baselines. Or deal with possible emacs
> version dependent changes. I do like having the example in the kernel
> tree, but let the users deal with actually using the file. Placing the
> file at the top level makes it harder for users to have a file of their
> own there. This from an emacs user.

If this patch gets accepted upstream it won't take long before the
.dir-locals.el file ends up in all branches. Additionally, I expect that
the rate of change for this file will be low so I do not except any
inconsistencies between branches.

Regarding emacs versions: this patch has been tested with different emacs
versions. Additionally, the rate of change in emacs' CC mode is slow. Any
backwards incompatible changes in that mode would cause trouble to a very
large number of users so I do not expect radical changes in emacs' CC mode.

Regarding users having their own version of .dir-locals.el: why do you think
anyone would want to do that? Anyway, if anyone wants to replace that file
they can provide a .dir-locals-2.el file. See also
https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html.

Bart.

Reply via email to