[ESS] Go to function definition

Vitalie Spinu spinuvit at gmail.com
Fri Sep 19 20:51:09 CEST 2014

This one is very handy, and work in all modes:


Otherwise there is always C-c C-e C-t (ess-build-tags-for-directory)
which works for R code and other languages as well. Then simply use

Unfortunately there is now internal "jump-to-source-location" function
in ESS. I had in plan to add one but never got down to it, partially
because the above two strategies work really well for me.


 >>> Ramon Diaz-Uriarte on Fri, 19 Sep 2014 15:52:33 +0200 wrote:

 > Dear Seb,
 > I use the function ido-goto-symbol as shown here:

 > http://www.emacswiki.org/emacs/ImenuMode#toc13

 > There is also a similar one in prelude:
 > https://github.com/bbatsov/prelude/blob/master/core/prelude-core.el

 > However, the ido-goto-symbol-at-point, as referred to here
 > https://gist.github.com/magnars/2360578

 > and that relates to one of the Emacs rocks episodes, does not work for me
 > (and my elisp-ignorant attempts to make it work have failed).

 > Tags, etc, do work (ess-build-tags-for-directory) but ido-goto-symbol (that
 > I bind to C-c i) is good enough for most of my use cases (if the definition
 > is on the buffer you are working on).

 > R.

 > On Fri, 19-09-2014, at 15:15, Sebastien Vauban <sva-news at mygooglest.com> wrote:
 >> Hello,
 >> I'm wondering whether there is a possibility to be able to jump to the
 >> definition of the function under point, like `f2' does in RStudio (to
 >> see the code of R functions such as `substring' or your own functions)?
 >> How do you do that?
 >> With a TAGS file?  How do you generate it for both your code and the
 >> R packages?
 >> Other solution?
 >> Best regards,
 >> Seb

More information about the ESS-help mailing list