Re: [PATCHv2] gdbserver: Add .dir-locals.el file

Pedro Alves
2020-03-02T18:13:01Z

On 3/2/20 5:58 PM, Eli Zaretskii wrote:
>> Cc: gdb-patches@sourceware.org, Eli Zaretskii <eliz@gnu.org>
>> From: Pedro Alves <palves@redhat.com>
>> Date: Mon, 2 Mar 2020 17:34:20 +0000
>>
>>> I'm not aware of a way to import one .dir-locals from another, I did
>>> some searching and couldn't find anything promising.
>>>
>>
>> Let's ask an Emacs maintainer.
>>
>> Eli, what's the best way to handle this?
>
> Put a single file in the parent directory of those 3, I think.

Good point. This would affect all projects in the top level,
though perhaps the file is right for all of them.

OOC, if we wanted to say, source "../gdb/.dir-locals.el" from
a gdbserver/.dir-locals.el file, would it be possible?

I guess a symlink would do too. Except that might not work
as nicely on Windows filesystems.

Thanks,
Pedro Alves