I'm using R environments to organize groups of related values and defining functions like so:

fooFunc1 <- local(function(args) {
  ## Doo foo 1 things
}, env=fooEnv)

fooFunc2 <- local(function(args) {
  ## Doo foo 2 things
}, env=fooEnv)

Unfortunately, the local() construct appears to break ESS's ability to recognizes these as functions. Putting the pointer in such a function and evaluating (C-c, C-f) fails with: "Point is not in a function according to 'ess-function-pattern'."

Any suggestions or fixes? I took a look at the code in ess-mode.el and don't see an obvious solution given my limited knowledge of elisp.

I'm running ess v13.05 in Aquamacs 3.0preview5 on OS X 10.9.1. Same story in Emacs 23.4.1 on Ubuntu 13.10.

—Andreas
	[[alternative HTML version deleted]]

