[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Some Emacs outside Emacs
From: |
Andreas Schwab |
Subject: |
Re: Some Emacs outside Emacs |
Date: |
Thu, 28 Jul 2022 09:55:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1.90 (gnu/linux) |
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."