Skip to content
Prev 11657 / 398502 Next

r-mode (ESS/XEmacs)

Mirko> I recently switched from using Emacs 20.7.1 to XEmacs 21.4, both on
  Mirko> cygwin / MS W2K.
[...]
  Mirko> "WARNING: unknown option --no-readline Fatal error: you must specify
  Mirko> `--save', `--no-save' or `--vanilla'

I did a similar upgrade on Friday. Modify lisp/essd-r.el at line 119 from

  (let* ((r-always-arg
	  (if (or (equal window-system 'w32) (equal window-system 'win32))
	      "--ess "
	    "--no-readline "))

to 

  (let* ((r-always-arg "--ess ")

Ie, it should unconditionally give the --ess switch as under Cygwin the test
for W32 leads to --no-readline which the Rterm.exe doesn't understand.

Note that this is untested as I am at home where I use a more pleasant
operating system. Best to edit the file in XEmacs to make sure the parens
balance. 

Hope this helps,  Dirk