[ESS] file name completion

Vaidotas Zemlys zemlys at gmail.com
Fri Sep 16 12:48:37 CEST 2005


Hi,

File name completion fails if your working path contains spaces. To
reproduce this, start R in directory which name contains spaces and try
to complete some filename by pressing TAB.

In my case, I'm working in directory /home/mpiktas/R/age groups/paulius/
and I'm trying to load file ukcondensed.RData. So I type 

> load("uk 
and press TAB. Emacs then starts to complain in minibuffer window by
saying:
Opening directory: no such file or directory: /home/mpiktas/R/age
groups/paulius/groups/paulius

and then expands the string:
> load("/home/mpiktas/R/age groups/paulius/uk

and if I press TAB again, Emacs complains again, and adds the same line.

Yet if I choose Complete File Name from Complete from top menu,
everything works how it is supposed to. If I remember correctly ESS
always behaved like that, but I can confirm this on Ubuntu Hoary with
Emacs 21.3, ess 5.2.3 which cames with Hoary, and ess 5.2.10 installed
localy from source tarball downloaded from
http://ess.math.ethz.ch/downloads/ess

I suppose there is a simple fix for this bug, since spaces in path names
are pretty common problem in my experience, yet I do not know enough
lisp to provide one. As a workaround I can use the menu, but it is
cumbersome, so can anyone point out which function performs file name
completion, so I could bind it to some key?

Thanks for any help.

Vaidotas

PS thanks for changing transcript behaviour, as I suggested.




More information about the ESS-help mailing list