[ESS] Open .R files from backtrace as read-only?

Vitalie Spinu spinuvit at gmail.com
Wed Jun 5 11:44:00 CEST 2013

 >> Rainer M Krug <Rainer at krugs.de>
 >> on Wed, 5 Jun 2013 11:32:59 +0200 wrote:


 > That would be the best option. At the moment I am using the function
 > org-babel-tangle-jump-to-org (I bound it to C-c T)after the backtrace appears, but I
 > sometimes forget it. It would be great if this function could be called
 > upon opening the R file, which then would jump to the location of the
 > code in the org file. There are problems at the moment with putting the
 > cursor at the exact location, but I think Eric Schulte is looking
 > into this.

Thanks for the pointer, let's see what we can do.


 >> > Or is there another way of achieving this?
 >> There is visit-file-hook. You can add to it a simple function that
 >> checks for a file name and marks buffer read only.

 > I can't find this hook - is it an emacs or ess specific hook?

Sorry, find-file-hook. You can even place org-babel-tangle-jump-to-org in it :)


More information about the ESS-help mailing list