[ESS] Open .R files from backtrace as read-only?
Rainer M Krug
Rainer at krugs.de
Wed Jun 5 11:52:14 CEST 2013
Vitalie Spinu <spinuvit at gmail.com> writes:
> >> 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.
Great - thanks.
> >> > 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 :)
But then it would be executed each time. Would work, but definitely not
> ESS-help at r-project.org mailing list
<#secure method=pgpmime mode=sign>
Rainer M. Krug
More information about the ESS-help