From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6223 invoked by alias); 2 Mar 2020 19:19:29 -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 6210 invoked by uid 89); 2 Mar 2020 19:19:28 -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=tricky, simplicity 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; Mon, 02 Mar 2020 19:19:27 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j8qb5-00023v-FQ; Mon, 02 Mar 2020 14:19:23 -0500 Received: from [176.228.60.248] (port=3024 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j8qb4-00011l-Sy; Mon, 02 Mar 2020 14:19:23 -0500 Date: Mon, 02 Mar 2020 19:19:00 -0000 Message-Id: <83imjmy37t.fsf@gnu.org> From: Eli Zaretskii To: Pedro Alves Cc: andrew.burgess@embecosm.com, gdb-patches@sourceware.org In-Reply-To: <752d5ea0-4c7b-ca63-e1f3-b03364c53a7f@redhat.com> (message from Pedro Alves on Mon, 2 Mar 2020 18:12:53 +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> 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/msg00040.txt > Cc: andrew.burgess@embecosm.com, gdb-patches@sourceware.org > From: Pedro Alves > Date: Mon, 2 Mar 2020 18:12:53 +0000 > > > 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. > OOC, if we wanted to say, source "../gdb/.dir-locals.el" from > a gdbserver/.dir-locals.el file, would it be possible? .dir-locals.el supports 'eval' forms, so you could in principle do anything there. But my advice is to stick to simplicity, for reasons of speed of visiting files, if nothing else. Also, maintaining such a tricky file would need an Emacs expert, something that is not guaranteed (although currently we have several on board). > I guess a symlink would do too. Except that might not work > as nicely on Windows filesystems. IME, symlinks in versioned directories are a PITA.