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

Andrew Burgess
2020-03-02T17:08:07Z

* 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.

Given that would you accept 3 copies of the file?

Thanks,
Andrew