[R] Calling Emacs Lisp Code/Function from R

Iris Simmons |kw@|mmo @end|ng |rom gm@||@com
Sun Nov 12 09:56:24 CET 2023


Hi,


Thank you Duncan, I will check with that other mailing list to see if
they can guide me.
And thank you Martin, I was able to implement what I wanted using the
example you sent.

On Fri, Nov 10, 2023 at 6:55 AM Martin Gregory via R-help
<r-help using r-project.org> wrote:
>
> Hi,
>
> if you run a server in your Emacs session you can use emacsclient to
> send a lisp call to the server. There's an example here:
>
> https://emacs.stackexchange.com/questions/54156/how-can-i-query-emacs-from-a-separate-process/54161#54161
>
> Regards,
> Martin Gregory
>
> On 11/10/23 11:18, Duncan Murdoch wrote:
> > I'm not an Emacs user, but the ESS-help mailing list (see
> > ess.r-project.org) might be able to help with this.
> >
> > Duncan Murdoch
> >
> > On 10/11/2023 3:43 a.m., Iris Simmons wrote:
> >> Hi,
> >>
> >>
> >> I'm using R in Emacs and I'm interested in programatically knowing the
> >> details of all opened buffers; details such a buffer name, size, mode,
> >> and possibly associated filename. I've been able to write such a
> >> function in Emacs Lisp, but now I'd like to be able to call that
> >> function from R, or if that's not possible then calling it from C
> >> would be fine.
> >>
> >> Does anyone know if this is possible? And if so, could you perhaps
> >> direct me towards an existing R package or program that calls an Emacs
> >> Lisp function from R that I could use as a guide?
> >>
> >>
> >> Thank you!
> >>      Iris
> >>
> >> ______________________________________________
> >> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guide
> >> http://www.R-project.org/posting-guide.html
> >> and provide commented, minimal, self-contained, reproducible code.
> >
> > ______________________________________________
> > R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list