This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCHv2] gdbserver: Add .dir-locals.el file
On 3/2/20 5:08 PM, Andrew Burgess wrote:
> * Pedro Alves <palves@redhat.com> [2020-03-02 14:06:46 +0000]:
>
>> On 3/2/20 12:31 PM, Andrew Burgess wrote:
>>> Baris,
>>>
>>> Good spot on the *.h files, I hadn't considered them. I did look
>>> breifly at how I might change the mode only for *.h files, but
>>> couldn't see anything obvious, and as we don't currently have any *.c
>>> files I just restored the c-mode to c++-mode setting.
>>>
>>> Thanks,
>>> Andrew
>>>
>>>
>>> ---
>>>
>>> Copy the .dir-locls.el file from gdb/ to gdbserver/ so that we get the
>>> GNU style when editing these files in Emacs.
>>
>> I think we want this in gdbsupport/ as well?
>>
>> Since this is now just a plain copy with no modifications, can't we
>> source the original file instead of copying it?
>
> 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?
> Given that would you accept 3 copies of the file?
Thanks,
Pedro Alves