bug#15253: readline completion for modules

2013-09-03 Thread Arne Babenhauserheide (IMK)
Hi,

It would be very convenient to have readline completion for modules, so
I could just type

,use 

or

,use srfi 

or

(use-modules (

or

(use-modules (srfi 

and get a listing of possible modules.

That would allow staying in the same context while checking for modules
(instead of switching to info or the web).

This could be taken even further by also providing readline support when
using @ (with the pointer in or at the place of every variable marked
with ˇ while hitting tab):

(@ (ˇsrfi ˇsrfi-13) ˇstring-unfold)

This could go to the completeness of the emacs auto-complete, which
allows completing stuff like ˇ-expand and -expand-ˇ. I could
then say “I know that I need the function string-unfold, where can I
find it?” To answer that question I’d use

(@ ( ) string-unfold

and get a list of potential modules to use (or rather options for (@
(category module) string-unfold)).

Best wishes,
Arne
-- 
Doktorand
Gruppe: GHG

Raum: 435/410
Tel.: +49 721 608-22885
arne.babenhauserhe...@kit.edu

Karlsruher Institut für Technologie
IMK-ASF
Postfach 36 40
76021 Karlsruhe


0xA70DA09E.asc
Description: application/pgp-keys
<>

signature.asc
Description: OpenPGP digital signature


bug#15221: provide a mechanism to activate readline systemwide

2013-09-03 Thread Arne Babenhauserheide (IMK)
I am not a lawyer either, but I know that the license of the executable
does not place restrictions on the license of the guile-specific code
(as long as that code is GPL-compatible).

Best wishes,
Arne

Am 30.08.2013 17:49, schrieb Noah Lavine:
> I am not a lawyer, but it seems to me that libguile could be under LGPL,
> but guile the executable could be under GPL, and therefore use readline
> by default.
> 
> As you say, there would have to be an option to turn it off. Maybe
> --no-readline?
> 
> Noah
> 
> 
> On Fri, Aug 30, 2013 at 10:01 AM,  > wrote:
> 
> 
>  "Arne Babenhauserheide (IMK)"  > wrote:
> > Hi,
> >
> > Not having readline at the guile interpreter from the get-go in a GNU
> > environment was a quite scarring experience for me, so it would be
> great
> > to have a way to enable readline by default.
> >
> > init.scm could provide that, but:
> >
> >  it seems to search the load path for init.scm
> >  before loading anything else
> >  tricky though, apparently that happens even before loading
> boot-9
> >
> > Ideally there should be either a compileflag or a systemwide
> config file
> > to enable readline support in the whole system. If it is a
> compile-flag
> > it might be useful to not make it default, because developers why
> > develop proprietary applications could then by accident compile a
> > program with activated readline support.
> >
> > If such a flag existed, most GNU/Linux distributions could simply
> > activate it for guile itself (as long as they do not ship unfree
> scripts
> > using guile which depend on readline support — those scripts would
> > violate the GPL, but they would not work at all without readline
> > support, so this dependency should be pretty clear).
> 
> Sometimes readline gets in the way, for example, when using guile
> with emacs.
> 
> If it was enabled by default, then there also must be an option to
> disable it when not needed.
> 
> The main reason readline is not enabled by default (IIRC), is the
> license differences between readline and guile. (GPL and LGPL)
> 
> -Dale
> 
> 
> 
> 
> 


-- 
Doktorand
Gruppe: GHG

Raum: 435/410
Tel.: +49 721 608-22885
arne.babenhauserhe...@kit.edu

Karlsruher Institut für Technologie
IMK-ASF
Postfach 36 40
76021 Karlsruhe


0xA70DA09E.asc
Description: application/pgp-keys
<>

signature.asc
Description: OpenPGP digital signature