From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Omar Polo Newsgroups: gmane.emacs.help Subject: Re: C Hello World Emacs module Date: Tue, 05 Oct 2021 12:37:26 +0200 Message-ID: <87o8834uyx.fsf@omarpolo.com> References: <87mtnn23a8.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9487"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.6; emacs 28.0.50 Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 05 12:39:21 2021 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 1mXhqy-0002E9-Io for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 Oct 2021 12:39:20 +0200 Original-Received: from localhost ([::1]:54000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXhqw-00050c-Vx for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 Oct 2021 06:39:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXhqZ-00050L-4p for help-gnu-emacs@gnu.org; Tue, 05 Oct 2021 06:38:55 -0400 Original-Received: from mail.omarpolo.com ([144.91.116.244]:61280) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXhqV-0006k7-MK for help-gnu-emacs@gnu.org; Tue, 05 Oct 2021 06:38:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=omarpolo.com; s=20200327; t=1633430328; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ezy98cuTS8mzE6O12iJceqRSD6kxKsj92Mn20jWx+ZI=; b=sD3FVNOEdss0vWFBU031nDqoKGBH8eK3qzG4xgAQY8+DTxl/hXOQV62KX7TloCNa84KQcm 9LBgxsFdIivfO8VA6D4d/Mew+Mt9QheAwagf1kForeeU+9tVrQk2UBQN5s1PdE2cbBRncS u1LwkM/XfurbgeHD541jP+MeBnSxQHk= Original-Received: from localhost (host-79-24-9-175.retail.telecomitalia.it [79.24.9.175]) by mail.omarpolo.com (OpenSMTPD) with ESMTPSA id f9a0a51e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 5 Oct 2021 12:38:48 +0200 (CEST) Original-Received: from venera (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id cdd57bd7; Tue, 5 Oct 2021 12:38:46 +0200 (CEST) In-reply-to: <87mtnn23a8.fsf@zoho.eu> Received-SPF: pass client-ip=144.91.116.244; envelope-from=op@omarpolo.com; helo=mail.omarpolo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:133567 Archived-At: Emanuel Berg via Users list for the GNU Emacs text editor writes: > Can one write a Hello World program in C, compile it, and > bring it in and have it `message' and/or `insert' that string > in Emacs? > > Is there a minimal working example, in the LaTeX lingo, for > C modules in Emacs? Other than in the manual, I've found this article by skeeto to be really helpful in understanding how modules works: https://nullprogram.com/blog/2016/11/05/ The first bit of code is how to call `message' with "Hello, world!" as argument. HTH