emacs-devel
[Top][All Lists]
Advanced

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

Re: Menu bar items structure


From: Eli Zaretskii
Subject: Re: Menu bar items structure
Date: Thu, 17 Nov 2022 09:49:53 +0200

> From: Manuel Giraud <manuel@ledu-giraud.fr>
> Date: Wed, 16 Nov 2022 18:30:58 +0100
> 
> AFAIU, those items are stored as a flat array.  So there are many usage
> of this magical "4" number in keyboard.c and *term.c to walk this array.
> 
> So I guess my question is: could (should?) it not be done with a proper
> struct?  Maybe it is historical or maybe I'm missing something?

I'm not sure how you intended to use a C 'struct' in this case.
Menu-bar items is a Lisp vector, so how do you replace it with a C
struct and still allow Lisp to populate a menu?



reply via email to

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