emacs-devel
[Top][All Lists]
Advanced

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

Re: Some Emacs outside Emacs


From: Manuel Giraud
Subject: Re: Some Emacs outside Emacs
Date: Thu, 28 Jul 2022 10:43:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix)

Andreas Schwab <schwab@suse.de> writes:

> 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.


Thanks, that was it.  FTR here is what I'm doing:

--8<---------------cut here---------------start------------->8---
  Lisp_Object frame;
  XFontSet fs;
 
  frame = menu_bar_to_frame(mw);
  if (FRAMEP (frame))
    fs = FRAME_XIC_FONTSET (XFRAME (frame));
--8<---------------cut here---------------end--------------->8---
-- 
Manuel Giraud



reply via email to

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