[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Allowing symlinked dir-locals files?
From: |
Stefan Monnier |
Subject: |
Re: Allowing symlinked dir-locals files? |
Date: |
Mon, 16 Aug 2021 14:10:33 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Hi Artur,
Yuri D'Elia [2021-08-16 20:01:20] wrote:
> I was trying to share some localized customization by symlinking a
> .dir-locals.el file across directories, but it doesn't seem to work.
>
> Looking at the current files.el:4330, we explicitly check if the file is
> a regular file. And looking at the FIXME comment just above I concur
AFAICT, this `file-regular-p` check (used in addition
to `(not (file-directory-p f))`) was introduced by your:
commit f0b82b34536e6bafbecbd642eee0cb0f534f8647
Author: Artur Malabarba <bruce.connor.am@gmail.com>
Date: Sat Jan 16 08:50:46 2016 +0000
* lisp/files.el (dir-locals--all-files): Use completion instead of
wildcards
(dir-locals-file)
* lisp/files-x.el (modify-dir-local-variable)
* lisp/dos-fns.el (dosified-file-name)
* lisp/help-fns.el (describe-variable): Change accordingly.
Do you remember why added it?
Stefan