From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: new elpa packages for ada-mode project related stuff Date: Wed, 16 Jan 2019 20:41:30 -0500 Message-ID: References: <86zhs0o2g0.fsf@stephe-leake.org> <86k1j4nurn.fsf@stephe-leake.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1547689184 25812 195.159.176.226 (17 Jan 2019 01:39:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 17 Jan 2019 01:39:44 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 17 02:39:40 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gjweh-0006YX-E3 for ged-emacs-devel@m.gmane.org; Thu, 17 Jan 2019 02:39:39 +0100 Original-Received: from localhost ([127.0.0.1]:37553 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjwgo-0006Rg-KB for ged-emacs-devel@m.gmane.org; Wed, 16 Jan 2019 20:41:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjwgf-0006RK-R7 for emacs-devel@gnu.org; Wed, 16 Jan 2019 20:41:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjwgf-00024R-6A for emacs-devel@gnu.org; Wed, 16 Jan 2019 20:41:41 -0500 Original-Received: from [195.159.176.226] (port=43667 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gjwge-0001zN-VF for emacs-devel@gnu.org; Wed, 16 Jan 2019 20:41:41 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gjweT-0006Ee-DT for emacs-devel@gnu.org; Thu, 17 Jan 2019 02:39:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:hcjpRyefa4Ea5W52UVpYNJVGJig= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232412 Archived-At: >>> Then defines a project defstruct that declares/undeclares >>> environment variables when it is selected/deselected. >> Shouldn't the right env-var simply be automatically selected based on >> the project of the current buffer? > Depends on the use case. I have several worktrees that are nominally in > several projects; they are utility libraries, so they can be accessed > via any project that uses them, and they also have test suites, so they > have a project of their own. > > There is no way to identify the current client project from a utility > library buffer, so I rely on a global setting. This justifies the need to have a way to set which project to use currently for a library that can belong to several projects, but it doesn't justify making this be a global setting. So maybe I agree with your suggestion, but I object to the way it seems to have a global effect. Stefan