From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21484 invoked by alias); 2 Mar 2020 17:34:30 -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 21476 invoked by uid 89); 2 Mar 2020 17:34:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=Given X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (207.211.31.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 02 Mar 2020 17:34:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583170467; 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=cn7ZwQ/Q8fXhzrK89FYr+DYxi+3LA7arktcy2+Ab++A=; b=LXdcTNiEIUHmmLleMDB/FvGWH/sfFK3WoD5/WoeIxHAATO4UZ13pVNPSOV0Kacze1Lv76G RDAdxRTOSpOWfQ6vymt6C2UvIG77k3xfD1F0gEIHajnUKnYR0F4S7onQq0rZ7eN2kAEPws nHWhKtlh4xBt9RElYrb0OkMRIVorIbU= 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-251-5PHBP4XKOd6pDdbQaWyyuw-1; Mon, 02 Mar 2020 12:34:24 -0500 Received: by mail-ed1-f71.google.com with SMTP id n18so122157edo.17 for ; Mon, 02 Mar 2020 09:34:23 -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 oq2sm845429ejb.17.2020.03.02.09.34.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Mar 2020 09:34:21 -0800 (PST) Subject: Re: [PATCHv2] gdbserver: Add .dir-locals.el file To: Andrew Burgess References: <20200302123123.13921-1-andrew.burgess@embecosm.com> <20200302170801.GR3317@embecosm.com> Cc: gdb-patches@sourceware.org, Eli Zaretskii From: Pedro Alves Message-ID: Date: Mon, 02 Mar 2020 17:34: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: <20200302170801.GR3317@embecosm.com> 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/msg00032.txt On 3/2/20 5:08 PM, Andrew Burgess wrote: > * Pedro Alves [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