[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some Emacs outside Emacs

From: Po Lu
Subject: Re: Some Emacs outside Emacs
Date: Thu, 28 Jul 2022 16:39:50 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

Manuel Giraud <manuel@ledu-giraud.fr> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]