R-alpha: Command line switch for disabling file completion or full 'readline'?

Ross Ihaka (ihaka@stat.auckland.ac.nz)
Mon, 9 Dec 1996 14:48:54 +1300 (NZDT)


From: Ross Ihaka <ihaka@stat.auckland.ac.nz>
Date: Mon, 9 Dec 1996 14:48:54 +1300 (NZDT)
Message-Id: <199612090148.OAA22714@stat13.stat.auckland.ac.nz>
To: Martin Maechler <maechler@stat.math.ethz.ch>
Subject: R-alpha: Command line switch for disabling file completion or full 'readline'?
In-Reply-To: <9612061452.AA10804@>

Martin Maechler writes:
 > Usually, people who can will want  readline compiled in,.. ok
 > 
 > Problem: It also has 'file name completion' when I type "<TAB> "
 > 	 (of course, this can be very useful!)
 > However, if I use  'S-mode' / 'R-mode' for emacs  and I 'send'
 > 	 multi-line statements from an Emacs buffer to the running R,
 > 	currently, there is a <TAB> sent to R (for some reasons), and
 > 	R responds with something like
 > 
 > >>There are 170 possibilities.  Do you really
 > >>wish to see them all? (y or n)
 > 
 > 	and then actually, these are listed, and I get a syntax error of R,
 > 	because the 170 function names don't really fit into my R code...
 > 
 > One easy fix (which may come handy in other situations) would be to provide
 > a command line switch  "-r" (or anything you find more reasonable)
 > in order to DISABLE the whole  readline mechanism 
 >  (we don't need it in Emacs S/R-mode)
 > or just disable the file name completion part.
 > 
 > ----
 > Opinions, proposals?

Hmmmm.  We could require a -e flag to ENABLE readline editing.  This
would have the virtue of being compatible with certain well-know
statistical software product.

Relatedly: I want to do the readline stuff a bit.  It would be good to
separate the R expressions a user is typing from other input in things
like scan.  At present we have some hacks to do this, but I'd like to
do something more methodical.  I'd also like to try name completion
for R object names in addition to (or perhaps instead of) file names.
(I actually find the file name completion more useful).
	Ross
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-