emacs: Expand 'guix-load-path'.
authorAlex Kost <alezost@gmail.com>
Sun, 22 Nov 2015 20:36:39 +0000 (23:36 +0300)
committerAlex Kost <alezost@gmail.com>
Mon, 23 Nov 2015 08:33:55 +0000 (11:33 +0300)
Reported by Mathieu Lirzin <mthl@gnu.org> at
<http://lists.gnu.org/archive/html/guix-devel/2015-11/msg00585.html>.

* emacs/guix-backend.el (guix-start-repl): Expand 'guix-load-path' to
  avoid a potentially relative directory name in Guile %load-path.

emacs/guix-backend.el

index e7c158b..82383e4 100644 (file)
@@ -202,7 +202,7 @@ this address (it should be defined by
   ;; A mix of the code from `geiser-repl--start-repl' and
   ;; `geiser-repl--to-repl-buffer'.
   (let ((impl 'guile)
-        (geiser-guile-load-path (cons guix-load-path
+        (geiser-guile-load-path (cons (expand-file-name guix-load-path)
                                       geiser-guile-load-path))
         (geiser-repl-startup-time guix-repl-startup-time))
     (with-current-buffer buffer