GNU bug report logs -
#43236
[PATCH emacs-guix] elisp: guix-set-emacs-environment: Also update Emacs' path.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43236 in the body.
You can then email your comments to 43236 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#43236
; Package
guix-patches
.
(Sun, 06 Sep 2020 08:48:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Jan (janneke) Nieuwenhuizen" <janneke <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sun, 06 Sep 2020 08:48:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This helps Geiser find the correct (environment's) Guile.
* elisp/guix-misc.el (guix-set-emacs-environment): Set "exec-path"
when setting "PATH" variable.
---
elisp/guix-misc.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/elisp/guix-misc.el b/elisp/guix-misc.el
index 6f79fe6..7e9c068 100644
--- a/elisp/guix-misc.el
+++ b/elisp/guix-misc.el
@@ -1,7 +1,7 @@
;;; guix-misc.el --- Miscellaneous definitions -*- lexical-binding: t -*-
;; Copyright © 2014–2018 Alex Kost <alezost <at> gmail.com>
-;; Copyright © 2018 Jan (janneke) Nieuwenhuizen <janneke <at> gnu.org>
+;; Copyright © 2018,2020 Jan (janneke) Nieuwenhuizen <janneke <at> gnu.org>
;; This file is part of Emacs-Guix.
@@ -242,7 +242,9 @@ If PROFILE is nil, use `guix-current-profile'."
(value (if (and separator current-value)
(concat path separator current-value)
path)))
- (setenv variable value)))))
+ (setenv variable value)
+ (when (equalp variable "PATH")
+ (setq exec-path (split-string value ":")))))))
;;; Executing guix commands
--
Jan Nieuwenhuizen <janneke <at> gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com
Information forwarded
to
guix-patches <at> gnu.org
:
bug#43236
; Package
guix-patches
.
(Mon, 16 Jan 2023 18:04:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 43236 <at> debbugs.gnu.org (full text, mbox):
Hi Janneke,
"Jan (janneke) Nieuwenhuizen" <janneke <at> gnu.org> writes:
> This helps Geiser find the correct (environment's) Guile.
>
> * elisp/guix-misc.el (guix-set-emacs-environment): Set "exec-path"
> when setting "PATH" variable.
> ---
> elisp/guix-misc.el | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/elisp/guix-misc.el b/elisp/guix-misc.el
> index 6f79fe6..7e9c068 100644
> --- a/elisp/guix-misc.el
> +++ b/elisp/guix-misc.el
> @@ -1,7 +1,7 @@
> ;;; guix-misc.el --- Miscellaneous definitions -*- lexical-binding: t -*-
>
> ;; Copyright © 2014–2018 Alex Kost <alezost <at> gmail.com>
> -;; Copyright © 2018 Jan (janneke) Nieuwenhuizen <janneke <at> gnu.org>
> +;; Copyright © 2018,2020 Jan (janneke) Nieuwenhuizen <janneke <at> gnu.org>
There's no use for a copyright line here as the change is not
substantial enough (< 10 lines).
> ;; This file is part of Emacs-Guix.
>
> @@ -242,7 +242,9 @@ If PROFILE is nil, use `guix-current-profile'."
> (value (if (and separator current-value)
> (concat path separator current-value)
> path)))
> - (setenv variable value)))))
> + (setenv variable value)
> + (when (equalp variable "PATH")
> + (setq exec-path (split-string value ":")))))))
That's still useful with Emacs 28, right? If you can confirm it, LGTM.
--
Thanks,
Maxim
Reply sent
to
Janneke Nieuwenhuizen <janneke <at> gnu.org>
:
You have taken responsibility.
(Mon, 16 Jan 2023 21:34:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Jan (janneke) Nieuwenhuizen" <janneke <at> gnu.org>
:
bug acknowledged by developer.
(Mon, 16 Jan 2023 21:34:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 43236-done <at> debbugs.gnu.org (full text, mbox):
Maxim Cournoyer writes:
Hi Maxim,
> "Jan (janneke) Nieuwenhuizen" <janneke <at> gnu.org> writes:
>
>> This helps Geiser find the correct (environment's) Guile.
>> -;; Copyright © 2018 Jan (janneke) Nieuwenhuizen <janneke <at> gnu.org>
>> +;; Copyright © 2018,2020 Jan (janneke) Nieuwenhuizen <janneke <at> gnu.org>
>
> There's no use for a copyright line here as the change is not
> substantial enough (< 10 lines).
Ah...I guess I figured that we need copyright years to be updated in all
years the program is "released". Oh well...
>> + (when (equalp variable "PATH")
>> + (setq exec-path (split-string value ":")))))))
>
> That's still useful with Emacs 28, right? If you can confirm it, LGTM.
It's still useful...but also...I found this has already been installed
as
commit d246b2c443bbb9d49575b63bb78c14699c4448cf
elisp/misc: Update Emacs path if needed
and
41fba4eec845e050be92bfe76c0f7980bbe821bd
Fix the previous commit
Sorry for the noise...Closing.
Greetings,
Janneke
--
Janneke Nieuwenhuizen <janneke <at> gnu.org> | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com
Information forwarded
to
guix-patches <at> gnu.org
:
bug#43236
; Package
guix-patches
.
(Tue, 17 Jan 2023 01:48:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 43236-done <at> debbugs.gnu.org (full text, mbox):
Hi Janneke,
Janneke Nieuwenhuizen <janneke <at> gnu.org> writes:
[...]
> It's still useful...but also...I found this has already been installed
> as
>
> commit d246b2c443bbb9d49575b63bb78c14699c4448cf
> elisp/misc: Update Emacs path if needed
>
> and
>
> 41fba4eec845e050be92bfe76c0f7980bbe821bd
> Fix the previous commit
>
> Sorry for the noise...Closing.
I see! Thanks for your reply and closing it!
--
Thanks,
Maxim
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 14 Feb 2023 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 71 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.