unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#43236] [PATCH emacs-guix] elisp: guix-set-emacs-environment: Also update Emacs' path.
@ 2020-09-06  8:46 Jan (janneke) Nieuwenhuizen
  2023-01-16 18:03 ` Maxim Cournoyer
  0 siblings, 1 reply; 4+ messages in thread
From: Jan (janneke) Nieuwenhuizen @ 2020-09-06  8:46 UTC (permalink / raw)
  To: 43236, alezost

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@gmail.com>
-;; Copyright © 2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
+;; Copyright © 2018,2020 Jan (janneke) Nieuwenhuizen <janneke@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 ":")))))))
 
 \f
 ;;; Executing guix commands
-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#43236] [PATCH emacs-guix] elisp: guix-set-emacs-environment: Also update Emacs' path.
  2020-09-06  8:46 [bug#43236] [PATCH emacs-guix] elisp: guix-set-emacs-environment: Also update Emacs' path Jan (janneke) Nieuwenhuizen
@ 2023-01-16 18:03 ` Maxim Cournoyer
  2023-01-16 21:33   ` bug#43236: " Janneke Nieuwenhuizen
  0 siblings, 1 reply; 4+ messages in thread
From: Maxim Cournoyer @ 2023-01-16 18:03 UTC (permalink / raw)
  To: Jan (janneke) Nieuwenhuizen; +Cc: alezost, 43236

Hi Janneke,

"Jan (janneke) Nieuwenhuizen" <janneke@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@gmail.com>
> -;; Copyright © 2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
> +;; Copyright © 2018,2020 Jan (janneke) Nieuwenhuizen <janneke@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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#43236: [PATCH emacs-guix] elisp: guix-set-emacs-environment: Also update Emacs' path.
  2023-01-16 18:03 ` Maxim Cournoyer
@ 2023-01-16 21:33   ` Janneke Nieuwenhuizen
  2023-01-17  1:46     ` [bug#43236] " Maxim Cournoyer
  0 siblings, 1 reply; 4+ messages in thread
From: Janneke Nieuwenhuizen @ 2023-01-16 21:33 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: alezost, 43236-done

Maxim Cournoyer writes:

Hi Maxim,

> "Jan (janneke) Nieuwenhuizen" <janneke@gnu.org> writes:
>
>> This helps Geiser find the correct (environment's) Guile.
>> -;; Copyright © 2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
>> +;; Copyright © 2018,2020 Jan (janneke) Nieuwenhuizen <janneke@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@gnu.org>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#43236] [PATCH emacs-guix] elisp: guix-set-emacs-environment: Also update Emacs' path.
  2023-01-16 21:33   ` bug#43236: " Janneke Nieuwenhuizen
@ 2023-01-17  1:46     ` Maxim Cournoyer
  0 siblings, 0 replies; 4+ messages in thread
From: Maxim Cournoyer @ 2023-01-17  1:46 UTC (permalink / raw)
  To: Janneke Nieuwenhuizen; +Cc: alezost, 43236-done

Hi Janneke,

Janneke Nieuwenhuizen <janneke@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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-01-17  1:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-06  8:46 [bug#43236] [PATCH emacs-guix] elisp: guix-set-emacs-environment: Also update Emacs' path Jan (janneke) Nieuwenhuizen
2023-01-16 18:03 ` Maxim Cournoyer
2023-01-16 21:33   ` bug#43236: " Janneke Nieuwenhuizen
2023-01-17  1:46     ` [bug#43236] " Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).