[ESS-bugs] ess-mode 5.2.9; shell commander not working properly after an inferior R process is started.

Frede Aakmann Tøgersen FredeA.Togersen at agrsci.dk
Tue Aug 9 12:30:55 CEST 2005


Cygwin bash shell commander not working properly when invoked in a buffer after an inferior R process is startet. Bash works properly if invoked before the R process. 

Using a minimal .emacs as follows:

;; ESS 
 
(add-to-list 'load-path "C:/cygwin/usr/local/ess-svn/lisp")
(add-to-list 'Info-default-directory-list "C:/cygwin/usr/local/ess-svn/info")
(require 'ess-site)

(setq-default inferior-R-program-name 
	      "c:/Programmer/R/rw2011/bin/Rterm.exe")  ; msdos systems

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(explicit-shell-file-name "bash"))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )


If I start emacs and evoke a shell buffer with M-x shell bash is
started in a buffer named *shell* and works properly even if an
inferior R process is started with M-x R and R works fine.

If I first do M-x R and then M-x shell then R works fine but the bash
doesn't work at all. To every command line input it says "command not
found", e.g. for a <CR>, pwd and ls I see

bash-3.00$ 
: command not found
bash-3.00$ pwd
: command not found
bash-3.00$ ls
: command not found
bash-3.00$ 

Does ESS overwrites variable definitions that regard to the behaviour of
Emacs shell mode and if so which ones?

Regards

Frede Aakmann Tøgersen

 


----------------------------------------------------
Frede Aakmann Tøgersen
Statistics and Decision Theory
Department of Genetics and Biotechnology
Danish Institute of Agricultural Sciences
P.O. Box 50
DK-8830 Tjele,
--------------------------------------------------------






Emacs  : GNU Emacs 21.3.50.1 (i386-mingw-nt5.1.2600)
 of 2004-07-26 on BERATUNG4
Package: ess-mode 5.2.9

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/"
 )
[ess-site.el]: ess-customize-alist=nil 
[ess-site.el _2_]: ess-customize-alist=nil 
(R): ess-rterm-versions-create making M-x defuns for c:/program files/r/rw1091/bin/Rterm.exe c:/program files/r/rw2000/bin/Rterm.exe
(R): ess-dialect=nil, buf=*scratch*, start-arg=nil
 current-prefix-arg=nil
(inferior-ess 0): ess-start-args=--ess  
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=*scratch*
(inf-ess 1.1): procname=R temp-dialect=R, buf-name=*R* 
(inferior-ess) Method #3 start=c:/Documents and Settings/FAT/My Documents/fat/MyRwork/ 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 = --ess , inf-ess-start-args=--ess  
(inf-ess finish [S(R), c:/Programmer/R/rw2011/bin/Rterm.exe(nil,nil)]
(ess-multi 0):  inf-ess-start-args=--ess , 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=--ess , comint-echoes=t
(ess-multi 1):  start-args=--ess  
Making Process...Buf *R*, Proc R, Prog c:/Programmer/R/rw2011/bin/Rterm.exe
 Start File=nil, Args= --ess .
(R): inferior-ess-language-start=options(STERM='iESS', editor='gnuclient.exe')

(R): ess-dialect=R, buf=.emacs, start-arg=nil
 current-prefix-arg=nil
(inferior-ess 0): ess-start-args=--ess  
ess-setq-vars-default 0: ess-language=S, -dialect=R, 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=.emacs
(inf-ess 1.1): procname=R:2 temp-dialect=R, buf-name=*R:2* 
(inferior-ess) Method #3 start=c:/Documents and Settings/FAT/My Documents/fat/MyRwork/ buf=*R:2*
(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:2* 
(inf-ess 2.2): start args = --ess , inf-ess-start-args=--ess  
(inf-ess finish [S(R), c:/Programmer/R/rw2011/bin/Rterm.exe(R,nil)]
(ess-multi 0):  inf-ess-start-args=--ess , comint-..echoes=nil
(i-ess 1): buf=*R:2*, lang=S, comint..echo=nil, comint..sender=comint-simple-send,
(i-ess 2): buf=*R:2*, 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:2*, comint..echo=t, comint..sender=inferior-R-input-sender,
(ess-multi post inf-ess: start-args=--ess , comint-echoes=t
(ess-multi 1):  start-args=--ess  
Making Process...Buf *R:2*, Proc R:2, Prog c:/Programmer/R/rw2011/bin/Rterm.exe
 Start File=nil, Args= --ess .
(R): inferior-ess-language-start=options(STERM='iESS', editor='gnuclient.exe')
----------------------------------------------------
Frede Aakmann Tøgersen
Afdeling for Genetik og Bioteknologi
Danmarks Jordbrugsforskning
Postboks 50
8830 Tjele




More information about the ESS-bugs mailing list