GNU bug report logs - #15221
provide a mechanism to activate readline systemwide

Previous Next

Package: guile;

Reported by: arne.babenhauserheide <at> kit.edu

Date: Fri, 30 Aug 2013 13:05:01 UTC

Severity: wishlist

To reply to this bug, email your comments to 15221 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#15221; Package guile. (Fri, 30 Aug 2013 13:05:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to arne.babenhauserheide <at> kit.edu:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Fri, 30 Aug 2013 13:05:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Arne Babenhauserheide (IMK)" <arne.babenhauserheide <at> kit.edu>
To: "bug-guile <at> gnu.org" <bug-guile <at> gnu.org>
Subject: provide a mechanism to activate readline systemwide
Date: Fri, 30 Aug 2013 15:04:25 +0200
[Message part 1 (text/plain, inline)]
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:

<wingo> it seems to search the load path for init.scm
<wingo> before loading anything else
<wingo> 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).

Best wishes,
Arne
-- 
Doktorand
Gruppe: GHG

Raum: 435/410
Tel.: +49 721 608-22885
arne.babenhauserheide <at> kit.edu

Karlsruher Institut für Technologie
IMK-ASF
Postfach 36 40
76021 Karlsruhe
[0xA70DA09E.asc (application/pgp-keys, attachment)]
[arne_babenhauserheide.vcf (text/x-vcard, attachment)]
[signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-guile <at> gnu.org:
bug#15221; Package guile. (Fri, 30 Aug 2013 14:02:02 GMT) Full text and rfc822 format available.

Message #8 received at 15221 <at> debbugs.gnu.org (full text, mbox):

From: <dsmich <at> roadrunner.com>
To: 15221 <at> debbugs.gnu.org, arne.babenhauserheide <at> kit.edu
Subject: Re: bug#15221: provide a mechanism to activate readline systemwide
Date: Fri, 30 Aug 2013 10:01:23 -0400
---- "Arne Babenhauserheide (IMK)" <arne.babenhauserheide <at> kit.edu> 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:
> 
> <wingo> it seems to search the load path for init.scm
> <wingo> before loading anything else
> <wingo> 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





Information forwarded to bug-guile <at> gnu.org:
bug#15221; Package guile. (Fri, 30 Aug 2013 15:50:01 GMT) Full text and rfc822 format available.

Message #11 received at 15221 <at> debbugs.gnu.org (full text, mbox):

From: Noah Lavine <noah.b.lavine <at> gmail.com>
To: dsmich <at> roadrunner.com
Cc: 15221 <at> debbugs.gnu.org, arne.babenhauserheide <at> kit.edu
Subject: Re: bug#15221: provide a mechanism to activate readline systemwide
Date: Fri, 30 Aug 2013 11:49:21 -0400
[Message part 1 (text/plain, inline)]
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, <dsmich <at> roadrunner.com> wrote:

>
> ---- "Arne Babenhauserheide (IMK)" <arne.babenhauserheide <at> kit.edu> 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:
> >
> > <wingo> it seems to search the load path for init.scm
> > <wingo> before loading anything else
> > <wingo> 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
>
>
>
>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-guile <at> gnu.org:
bug#15221; Package guile. (Tue, 03 Sep 2013 08:54:03 GMT) Full text and rfc822 format available.

Message #14 received at 15221 <at> debbugs.gnu.org (full text, mbox):

From: "Arne Babenhauserheide (IMK)" <arne.babenhauserheide <at> kit.edu>
To: Noah Lavine <noah.b.lavine <at> gmail.com>
Cc: "15221 <at> debbugs.gnu.org" <15221 <at> debbugs.gnu.org>,
 "dsmich <at> roadrunner.com" <dsmich <at> roadrunner.com>
Subject: Re: bug#15221: provide a mechanism to activate readline systemwide
Date: Tue, 3 Sep 2013 10:52:42 +0200
[Message part 1 (text/plain, inline)]
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, <dsmich <at> roadrunner.com
> <mailto:dsmich <at> roadrunner.com>> wrote:
> 
> 
>     ---- "Arne Babenhauserheide (IMK)" <arne.babenhauserheide <at> kit.edu
>     <mailto:arne.babenhauserheide <at> kit.edu>> 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:
>     >
>     > <wingo> it seems to search the load path for init.scm
>     > <wingo> before loading anything else
>     > <wingo> 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.babenhauserheide <at> kit.edu

Karlsruher Institut für Technologie
IMK-ASF
Postfach 36 40
76021 Karlsruhe
[0xA70DA09E.asc (application/pgp-keys, attachment)]
[arne_babenhauserheide.vcf (text/x-vcard, attachment)]
[signature.asc (application/pgp-signature, attachment)]

Severity set to 'wishlist' from 'normal' Request was from Mark H Weaver <mhw <at> netris.org> to control <at> debbugs.gnu.org. (Fri, 13 Sep 2013 03:55:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-guile <at> gnu.org:
bug#15221; Package guile. (Fri, 07 Sep 2018 18:23:01 GMT) Full text and rfc822 format available.

Message #19 received at 15221 <at> debbugs.gnu.org (full text, mbox):

From: Tom Tromey <tom <at> tromey.com>
To: 15221 <at> debbugs.gnu.org
Subject: reiterating the request
Date: Fri, 07 Sep 2018 12:22:37 -0600
Hi.  I tried guile today and was surprised to find that it doesn't use
readline by default.  I think this would be a big improvement to the
REPL.

Second best would be a command line option, or editing some config file.

Tom




Information forwarded to bug-guile <at> gnu.org:
bug#15221; Package guile. (Fri, 07 Sep 2018 20:35:02 GMT) Full text and rfc822 format available.

Message #22 received at 15221 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: Tom Tromey <tom <at> tromey.com>
Cc: 15221 <at> debbugs.gnu.org
Subject: Re: bug#15221: reiterating the request
Date: Fri, 07 Sep 2018 16:32:40 -0400
Hi Tom,

Tom Tromey <tom <at> tromey.com> writes:
> Hi.  I tried guile today and was surprised to find that it doesn't use
> readline by default.  I think this would be a big improvement to the
> REPL.
>
> Second best would be a command line option, or editing some config file.

You can enable it by adding the following two lines to your ~/.guile:

  (use-modules (ice-9 readline))
  (activate-readline)

See <https://www.gnu.org/software/guile/manual/html_node/Readline.html>.

I'm sympathetic to the desire to enable it by default, but I'm not sure
how to navigate the license issue, namely that GNU Readline is
GPL-licensed, whereas Guile is LGPL-licensed.

     Regards,
       Mark




Information forwarded to bug-guile <at> gnu.org:
bug#15221; Package guile. (Fri, 07 Sep 2018 23:12:02 GMT) Full text and rfc822 format available.

Message #25 received at 15221 <at> debbugs.gnu.org (full text, mbox):

From: Tom Tromey <tom <at> tromey.com>
To: Mark H Weaver <mhw <at> netris.org>
Cc: 15221 <at> debbugs.gnu.org, Tom Tromey <tom <at> tromey.com>
Subject: Re: bug#15221: reiterating the request
Date: Fri, 07 Sep 2018 17:10:19 -0600
>>>>> "Mark" == Mark H Weaver <mhw <at> netris.org> writes:

Mark> I'm sympathetic to the desire to enable it by default, but I'm not sure
Mark> how to navigate the license issue, namely that GNU Readline is
Mark> GPL-licensed, whereas Guile is LGPL-licensed.

Surely doing it only when run interactively poses no problem.

However, another approach is to ask RMS.  It is absurd for two GNU
programs not to be able to interoperate in a logical way.

Tom




Information forwarded to bug-guile <at> gnu.org:
bug#15221; Package guile. (Sat, 08 Sep 2018 03:36:02 GMT) Full text and rfc822 format available.

Message #28 received at 15221 <at> debbugs.gnu.org (full text, mbox):

From: David Pirotte <david <at> altosw.be>
To: Mark H Weaver <mhw <at> netris.org>
Cc: 15221 <at> debbugs.gnu.org, Tom Tromey <tom <at> tromey.com>
Subject: Re: bug#15221: reiterating the request
Date: Sat, 8 Sep 2018 00:35:29 -0300
[Message part 1 (text/plain, inline)]
Hello Tom,
Mark,

> You can enable it by adding the following two lines to your ~/.guile:
> 
>   (use-modules (ice-9 readline))
>   (activate-readline)
> 
> See <https://www.gnu.org/software/guile/manual/html_node/Readline.html>.

> I'm sympathetic to the desire to enable it by default ...

We have to be careful here, because it changes the repl reader, and I think
it breaks geiser, at least it did last time I tried, admittedly a (very) long time
ago. 

If we change the default, assuming there would be no (more?) license problem, we
need to make sure it does not beak geiser, or provide a deactivate-readline procedure
(I don't think there is one): currently, and afaict, there is no way to reverse
'things' as there were, once readline has been activated.

Cheers,
David
[Message part 2 (application/pgp-signature, inline)]

This bug report was last modified 6 years and 280 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.