[ESS-bugs] ess-mode 5.9.1; autocompletion of file path always uses initial working directory

François Michonneau francois.michonneau at gmail.com
Wed May 26 00:35:28 CEST 2010


Hello,

  Imagine the following scenario.

1. Start ESS for R (M-x R)
2. Enter the working directory (e.g. /home/francois)
3. Use a function that takes a file name as argument: (e.g. read.table)
and say that I want to read the file named "someData.data" in the
directory "/home/francois". So, at the prompt, I type
'read.table(file="s' and hit TAB to autocomplete, then everything works
well and I get: 'read.table(file="/home/francois/someData.data'
4. Change the working directory using setwd() to
"/home/francois/myProject/"
5. Let's say that I want to read the file someOtherData.data that is in
"/home/francois/myProject", so at the prompt I type 'read.table(file="s'
and hit TAB to autocomplete, then I get
'read.table(file="/home/francois/someData.data' where I should get
'read.table(file="/home/francois/myProject/someOtherData.data'

  Thanks!
  -- Francois

[ess-site.el]: ess-customize-alist=nil 
[ess-site.el _2_]: ess-customize-alist=nil 
(S): ess-s-versions-create making M-x defuns for 
 
(R): ess-r-versions-create making M-x defuns for 
 

(R): ess-dialect=nil, buf=*GNU Emacs*, start-arg=nil
 current-prefix-arg=nil
(inferior-ess 0): ess-start-args=--no-readline   
ess-setq-vars-default 0: ess-language=Initial, -dialect=nil, buf=nil,
comint..echoes=nil, comint..sender=comint-simple-send
ess-setq-vars-default 1: ess-language=S, -dialect=R, buf=nil,
comint..echoes=nil, comint..sender=comint-simple-send
(inf-ess 1): lang=S, dialect=R, tmp-dialect=R, buf=*GNU Emacs*
(inf-ess 1.1): procname=R temp-dialect=R, buf-name=*R* 
(inferior-ess) Method #3 start=/home/francois/ buf=*R*
(ess-setq-vars-LOCAL): language=S, dialect=R, buf=nil,
comint..echoes=nil, comint..sender=comint-simple-send
(inf-ess 2.1): ess-language=S, ess-dialect=R buf=*R* 
(inf-ess 2.2): start args = --no-readline  ,
inf-ess-start-args=--no-readline   
(inf-ess finish [S(R), R(nil,nil)]
(ess-multi 0):  inf-ess-start-args=--no-readline  , comint-..echoes=nil
(i-ess 1): buf=*R*, lang=S, comint..echo=nil,
comint..sender=comint-simple-send,
(i-ess 2): buf=*R*, lang=S, comint..echo=t,
comint..sender=inferior-R-input-sender,
(ess-setq-vars-LOCAL): language=S, dialect=R, buf=nil, comint..echoes=t,
comint..sender=inferior-R-input-sender
(i-ess 3): curr-buf=*R*, comint..echo=t,
comint..sender=inferior-R-input-sender,
(ess-multi post inf-ess: start-args=--no-readline  , comint-echoes=t
(ess-multi 1):  start-args=--no-readline   
Making Process...Buf *R*, Proc R, Prog R
 Start File=nil, Args= --no-readline  .
(R): inferior-ess-language-start=options(STERM='iESS',
editor='emacsclient')
resetting completion to 'ess-R-complete-object-name

Emacs  : GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
 of 2010-03-29 on rothera, modified by Debian
Package: ess-mode 5.9.1

current state:
==============
(setq
 ess-language "S"
 ess-dialect "R"
 ess-ask-for-ess-directory t
 ess-ask-about-transfile nil
 ess-directory nil
 ess-keep-dump-files "always"
 ess-source-directory "/tmp/"
 )



More information about the ESS-bugs mailing list