emacs-devel
[Top][All Lists]
Advanced

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

Re: defvar in dynamic modules


From: Stefan Monnier
Subject: Re: defvar in dynamic modules
Date: Wed, 26 Nov 2014 14:58:27 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> Variables defined with DEFVAR are currently stored as a field in a
> global struct.  This has to do with the emacs multi-threading attempt.
> What should we do for modules? We can't dynamically add fields to the struct.

Good point.  Currently I think you have to do something like:

   Lisp_Object Qmyvar = intern ("myvar");

and then use find_symbol_value(Qmyvar) whenever you need to lookup
its value.


        Stefan



reply via email to

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