GNU bug report logs -
#27845
[PATCH] gnu: emacs: Check GUIX_ENVIRONMENT when autoloading packages
Previous Next
Reported by: Kyle Meyer <kyle <at> kyleam.com>
Date: Thu, 27 Jul 2017 05:02:01 UTC
Severity: normal
Tags: patch
Done: Alex Kost <alezost <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 27845 in the body.
You can then email your comments to 27845 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#27845
; Package
guix-patches
.
(Thu, 27 Jul 2017 05:02:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Kyle Meyer <kyle <at> kyleam.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 27 Jul 2017 05:02:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Check the environment profile so that we autoload packages that are given as
arguments to "guix environment" but are not in the system or user profile.
Note that the union of Emacs packages in the system, user, and environment
profiles will be autoloaded even when --pure was passed to "guix environment",
because it's not clear how to detect that --pure was given.
* gnu/packages/aux-files/emacs/guix-emacs.el (guix-emacs-autoload-packages):
Add Emacs packages from GUIX_ENVIRONMENT profile.
---
Follow-up to https://lists.gnu.org/archive/html/guix-devel/2017-07/msg00378.html
gnu/packages/aux-files/emacs/guix-emacs.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/aux-files/emacs/guix-emacs.el b/gnu/packages/aux-files/emacs/guix-emacs.el
index 2bbd639ff..10bad0272 100644
--- a/gnu/packages/aux-files/emacs/guix-emacs.el
+++ b/gnu/packages/aux-files/emacs/guix-emacs.el
@@ -87,9 +87,11 @@ (defun guix-emacs-autoload-packages (&rest profiles)
(interactive (list (if (fboundp 'guix-read-package-profile)
(funcall 'guix-read-package-profile)
guix-user-profile)))
- (let ((profiles (or profiles
- (list "/run/current-system/profile"
- guix-user-profile))))
+ (let* ((env (getenv "GUIX_ENVIRONMENT"))
+ (profiles (or profiles
+ (append (list "/run/current-system/profile"
+ guix-user-profile)
+ (and env (list env))))))
(dolist (profile profiles)
(let ((dirs (guix-emacs-directories profile)))
(when dirs
--
2.13.3
Reply sent
to
Alex Kost <alezost <at> gmail.com>
:
You have taken responsibility.
(Sat, 29 Jul 2017 20:26:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Kyle Meyer <kyle <at> kyleam.com>
:
bug acknowledged by developer.
(Sat, 29 Jul 2017 20:26:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 27845-done <at> debbugs.gnu.org (full text, mbox):
Kyle Meyer (2017-07-27 01:01 -0400) wrote:
> Check the environment profile so that we autoload packages that are given as
> arguments to "guix environment" but are not in the system or user profile.
> Note that the union of Emacs packages in the system, user, and environment
> profiles will be autoloaded even when --pure was passed to "guix environment",
> because it's not clear how to detect that --pure was given.
>
> * gnu/packages/aux-files/emacs/guix-emacs.el (guix-emacs-autoload-packages):
> Add Emacs packages from GUIX_ENVIRONMENT profile.
Great! Applied as commit 24b115dff, thank you!
--
Alex
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 27 Aug 2017 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 357 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.