[ESS] R-mode not being activated
Vitalie Spinu
spinuvit at gmail.com
Sun Jun 2 23:54:46 CEST 2013
Hi Andreas,
As Paul already suggested, can you check if M-x R-mode works?
Or alternatively M-: (featurep 'ess-r-d) RET to check that the file in
question is loaded.
Vitalie
>> Andreas Kiermeier <andreas.kiermeier at gmail.com>
>> on Sat, 1 Jun 2013 11:56:00 +0930 wrote:
> Dear all,
> after a long time I've decided to update several software programs on my
> Windows 7 machine all at once (which may not have been a good idea),
> including:
> - GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-18 on MARVIN [I
> don't use Vincent's all-in-one as I like a bit of fiddling and don't want
> to download a new version of everything whenever ESS is updated]
> - R 3.0.1
> - ESS 13.05
> After starting Emacs (via emacs.exe) there is an *ESS* buffer and I can
> start an R process without any problems and that all seems to work fine.
> But, the problem I'm experiencing is that when I load an R source code file
> (e.g. "analysis.R") into Emacs there is no font-locking, which seems to be
> the result of R-mode not being loaded/called when loading the file.
> Trying to narrow down the problem I have started Emacs without the init
> file (i.e. C:\emacs\bin\emacs.exe --no-init-file). I then open my .emacs
> file and execute only the following line
> (require 'ess-site)
> Again an R process can be started successfully. Loading the analysis.R file
> has the same effect as before - no font-locking or R-mode (mode line shows
> only: (Fundamental Fill)). This behaviour happens irrespective of having
> started an R process or not. Loading R-mode manually in this buffer has the
> desired effect - font-locking and ability to send commands to the R process
> (which gets started if not running already).
> I've checked the value of auto-mode-alist and it contains
> ("\\.[rR]\\'" . R-mode)
> and I'd expect R-mode to get loaded when a .R file is opened. But it also
> contains the following further down (which may not bear any relevance)
> ("\\.\\(?:[iI][nN][iI]\\|[lL][sS][tT]\\|[rR][eE][gG]\\|[sS][yY][sS]\\)\\'"
> . conf-mode)
> So, with that I'm stumped. Any thoughts would be greatly appreciated.
> Thanks in advance.
> Andreas
> [[alternative HTML version deleted]]
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
More information about the ESS-help
mailing list