From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 62178 invoked by alias); 5 Mar 2020 15:26:45 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 62168 invoked by uid 89); 5 Mar 2020 15:26:45 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (209.51.188.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Mar 2020 15:26:43 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j9sOX-0008Go-SL; Thu, 05 Mar 2020 10:26:41 -0500 Received: from [176.228.60.248] (port=2479 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j9sOV-0004ib-SY; Thu, 05 Mar 2020 10:26:40 -0500 Date: Thu, 05 Mar 2020 15:26:00 -0000 Message-Id: <83imjivn4w.fsf@gnu.org> From: Eli Zaretskii To: Andrew Burgess Cc: palves@redhat.com, gdb-patches@sourceware.org In-Reply-To: <20200305151232.GB3317@embecosm.com> (message from Andrew Burgess on Thu, 5 Mar 2020 15:12:32 +0000) Subject: Re: [PATCHv2] gdbserver: Add .dir-locals.el file References: <20200302123123.13921-1-andrew.burgess@embecosm.com> <20200302170801.GR3317@embecosm.com> <83k142y6za.fsf@gnu.org> <752d5ea0-4c7b-ca63-e1f3-b03364c53a7f@redhat.com> <83imjmy37t.fsf@gnu.org> <20200305151232.GB3317@embecosm.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-IsSubscribed: yes X-SW-Source: 2020-03/txt/msg00117.txt > Date: Thu, 5 Mar 2020 15:12:32 +0000 > From: Andrew Burgess > Cc: Pedro Alves , gdb-patches@sourceware.org > > > > > 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. > > > > You can arrange for the settings to affect only some of the > > subdirectories, the Emacs manual shows an example of that. > > I took a look at the examples, and, if I understand correctly I would > need to do something like: Yes, I think this is correct. > Given how rarely the .dir-locals files change, my instinct is to just > add two new copies, and possibly ensure that all three versions of the > file have a big comment saying "remember to update the other versions > of this file located in ......". I'm okay with that as well, if people prefer it.