From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Some Emacs outside Emacs Date: Thu, 28 Jul 2022 09:55:32 +0200 Message-ID: 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="1326"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1.90 (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 10:01:22 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 1oGySP-00008Y-W3 for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Jul 2022 10:01:22 +0200 Original-Received: from localhost ([::1]:52556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGySO-0003Qe-HH for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Jul 2022 04:01:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGyMv-0000jm-2R for emacs-devel@gnu.org; Thu, 28 Jul 2022 03:55:42 -0400 Original-Received: from smtp-out1.suse.de ([2001:67c:2178:6::1c]:49546) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGyMs-0004PI-SV for emacs-devel@gnu.org; Thu, 28 Jul 2022 03:55:40 -0400 Original-Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 9D66037C31; Thu, 28 Jul 2022 07:55:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1658994932; h=from:from:reply-to: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=5VSyvsOB23/GGzF+oOGrkZCXBB+z66Kr1Xl6qSP0g1w=; b=oR55iYB6giFClc56tvEDb5C02mT4i1UE9Ij0WVrxWhb1bBriEL1xsorCpXm9070r9VsjJC wwHZJKzPnelpWX3relAeLPde0qs2poU8OfIG5/e+K6beJvG/OtKV2b/Aq/HF4+wmSRCzYJ H4TeH2HPaQGIr7m2KFBfCeg0tLXKgJc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1658994932; h=from:from:reply-to: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=5VSyvsOB23/GGzF+oOGrkZCXBB+z66Kr1Xl6qSP0g1w=; b=30PfJRhmZaX+N88Sy3zNohBv3ILjg4/4V9FGqQbESFks/8wSBqpLsi8NzD9OLdMYYOdt7l xY8iRVsFyIlLT0Bg== Original-Received: from hawking.suse.de (unknown [10.168.4.11]) by relay2.suse.de (Postfix) with ESMTP id 529332C141; Thu, 28 Jul 2022 07:55:27 +0000 (UTC) Original-Received: by hawking.suse.de (Postfix, from userid 17005) id 60360444B1F; Thu, 28 Jul 2022 09:55:32 +0200 (CEST) X-Yow: Is this going to involve RAW human ecstasy? In-Reply-To: <87sfml692a.fsf@elite.giraud> (Manuel Giraud's message of "Thu, 28 Jul 2022 08:33:01 +0200") Received-SPF: pass client-ip=2001:67c:2178:6::1c; envelope-from=schwab@suse.de; helo=smtp-out1.suse.de 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, 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:292770 Archived-At: On Jul 28 2022, Manuel Giraud wrote: > 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); > ^~~~~~~~~~~~~~~~~~~~~~~~~ You need to untag the Lisp_Object value first to get the proper pointer. FRAME_XIC_FONTSET is only applicable to a struct frame, which is what XFRAME returns. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."