HI,

I am new to ESS and Emacs.

Here is my problem.

The ESS is put in the directory ~/ess/ess-5.3.10

In my ~/.emacs file, I added (load "~/ess/ess-5.3.10/lisp/ess-site").

R is installed in ~/Rlang, the version is 2.8.1.

Emacs is version21.3.1.

ESS works and loaded. It works fine for programming and running, that is I
can start with M-x R and M-x SAS and then program and evaluate codes.

The problem is when using the auto-mode of Emacs.

When I open a file, for example, ~/test.R, the R-mode should be
automatically selected since the "ess-site.el "specified the auto R-mode for
files with suffix ".R". However I got the error "File mode specification
error: (void-function run-mode-hook)" though the file can be opened and I
can still evaluate the R code.

And also, the highlighting and fonting features are not shown.

Same Error happened when I tried to open files with suffix ".sas".

Thanks for your help

	[[alternative HTML version deleted]]


