On May 31, 2013 9:27 PM, "Andreas Kiermeier" <andreas.kiermeier@gmail.com>
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
>

I use the Goulet package and think you should too. It is easy to replace
Ess in there if you want.

But lets clear up your case. Emacs and ESS work fine if you run

M-x R-mode

Right?

What if you start a new file inside Emacs named what.R.  Which mode is
Emacs using?

And this happens while the Ess menus are showing?  And you made no changes
to site-start.el and you remove all other customizations?

Wait a minute. I remember this problem. You said "emacs.exe".  Noooo:)  I
am certain you need "runemacs.exe".  At least you did in the old days.

If that is not it...Wow. I think Vincent's installer looks better and
better.

Nevertheless, I will install Emacs as you did and try to replicate. I do
need more info on your install, though.

> 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@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

	[[alternative HTML version deleted]]

