From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63317 invoked by alias); 5 Mar 2020 16:00:25 -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 48767 invoked by uid 89); 5 Mar 2020 16:00:17 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-delivery-1.mimecast.com Received: from us-smtp-2.mimecast.com (HELO us-smtp-delivery-1.mimecast.com) (207.211.31.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Mar 2020 16:00:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583424008; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pmSaSWv9F/u1xxUVw72mQMCU2eM84TQbdlTjmcjCMYw=; b=E+ruumv6iQtlJnD43E+pJu1mItoqPqVJJ3RTlOnz1z3tftspP29hCbCnM/0E5ZQbhcW8Nz xJC1MIzdC3Whfqa5D5eL1rmqsyDPhaBlTheyqSaUPmkk2Toqx2kpJYqThWhvbXrrDWc97T v5kgioK1lX+9TcYuexYeAWDcHk/X3qo= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-45-wXQ0-TIkNI-dHwPPMTXbwQ-1; Thu, 05 Mar 2020 11:00:06 -0500 Received: by mail-ed1-f71.google.com with SMTP id y23so4734289edt.2 for ; Thu, 05 Mar 2020 08:00:06 -0800 (PST) Return-Path: Received: from ?IPv6:2001:8a0:f909:7b00:56ee:75ff:fe8d:232b? ([2001:8a0:f909:7b00:56ee:75ff:fe8d:232b]) by smtp.gmail.com with ESMTPSA id gt14sm1023028ejb.18.2020.03.05.08.00.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Mar 2020 08:00:03 -0800 (PST) Subject: Re: [PATCHv2] gdbserver: Add .dir-locals.el file To: Eli Zaretskii , Andrew Burgess 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> <83imjivn4w.fsf@gnu.org> Cc: gdb-patches@sourceware.org From: Pedro Alves Message-ID: <0751c6bc-3412-a400-8944-797ed5219918@redhat.com> Date: Thu, 05 Mar 2020 16:00:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <83imjivn4w.fsf@gnu.org> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2020-03/txt/msg00118.txt On 3/5/20 3:26 PM, Eli Zaretskii wrote: >> 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. Thanks for exploring this. > >> 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. Yes, let's do that. Thanks, Pedro Alves