From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Some Emacs outside Emacs Date: Thu, 28 Jul 2022 16:39:50 +0800 Message-ID: <87ilnhr5pl.fsf@yahoo.com> References: <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="15408"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: "emacs-devel" To: Manuel Giraud Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 28 11:25:42 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 1oGzm2-0003lU-7K for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Jul 2022 11:25:42 +0200 Original-Received: from localhost ([::1]:56958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGzm1-0006Uf-5V for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Jul 2022 05:25:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGz3v-0005o9-RU for emacs-devel@gnu.org; Thu, 28 Jul 2022 04:40:07 -0400 Original-Received: from sonic307-56.consmr.mail.ne1.yahoo.com ([66.163.190.31]:37948) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGz3s-0003SH-I0 for emacs-devel@gnu.org; Thu, 28 Jul 2022 04:40:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1658997601; bh=vSeJPDF6esAhMWqSUj1ar4fUTnq/S5Kmqruf60imDBE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=pgJzSnX7iyA4ZjjtjyNmoPUTk9udEtWDdqT+2elSqHzbnvLefM/k2FoLXr8Frf0kDYKabpTX3Xy3QTM+2waRSZ+deZQzjmTI3jacD9FfKtRqcyrfP40R6iXsb/4Wud1MnIZNZ7A+tumZW7mTJUIW2uEXOF2Qn1Lnu48RFZ1ognDk0fC+iiajBsM7s+49qDmiJ88gikM3MErPCdn1rqbOLbMdg2uCc0AZNUJpdWrJlwRCN9CIp4U/2hcttR+yMySuUm9AP5DRm+E5Hp9jkCrPMci525yeZWcJ8VdrPZMuPmJ59s3Cr05FclabCtBWrqFRD7Id5ykcBBjqGICf/B4Hgw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1658997601; bh=siPVKzm3DQf8AwQfYiYox4qcYEPHae2ug9TuW3FnuZF=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=qhC89/ozJtMueJ7avlQwCbIirHAZO/1KawJ2st0PknxZJX+rAY8DYu2d2OUM2f2abO5wZnMUFmkyXekin9WnfGt5YVGzh/NHhSj26G7WjarucLvfMiMMam3Qsi+epVw0c8l7g0ntnA97Ot4P0eh70s990knSwuhYsHoxFbySuHzvFYrKzVoRA6A1q3hcmaXiZ6QW6V8CYQ6lw8voWegPv+BHHoFTHAWucw4u0emPZz3H+pBln6LqiAVqd7/yBSbFu8r1NEXh3C40wiWKj1xEMqPXhgfCcD+wkFhOMLMBYns5EbMJrpcZh5VaxcV1X3iRZYJAglThmoSqinlztXytcA== X-YMail-OSG: SfJmSewVM1k0bz7alSCEmj_4TpfWfAdtm_.9dvKw2NuNiE0CJXxEz9TkcjTpiXa xvXmzk.OsnzWnd8a2ZLloZTAJaI795jPdvip6qVsFLTBUzjMaFENWakeeI4vJA3.SXrBJdG4Z_AB nqecuJojoTr_WO9phCXer7qKbq0_sCEwhG7PuyxlSy6_Hu2Fxts3gh22A9CKUOiKZ9Z9xnjJasZO 7tY5Uk6pmUoLgWTb_myVhjHrle0FTi04zRjVvji9P2.Fq8_kRGiYWEygN506ShtXxtHnLQs3bAsP CLQ3Froeoj6t6nn3NDDwehnGyd0cj0.2V8vhrCMKsML9ZRBwoLwXrIC7PGeKQsvu_sruq0SBRzpe WmZ9PgmuMeyOj_rvY0qxdfLj.biNOIYYsKoh7uo_qWb88lsbdFdYlzJi1UFQlDpNt1YWVQBAnDdQ BZJxskbZS1wSG38q9qdJMHKhAgRp3H_X61O8zNmXPktZCAgoyrEiqZngL0cpgC5oVD4XAIWtWWWz YFTTxV25h.vqNR3waEZqKuYbjCI7zoudB3CN4vTSG4KE03a.10E5xIBQSb1wJor1wzVy9o0BN85L H7rUA9Fw9A8gtFzwgHrUGEojqG5Ops2zfLv5pHW_ldrUT3ZKjVL8HbmzHhjk7eJKIcr3glvL7zXj wSXoG.EGQ79Frp7Z1IDBD9cROdneb6YWHvfJ1JZVECNSqcY9.kcXd54P7IJXCG.dAzycpOY0luLt isatpkUVUvOG6_5HJq.q_w1j2fED7pRZ2hQI64VFpqzA3qb3Q3SpWSkvgsJ_OrHnPDWpWKu4EQTY JttpxEMHGTbAk1_iVDykgO7jpRXZxlcGH4PDQU6s_d X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Thu, 28 Jul 2022 08:40:01 +0000 Original-Received: by hermes--canary-production-sg3-854c886654-tp6d2 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c289bc6288e08d92cf0d08365d2bfc27; Thu, 28 Jul 2022 08:39:55 +0000 (UTC) In-Reply-To: <87sfml692a.fsf@elite.giraud> (Manuel Giraud's message of "Thu, 28 Jul 2022 08:33:01 +0200") X-Mailer: WebService/1.1.20447 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.31; envelope-from=luangruo@yahoo.com; helo=sonic307-56.consmr.mail.ne1.yahoo.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:292779 Archived-At: Manuel Giraud writes: > 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: > > 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; > ^ > > 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, You have to untag frame with XFRAME. BTW, FRAME_XIC_FONTSET is probably not what you want. It's only used by the input method under some preedit styles.