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 at 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 at 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.