[GAP Forum] Can't bind readline functions

Dima Pasechnik dmitrii.pasechnik at cs.ox.ac.uk
Mon Feb 10 12:23:23 GMT 2020


Dear Ralf,

In GAP Ctrl-r and Ctrn-n was, in pre-readline times, used to scroll the
history back and forth, and it's still the case now.

AFAIK it's not customizable, yet.
(Patches to fix this are welcome).

HTH,
Dmitrii

On Mon, Feb 10, 2020 at 12:28:52PM +0100, Ralf wrote:
> Hi,
> 
> I recently started to use gap and I was happy to see that it comes with
> a readline interface. However it doesn't seem to work as advertised. For
> instance in other readline enabled programs I usually make have use of
> the function "reverse-search-history" which is by default bound to
> "C-r". However, it does not work in gap. I even added it to my .inputrc
> file (which I should not need since it is the default). Although gap
> honours certain changes to the .inputrc like the "blink-matching-paren"
> variable it seems to fail to honour binding functions to certain keys.
> Not even the dump-function example in section 6.9.1 of the reference
> manual works, i.e. the lines in my .inputrc
> 
> $if GAP
>     set blink-matching-paren on
>     "\C-r": reverse-search-history
>     "\C-n": dump-functions
> $endif
> 
> don't have an effect apart from the matching parenthesis stuff. What am
> I doing wrong? My setup is as follows
> 
>  ┌───────┐   GAP 4.10.2 of 19-Jun-2019
>  │  GAP  │   https://www.gap-system.org
>  └───────┘   Architecture: x86_64-pc-linux-gnu-default64-kv3
>  Configuration:  gmp 6.2.0, readline
>  Loading the library and packages ...
> 
> Thanks, Ralf
> 
> _______________________________________________
> Forum mailing list
> Forum at gap-system.org
> https://mail.gap-system.org/mailman/listinfo/forum



More information about the Forum mailing list