unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Returning Lists From Dynamic Module
@ 2024-07-11 13:10 Psionic K
  2024-07-11 14:02 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Psionic K @ 2024-07-11 13:10 UTC (permalink / raw)
  To: help-gnu-emacs

I think I read something before about using cons in the manual, but now I
can't find it.  I was just wanting to return some alists to Elisp.  I'm
expecting I need to move some values over to Emacs managed memory while
consing them up according to the desired structure, but I don't know the
correct phrase / tools for either of these actions at a low level.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Returning Lists From Dynamic Module
  2024-07-11 13:10 Returning Lists From Dynamic Module Psionic K
@ 2024-07-11 14:02 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2024-07-11 14:02 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Psionic K <psionik@positron.solutions>
> Date: Thu, 11 Jul 2024 22:10:53 +0900
> 
> I think I read something before about using cons in the manual, but now I
> can't find it.  I was just wanting to return some alists to Elisp.  I'm
> expecting I need to move some values over to Emacs managed memory while
> consing them up according to the desired structure, but I don't know the
> correct phrase / tools for either of these actions at a low level.

I guess you'll need to call 'cons' via the env->intern and
env->funcall mechanism.  This is described in the ELisp manual, so I
suggest to read that.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-07-11 14:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-11 13:10 Returning Lists From Dynamic Module Psionic K
2024-07-11 14:02 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).