From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Calling Lisp in C functions Date: Tue, 21 Sep 2021 12:38:21 -0700 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37378"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 21 21:39:21 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mSlbt-0009ZU-AC for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Sep 2021 21:39:21 +0200 Original-Received: from localhost ([::1]:50282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSlbq-0004jL-Vd for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Sep 2021 15:39:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSlb0-00043Y-Ds for emacs-devel@gnu.org; Tue, 21 Sep 2021 15:38:26 -0400 Original-Received: from mail-qv1-xf36.google.com ([2607:f8b0:4864:20::f36]:36796) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSlay-0005gV-U4 for emacs-devel@gnu.org; Tue, 21 Sep 2021 15:38:26 -0400 Original-Received: by mail-qv1-xf36.google.com with SMTP id jo30so403102qvb.3 for ; Tue, 21 Sep 2021 12:38:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=q2pw5SxAswxO0MCyQHyk/YuRme1orHkls8G14LhS0zU=; b=co3fKGl0FMCuJAdoAxG6lDj8iPLVw4ks2oiAhhIaB0Xuxx8k4S6CkUSTLesOtn81IG MYCcjBs5GxgfZ+XPoLdFjqeD93d4L9VGLcPlkqqad2eQymwDyi3VRmEIaF+duAM7oWws CVgR/KXFuhTAfj0PdIuPFdv79VvxP0upzYKS8wq/E6B06wB/n2X0HCgCpuYNGaTN4fuN 4mCzbOLE8KQZaaCLC2+FnFgja6f1vOsRvPQ86l3NpbTXYkEuQpXFdGVdn1DRq6TaEF1H jFHzW8dgMKvLJfpNNkkEGPPVKyuNAKjR4LGs5NithzDtYhx/dRG5KoCGFxWWzxPO+x14 wkDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=q2pw5SxAswxO0MCyQHyk/YuRme1orHkls8G14LhS0zU=; b=nCzBSXDfbjtaEBrT2jFbtuxoQYbyYwQWXvYlnuBEdSx0yeDaH/b/1ZX06jdeTZgt4u 1mus/gwjJitOqouL4uKsj5CamZZC+UNQbDhWQrisfODnRbQqS2JNiwz+XXcDaiik1x9V s+oQTZtaOjfmSzrOk46WUU2NDR5QLV6mHLCfQYHz6xBxn86U4degjzsofeMpklfw+w9o 01a+f7wKo3Ttvdhz+2Tl95q8mtf6Pm/G91fhhS9BXMtl5Kxj7nn19ThA4qtnVer8wD2R Di2j+q14fPNMJt/Uar0qRrJ0Jwdfrw3r4XS1sfjamzbsNA2Vjc1/nThGy8QZicqt+FBs QmAQ== X-Gm-Message-State: AOAM531ujxhBtTeW1Z7d+buNaMq3Y2mttE06bHxLdV50jF7a1eZ01OEW 4K5a/E49kgDr1cDixtFO1WbHGxbrjNPDcw== X-Google-Smtp-Source: ABdhPJx7LbTergokHe4gkLyervdzbkJ6GfeOvLIWKKKtiINM/IN3b/jHzlovdYIxAf7zKI9CV3h1hw== X-Received: by 2002:a05:6214:408:: with SMTP id z8mr24170043qvx.21.1632253103480; Tue, 21 Sep 2021 12:38:23 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c9f:753b:ac0f:fda7:2b6b]) by smtp.gmail.com with ESMTPSA id l13sm14579040qkp.97.2021.09.21.12.38.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Sep 2021 12:38:23 -0700 (PDT) X-Mailer: Apple Mail (2.3654.120.0.1.13) Received-SPF: pass client-ip=2607:f8b0:4864:20::f36; envelope-from=casouri@gmail.com; helo=mail-qv1-xf36.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:275266 Archived-At: What=E2=80=99s the best way to evaluate Lisp or call a Lisp function = that could signal in a C function and then free allocated memory? I = assume that I can=E2=80=99t just call the Lisp function and hope it = doesn=E2=80=99t signal. Yuan=