From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1075 invoked by alias); 2 Mar 2020 18:13:01 -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 1063 invoked by uid 89); 2 Mar 2020 18:13:01 -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) (205.139.110.61) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 02 Mar 2020 18:13:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583172778; 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=QWSbxMXyVrPIjC/EtU1PIQ1/nhm959/VBN433yrjf9Q=; b=IY6PAI+0FyqpWQYv5Mmb3R7BwQnXju6gFeyUrEMB9PyizkbehAMDZ7H3onUov49mAVM8bV W60W+HRvegEf7uzUMqn+qU+r2n7Ez8IwSAfzWM+snznDLhx2lEJo6wtnPfj+mB0PB8YisF dwZcMxPnJsoRDeUXsNZ7atpYecYd0wU= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-416-_z5XQiI8NaqxkyqpRTP2qA-1; Mon, 02 Mar 2020 13:12:57 -0500 Received: by mail-ed1-f72.google.com with SMTP id n12so207796edq.13 for ; Mon, 02 Mar 2020 10:12:57 -0800 (PST) Return-Path: Received: from ?IPv6:2001:8a0:f909:7b00:21e8:4cd6:8ec1:f387? ([2001:8a0:f909:7b00:21e8:4cd6:8ec1:f387]) by smtp.gmail.com with ESMTPSA id n5sm918260eda.74.2020.03.02.10.12.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Mar 2020 10:12:55 -0800 (PST) Subject: Re: [PATCHv2] gdbserver: Add .dir-locals.el file To: Eli Zaretskii References: <20200302123123.13921-1-andrew.burgess@embecosm.com> <20200302170801.GR3317@embecosm.com> <83k142y6za.fsf@gnu.org> Cc: andrew.burgess@embecosm.com, gdb-patches@sourceware.org From: Pedro Alves Message-ID: <752d5ea0-4c7b-ca63-e1f3-b03364c53a7f@redhat.com> Date: Mon, 02 Mar 2020 18:13: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: <83k142y6za.fsf@gnu.org> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2020-03/txt/msg00035.txt On 3/2/20 5:58 PM, Eli Zaretskii wrote: >> Cc: gdb-patches@sourceware.org, Eli Zaretskii >> From: Pedro Alves >> 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