guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: guile-emacs: Remove hardcoded version from E


From: guix-commits
Subject: branch master updated: gnu: guile-emacs: Remove hardcoded version from EMACSLOADPATH.
Date: Sun, 08 Dec 2024 07:26:29 -0500

This is an automated email from the git hooks/post-receive script.

janneke pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 0fae91a5ef gnu: guile-emacs: Remove hardcoded version from 
EMACSLOADPATH.
0fae91a5ef is described below

commit 0fae91a5ef6c1d2718ff0f918ac8c71c4ff181e0
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Sun Dec 8 12:51:29 2024 +0100

    gnu: guile-emacs: Remove hardcoded version from EMACSLOADPATH.
    
    After a question by lilyp via IRC.
    
    * gnu/packages/emacs.scm (guile-emacs): Add "upstream-version" to outer let.
    [native-search-paths]: Use that for EMACSLOADPATH and add a comment.
    
    Change-Id: Ie2c222a53a5bd79b1a8a0b8424a90e6e06b77fb9
---
 gnu/packages/emacs.scm | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index e6dd17b510..c32d28b404 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -629,12 +629,13 @@ editor (with wide ints)" )
   (deprecated-package "emacs-next-tree-sitter" emacs-next))
 
 (define-public guile-emacs
-  (let ((commit "8f87cbc1dae6a9e77368afc5736df8c342e9153d")
+  (let ((upstream-version "31.0.50")
+        (commit "8f87cbc1dae6a9e77368afc5736df8c342e9153d")
         (revision "0"))
     (package
       (inherit emacs)
       (name "guile-emacs")
-      (version (git-version "0.0.0" revision commit))
+      (version (git-version upstream-version revision commit))
       (source (origin
                 (method git-fetch)
                 (uri (git-reference
@@ -687,8 +688,10 @@ editor (with wide ints)" )
                     (lambda (port) (display port)))))))))
       (native-search-paths
        (list (search-path-specification
+              ;;guile-emacs needs this non-standard load-path for now
               (variable "EMACSLOADPATH")
-              (files '("share/emacs/31.0.50/lisp")))
+              (files
+               (list (string-append "share/emacs/" upstream-version "/lisp"))))
              (search-path-specification
               (variable "INFOPATH")
               (files '("share/info"))))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]