unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "André A. Gomes" <andremegafone@gmail.com>
To: 50045@debbugs.gnu.org
Subject: [bug#50045] [André A. Gomes] [PATCH] Documentation fix
Date: Fri, 13 Aug 2021 17:02:48 +0300	[thread overview]
Message-ID: <874kbtigs7.fsf@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]

Hi Guix,

I noticed that unless geiser-guile-load-path is given an absolute path,
emacs-guix doesn't work properly.

Here's a recipe to see it failing:

Write a file, say test-emacs.el:

--8<---------------cut here---------------start------------->8---
(with-eval-after-load 'geiser-guile
  (add-to-list 'geiser-guile-load-path "~/src/guix"))
--8<---------------cut here---------------end--------------->8---

$ emacs -q -l /path/to/test-emacs.el

M-x guix p n

--8<---------------cut here---------------start------------->8---
Starting Guix REPL ... [5 times]
guix-geiser-eval: Error in evaluating guile expression: ice-9/boot-9.scm:1685:16: In procedure raise-exception:
error: package-names*: unbound variable

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(emacs-guix) [1]>
--8<---------------cut here---------------end--------------->8---

The attached patch fixes the code snippet in the documentation, thus
preventing others from stumbling on it.

Thank you.


--
André A. Gomes
"Free Thought, Free World"

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-doc-Fix-code-snippet.patch --]
[-- Type: text/x-patch, Size: 922 bytes --]

From 5c402baa846f1a3bb330b4430c0dd2ae4c0da944 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20A=2E=20Gomes?= <andremegafone@gmail.com>
Date: Fri, 13 Aug 2021 16:22:13 +0300
Subject: [PATCH] doc: Fix code snippet.

* doc/contributing.texi (Contributing The Perfect Setup): Use absolute paths.
---
 doc/contributing.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/contributing.texi b/doc/contributing.texi
index d1b77d7d05..23e11d6408 100644
--- a/doc/contributing.texi
+++ b/doc/contributing.texi
@@ -256,7 +256,7 @@ that it finds source files from your checkout:
 @lisp
 ;; @r{Assuming the Guix checkout is in ~/src/guix.}
 (with-eval-after-load 'geiser-guile
-  (add-to-list 'geiser-guile-load-path "~/src/guix"))
+  (add-to-list 'geiser-guile-load-path (expand-file-name "~/src/guix")))
 @end lisp

 To actually edit the code, Emacs already has a neat Scheme mode.  But in
--
2.32.0



             reply	other threads:[~2021-08-13 14:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-13 14:02 André A. Gomes [this message]
2022-01-15 22:04 ` [bug#50045] [André A. Gomes] [PATCH] Documentation fix Nicolas Goaziou
2022-01-21 19:06   ` André A. Gomes
2022-01-21 20:41     ` Nicolas Goaziou
2022-02-11 19:36       ` André A. Gomes
2023-11-02  9:45 ` bug#50045: Update André A. Gomes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874kbtigs7.fsf@gmail.com \
    --to=andremegafone@gmail.com \
    --cc=50045@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).