From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: ELPA package submission: buffer-env Date: Mon, 28 Feb 2022 19:53:54 +0100 Message-ID: <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="14256"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 28 19:54:44 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 1nOlAS-0003UQ-Dn for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Feb 2022 19:54:44 +0100 Original-Received: from localhost ([::1]:56836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOlAR-0003Zm-Ce for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Feb 2022 13:54:43 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOl9o-0002hL-7L for emacs-devel@gnu.org; Mon, 28 Feb 2022 13:54:04 -0500 Original-Received: from [2a00:1450:4864:20::634] (port=39453 helo=mail-ej1-x634.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOl9k-0003wp-CV for emacs-devel@gnu.org; Mon, 28 Feb 2022 13:54:03 -0500 Original-Received: by mail-ej1-x634.google.com with SMTP id dr20so2039212ejc.6 for ; Mon, 28 Feb 2022 10:53:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=2N+4sg7rNuqFNAO1z21r02grdIztGs7z/oFxZGK5GxE=; b=j3/M34cXbw2tDC0lx9+XaMw+8nz9oeALekf4YEgGI4AGrSGilwoyR7gLlQ2Y614KHp UnY4EyhEHiAPQ4vftV/Gm0F+5s9znhp9Dp3UCq1v6jmLpQZY8PM8uZ1uuOWs4N7Lhq61 GkQv88jJKl7+UmZHV5t53Kpfoosb8qTe6AZ88jPRT2IhAxqx4EQyiAf0Wp09InbH/EFK hCTUwmVwVn4E+ceeWXwgbud7V1o2Vx4Ch2NDyuHhGs9HeYcRhkvRicb8OnLD2KaLixax r2uuX+B6oygcxptUe3ktpCZu9XEWSd/oQqqJJQ3rs8eISO6salD6wSj0sZqYLzO9/yFz fo1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=2N+4sg7rNuqFNAO1z21r02grdIztGs7z/oFxZGK5GxE=; b=3au6A4mc3I6fZZZ4cNpcQ8yVjmwqo2cH3Aji4UywVxOZnd521/+XOE8F5yHv7d09Gq trgbtgoPass6eSI2u700yC63riBIWtfUz+LQvRwKJ761b51OK0INZNljh0dReQ1c4RPw Vb49dSV7NZ+RbofBaqH4u4eMiVZhOfeN8Vm5OhhT7AhjAeGQA/FoFR2B7ejOL7AYOiMv DZSEhZiERdExqaOI71jUQ3mvMg4ron0XXOvRigQ5eTRhj/fw2qHqkCfwYdRsyDXuWzdl PJSL9Seft2Kz4juecBBN05qPzGMDvk9xtNYMMliIBYdVibboXfX8UkSTHwf1YYOeTC5p nqoQ== X-Gm-Message-State: AOAM5335sRqSytWfFfpg3M90ln3mtYg/ig+Ba+fmhvRkENH8mMZdU5ou VCXefIj5M3T8PMsVinpFRWLKE0evdDk= X-Google-Smtp-Source: ABdhPJxnQmFnGMzDNr08EgFNRKGW0or9Msj3f1ZzviuobZQ6SlqD4yMaN/ijr+HxdA5CJlnmuLMUTA== X-Received: by 2002:a17:907:3f25:b0:6b0:5e9a:83 with SMTP id hq37-20020a1709073f2500b006b05e9a0083mr16958806ejc.659.1646074438663; Mon, 28 Feb 2022 10:53:58 -0800 (PST) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::758e]) by smtp.gmail.com with ESMTPSA id u19-20020a17090617d300b006cea86ca384sm4486054eje.40.2022.02.28.10.53.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 10:53:57 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::634 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=arstoffel@gmail.com; helo=mail-ej1-x634.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:286733 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. I should also note that this package is a knock-off of the "envrc" package from MELPA [2]. It's surely a fine package but it requires on the direnv program, which to me seems like an unnecessary dependency. [1]: https://lists.gnu.org/archive/html/emacs-devel/2021-04/msg01376.html [2]: https://github.com/purcell/envrc