bug#28837: Guile 2.2.2: Loading srfi-1 with merge-generics breaks "map"

2017-10-14 Thread Andrew Erlanger

Re-creation:

1. Make a directory (I call it 'mytest')

2. In the directory, make a file f.scm containing:

(define-module (mytest f)
  #:use-module (oop goops)
  #:use-module (srfi srfi-1)
  #:duplicates (merge-generics))

3. In the directory, make a file test.scm containing:

(add-to-load-path (dirname (getcwd)))

(use-modules (mytest f))

4. Navigate to the directory in a terminal, and start the Guile REPL.

5. In the REPL, enter the two following commands:

(load "test.scm")

,in (mytest f) map

The last command returns:

While executing meta-command:
ERROR: Unbound variable: map

That is, the 'map' primitive becomes unbound in the context of (mytest
f). Any procedures which both
(a) relying on map, and
(b) are defined and exported in (mytest f),
throw the above error as well.

Please let me know if I can clarify.

- Andrew





bug#28835: [PATCH] Re: bug#28835: guild help refers to non-existing info node

2017-10-14 Thread Maxim Cournoyer
Maxim Cournoyer  writes:

> While attempting to learn what I could do with guild, I stumbled on the 
> following:
>
> guild help
> Usage: guild COMMAND [ARGS]
> Run command-line scripts provided by GNU Guile and related programs.
>
> [...]
>
> Report guild bugs to bug-guile@gnu.org
> GNU Guile home page: 
> General help using GNU software: 
> For complete documentation, run: info guile 'Using Guile Tools'
>
> Running 'info guile 'Using Guile Tools' brings us to the top of the
> Guile Reference Manual with the following warning in the mini-buffer:
>
> No menu item 'Using Guile Tools' in node '(guile.info.gz)Top'.
>

Apparently, there *is* a node 'Using Guile Tools', but its reference
in the help should read as

info '(guile)Using Guile Tools'

instead of

info guile 'Using Guile Tools'

Patch attached.

Maxim
>From b5613324a15a3f9b64d32d30cd58ba5bea688016 Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer 
Date: Sat, 14 Oct 2017 12:16:54 -0400
Subject: [PATCH] scripts: help: Fix reference to the "Using Guile Tools" node.

Fixes bug#28835.

* module/scripts/help.scm (list-commands): Fix reference to the "Using
Guile Tools" node.
---
 module/scripts/help.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/module/scripts/help.scm b/module/scripts/help.scm
index 4e0f47c32..34400db3a 100644
--- a/module/scripts/help.scm
+++ b/module/scripts/help.scm
@@ -115,7 +115,7 @@ For help on a specific command, try \"guild help COMMAND\".
 Report guild bugs to ~a
 GNU Guile home page: 
 General help using GNU software: 
-For complete documentation, run: info guile 'Using Guile Tools'
+For complete documentation, run: info '(guile)Using Guile Tools'
 " %guile-bug-report-address))
 
 (define (module-commentary mod)
-- 
2.14.1



bug#28835: guild help refers to non-existing info node

2017-10-14 Thread Maxim Cournoyer
While attempting to learn what I could do with guild, I stumbled on the 
following:

guild help
Usage: guild COMMAND [ARGS]
Run command-line scripts provided by GNU Guile and related programs.

[...]

Report guild bugs to bug-guile@gnu.org
GNU Guile home page: 
General help using GNU software: 
For complete documentation, run: info guile 'Using Guile Tools'

Running 'info guile 'Using Guile Tools' brings us to the top of the
Guile Reference Manual with the following warning in the mini-buffer:

--8<---cut here---start->8---
No menu item 'Using Guile Tools' in node '(guile.info.gz)Top'.
--8<---cut here---end--->8---

Maxim