* bug#15221: provide a mechanism to activate readline systemwide
@ 2013-08-30 13:04 Arne Babenhauserheide (IMK)
2013-08-30 14:01 ` dsmich
2018-09-07 18:22 ` bug#15221: reiterating the request Tom Tromey
0 siblings, 2 replies; 8+ messages in thread
From: Arne Babenhauserheide (IMK) @ 2013-08-30 13:04 UTC (permalink / raw)
To: 15221
[-- Attachment #1.1: Type: text/plain, Size: 1269 bytes --]
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@kit.edu
Karlsruher Institut für Technologie
IMK-ASF
Postfach 36 40
76021 Karlsruhe
[-- Attachment #1.2: 0xA70DA09E.asc --]
[-- Type: application/pgp-keys, Size: 1893 bytes --]
[-- Attachment #1.3: arne_babenhauserheide.vcf --]
[-- Type: text/x-vcard, Size: 366 bytes --]
begin:vcard
fn:Arne Babenhauserheide
n:Babenhauserheide;Arne
org:KIT;GHG, IMK-ASF
adr;quoted-printable:;;Geb=C3=A4ude 435, Raum 410, Campus Nord;Karlsruhe;BW;76021;Deutschland
email;internet:arne.babenhauserheide@kit.edu
title:Doktorand
tel;work:+49 721 608-22885
x-mozilla-html:FALSE
url:http://www.imk-asf.kit.edu/874_1194.php
version:2.1
end:vcard
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 555 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#15221: provide a mechanism to activate readline systemwide
2013-08-30 13:04 bug#15221: provide a mechanism to activate readline systemwide Arne Babenhauserheide (IMK)
@ 2013-08-30 14:01 ` dsmich
2013-08-30 15:49 ` Noah Lavine
2018-09-07 18:22 ` bug#15221: reiterating the request Tom Tromey
1 sibling, 1 reply; 8+ messages in thread
From: dsmich @ 2013-08-30 14:01 UTC (permalink / raw)
To: 15221, arne.babenhauserheide
---- "Arne Babenhauserheide (IMK)" <arne.babenhauserheide@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
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#15221: provide a mechanism to activate readline systemwide
2013-08-30 14:01 ` dsmich
@ 2013-08-30 15:49 ` Noah Lavine
2013-09-03 8:52 ` Arne Babenhauserheide (IMK)
0 siblings, 1 reply; 8+ messages in thread
From: Noah Lavine @ 2013-08-30 15:49 UTC (permalink / raw)
To: dsmich; +Cc: 15221, arne.babenhauserheide
[-- Attachment #1: Type: text/plain, Size: 1910 bytes --]
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@roadrunner.com> wrote:
>
> ---- "Arne Babenhauserheide (IMK)" <arne.babenhauserheide@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
>
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 2469 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#15221: provide a mechanism to activate readline systemwide
2013-08-30 15:49 ` Noah Lavine
@ 2013-09-03 8:52 ` Arne Babenhauserheide (IMK)
0 siblings, 0 replies; 8+ messages in thread
From: Arne Babenhauserheide (IMK) @ 2013-09-03 8:52 UTC (permalink / raw)
To: Noah Lavine; +Cc: 15221@debbugs.gnu.org
[-- Attachment #1.1: Type: text/plain, Size: 2624 bytes --]
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@roadrunner.com
> <mailto:dsmich@roadrunner.com>> wrote:
>
>
> ---- "Arne Babenhauserheide (IMK)" <arne.babenhauserheide@kit.edu
> <mailto:arne.babenhauserheide@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@kit.edu
Karlsruher Institut für Technologie
IMK-ASF
Postfach 36 40
76021 Karlsruhe
[-- Attachment #1.2: 0xA70DA09E.asc --]
[-- Type: application/pgp-keys, Size: 1893 bytes --]
[-- Attachment #1.3: arne_babenhauserheide.vcf --]
[-- Type: text/x-vcard, Size: 366 bytes --]
begin:vcard
fn:Arne Babenhauserheide
n:Babenhauserheide;Arne
org:KIT;GHG, IMK-ASF
adr;quoted-printable:;;Geb=C3=A4ude 435, Raum 410, Campus Nord;Karlsruhe;BW;76021;Deutschland
email;internet:arne.babenhauserheide@kit.edu
title:Doktorand
tel;work:+49 721 608-22885
x-mozilla-html:FALSE
url:http://www.imk-asf.kit.edu/874_1194.php
version:2.1
end:vcard
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 555 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#15221: reiterating the request
2013-08-30 13:04 bug#15221: provide a mechanism to activate readline systemwide Arne Babenhauserheide (IMK)
2013-08-30 14:01 ` dsmich
@ 2018-09-07 18:22 ` Tom Tromey
2018-09-07 20:32 ` Mark H Weaver
1 sibling, 1 reply; 8+ messages in thread
From: Tom Tromey @ 2018-09-07 18:22 UTC (permalink / raw)
To: 15221
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#15221: reiterating the request
2018-09-07 18:22 ` bug#15221: reiterating the request Tom Tromey
@ 2018-09-07 20:32 ` Mark H Weaver
2018-09-07 23:10 ` Tom Tromey
2018-09-08 3:35 ` David Pirotte
0 siblings, 2 replies; 8+ messages in thread
From: Mark H Weaver @ 2018-09-07 20:32 UTC (permalink / raw)
To: Tom Tromey; +Cc: 15221
Hi Tom,
Tom Tromey <tom@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
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#15221: reiterating the request
2018-09-07 20:32 ` Mark H Weaver
@ 2018-09-07 23:10 ` Tom Tromey
2018-09-08 3:35 ` David Pirotte
1 sibling, 0 replies; 8+ messages in thread
From: Tom Tromey @ 2018-09-07 23:10 UTC (permalink / raw)
To: Mark H Weaver; +Cc: 15221, Tom Tromey
>>>>> "Mark" == Mark H Weaver <mhw@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
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#15221: reiterating the request
2018-09-07 20:32 ` Mark H Weaver
2018-09-07 23:10 ` Tom Tromey
@ 2018-09-08 3:35 ` David Pirotte
1 sibling, 0 replies; 8+ messages in thread
From: David Pirotte @ 2018-09-08 3:35 UTC (permalink / raw)
To: Mark H Weaver; +Cc: 15221, Tom Tromey
[-- Attachment #1: Type: text/plain, Size: 801 bytes --]
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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2018-09-08 3:35 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-30 13:04 bug#15221: provide a mechanism to activate readline systemwide Arne Babenhauserheide (IMK)
2013-08-30 14:01 ` dsmich
2013-08-30 15:49 ` Noah Lavine
2013-09-03 8:52 ` Arne Babenhauserheide (IMK)
2018-09-07 18:22 ` bug#15221: reiterating the request Tom Tromey
2018-09-07 20:32 ` Mark H Weaver
2018-09-07 23:10 ` Tom Tromey
2018-09-08 3:35 ` David Pirotte
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).