From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Returning Lists From Dynamic Module Date: Thu, 11 Jul 2024 17:02:11 +0300 Message-ID: <868qy8m3h8.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6945"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 11 16:04:10 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sRuP4-0001Zj-JO for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Jul 2024 16:04:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRuOa-00033t-VL; Thu, 11 Jul 2024 10:03:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRuO3-0000q6-Ke for help-gnu-emacs@gnu.org; Thu, 11 Jul 2024 10:03:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRuO0-0005rg-Cq for help-gnu-emacs@gnu.org; Thu, 11 Jul 2024 10:03:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=l2vtl/nV9qbk27Av53cog7k8UajLHE+poeDHYCPbO2E=; b=KJPuYSgqxgu4 vVzUXdsgWJAHKfZdsBZr9LtTGUXUpH9vm0vIZeoZ96Z2Q6UgpwBQQzuiLMLSkI8+U+sExrkSTqtRU z9TK/4tRTRQZvrXHPHUHYq5U0VtA3jgWaAt8Cxhj2MF9LT5lK5i4+iOlfkKZyrVaaBVrHiIqCvnC3 hurp23gGyZ8hNAA7tK03/aNeEhBvmkxFHyeszBjUYMbujmLxcgZovOGunftGV5zSUwWsKIoX9Y5N1 w3Edo3CaGU7SdzCPZSfCnaEhgTo+Or7A3GpZ800qQNxeWjySdG7pKBuK5E8E/bbK0L1ZIHI9RPMcG mGuwGhnSyvvR6tfo9PgumA==; In-Reply-To: (message from Psionic K on Thu, 11 Jul 2024 22:10:53 +0900) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147140 Archived-At: > From: Psionic K > 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.