From rafael.laboissiere at inserm.fr  Mon Aug  9 11:04:25 2010
From: rafael.laboissiere at inserm.fr (Rafael Laboissiere)
Date: Mon, 9 Aug 2010 11:04:25 +0200
Subject: [Rd] R readline not honoring RCustomCompletion
Message-ID: <20100809090425.GA9224@pc049-u864.lyon.inserm.fr>

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>


[Rd] R readline not honoring RCustomCompletion
Rafael Laboissiere