emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Allowing symlinked dir-locals files?


From: Yuri D'Elia
Subject: Allowing symlinked dir-locals files?
Date: Mon, 16 Aug 2021 20:01:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hi everyone,

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
that checking just for file-directory-p should be sufficient for proper
behavior.

However I suspect that the rationale was to be proper as well as "safe",
as this could be used to make emacs read/interpret another file if the
symlink is under the control of a VCS or via a shared-filesystem.

I wonder if that's all we can really do?

I currently hardlinked the files and bypassed the problem. I can think a
couple of alternative solutions, however I have a series of projects
that share indentation/editor settings and I've found that using such
setup makes it more discoverable.

Thoughts?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]