[Rd] R readline not honoring RCustomCompletion

Rafael Laboissiere rafael.laboissiere at inserm.fr
Mon Aug 9 11:04:25 CEST 2010


This issue has been brought at least twice in R-help:

https://stat.ethz.ch/pipermail/r-help/2008-September/173828.html
https://stat.ethz.ch/pipermail/r-help/2009-May/197360.html

Looking at the source in src/unix/sys-std.c, it seems that the definition
of rl_readline_name as "RCustomCompletion" is made after the readline
library has been initialized and the ~/.inputrc file has been read.
Typing "C-x C-r" at the R prompt makes the definitions under "$if
RCustomCompletion" work, but this is not what one expects the R users to
do.

Attached below is the trivial patch that seems to fix the problem.

Best regards,

Rafael Laboissiere
-------------- next part --------------
A non-text attachment was scrubbed...
Name: honor-RCustomCompletion.patch
Type: text/x-diff
Size: 463 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20100809/410f81de/attachment.bin>


More information about the R-devel mailing list