From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud Newsgroups: gmane.emacs.devel Subject: Some Emacs outside Emacs Date: Thu, 28 Jul 2022 08:33:01 +0200 Message-ID: <87sfml692a.fsf@elite.giraud> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29517"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix) To: "emacs-devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 28 08:52:04 2022 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 1oGxNK-0007R3-W8 for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Jul 2022 08:52:03 +0200 Original-Received: from localhost ([::1]:34864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGxNJ-00033p-16 for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Jul 2022 02:52:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGx57-0000JU-HX for emacs-devel@gnu.org; Thu, 28 Jul 2022 02:33:13 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]:6453) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGx55-0008Vu-4r for emacs-devel@gnu.org; Thu, 28 Jul 2022 02:33:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=K/vusBs4FakceQFd r06dMcGXkDdwaeRHpksHn6NNumY=; h=date:subject:to:from; d=ledu-giraud.fr; b=qun0oa44JmcshIyuEu/qHPfgjZJDhbsXL4UDYtGD1A8n2CStko LprKaxlkrTGmCzd6dGkp+Zdg8bVcDP/GilPg+83aD/9xcq0b9EpIUvLwEQqp6+wpxTEUky doQQniSID3RedR/0X2Lc+GQfmKOpHwmBEOLzKFtfPQQrab92h+S9lLaw1oAgbmvsGiD/gc L49W3lhqM3iKUbbd5SwZGA8OYVaqbht2nJXHAXTizUbzsWrSFokEaBcgAHFIFRb2EUg56u 8I5jizuT+5wuw7WeSY16D/s365k6ZsATK0ktAPSoW2Rcao5PMqUbOLOftU3axu+WyeWukW 0asxecLQ2VEQ== Original-Received: from elite.giraud ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 72e49699 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Thu, 28 Jul 2022 08:33:07 +0200 (CEST) Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr 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_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:292765 Archived-At: Hi, I'm trying to access some Emacs functions from lwlib. So far, I'm able to get the frame for a given menu but whenever I try to access into that frame I get the following error from the compiler: --8<---------------cut here---------------start------------->8--- xlwmenu.c:1175:11: error: incomplete definition of type 'struct Lisp_X' fs = FRAME_XIC_FONTSET (frame); ^~~~~~~~~~~~~~~~~~~~~~~~~ ../src/xterm.h:1225:34: note: expanded from macro 'FRAME_XIC_FONTSET' #define FRAME_XIC_FONTSET(f) ((f)->output_data.x->xic_xfs) ~~~^ ./../src/lisp.h:300:16: note: forward declaration of 'struct Lisp_X' typedef struct Lisp_X *Lisp_Word; ^ --8<---------------cut here---------------end--------------->8--- AFAIU, "struct Lisp_X" is a non existent struct and we are just interest in the pointer. Is it a matter of a compiler option? Something else? Best regards, -- Manuel Giraud