From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: ELPA package submission: buffer-env Date: Mon, 28 Feb 2022 14:40:43 -0500 Message-ID: References: <87sfs2u8jh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5354"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Augusto Stoffel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 28 20:42:33 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nOlui-0001Dz-Ih for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Feb 2022 20:42:32 +0100 Original-Received: from localhost ([::1]:46370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOlub-0003ci-AU for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Feb 2022 14:42:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOlt4-0001Xp-Vx for emacs-devel@gnu.org; Mon, 28 Feb 2022 14:40:51 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:44709) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOlt2-0007z9-Fe for emacs-devel@gnu.org; Mon, 28 Feb 2022 14:40:50 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id DA4D9805CC; Mon, 28 Feb 2022 14:40:45 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 916D3803F2; Mon, 28 Feb 2022 14:40:44 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1646077244; bh=qtJibl9RcLBTydaYU9jY+ugfLF3GMw25DVkLET9rwps=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=QL9qEROfuFtELJgMzdiruMavjcIVCv6F1dZdfT9Vaa/j2a2+GmmGOM7ZEwCf/0+Jw JpOB0XaRhAprVYcjYTepFKMnLy4spYYxdPRW5P9nl+8+MlQGqxq4di0JMRrAZuioYZ FiqhR6YAnU1FwIJlxyUP6b/j+PlTBcc++LrwyflncVtTkUG8qqzl5XAG7tKwEue7q5 ieqxwOEpzHpfgxvH4vwYw6bqr5lHV7JNQpaiff6sFutzLox1Pp9sQyqtSGAuIEglTA HGcSssmTW/0EJzfvmmWQ5CHZwahlebZ352kgVGcUOu/xnAySInexOjVgswiFnRskao XTybaZtN5AjwA== Original-Received: from ceviche (unknown [45.72.208.76]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 629BD120DF5; Mon, 28 Feb 2022 14:40:44 -0500 (EST) In-Reply-To: <87sfs2u8jh.fsf@gmail.com> (Augusto Stoffel's message of "Mon, 28 Feb 2022 19:53:54 +0100") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:286735 Archived-At: > I would like to propose the following package for inclusion in ELPA: > > https://github.com/astoff/buffer-env > > The immediate purpose of the package (for me) is to deal with Python > virtualenvs. But it should be useful when working on any project with > dependencies that are not globally installed. > > Some time ago I started a thread on this list explaining why I thought > Emacs should have better support for setting the process environment per > project / buffer locally [1]. But it's not clear there's a case for a > built-in facility; and while this package is not extremely beautiful it > solves the matter satisfactorily. So after quite some incubation time I > decided it's worth sharing. That sounds useful (and I think we should improve Emacs's core to better support such features; we already have some ad-hoc frame-local-environment support and it would be good to make that less ad-hoc). The default value for `buffer-env-command` is a gaping security hole, tho. Any hope we can make this a bit less dangerous? Stefan