emacs-devel
[Top][All Lists]
Advanced

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

Re: In C code, how do I create and access a (lisp) variable?


From: Alan Mackenzie
Subject: Re: In C code, how do I create and access a (lisp) variable?
Date: Thu, 5 Nov 2015 16:43:00 +0000
User-agent: Mutt/1.5.23 (2014-03-12)

Hello, Aurélien.

On Wed, Nov 04, 2015 at 10:20:55PM +0100, Aurélien Aptel wrote:
> I think you're supposed to use DEFVAR_PER_BUFFER for definition and
> BVAR for access.

In the end, I was able to find a model to emulate, namely that of
Vfontification_functions.

That involved doing all of the following:
o - Invoking DEFSYM for Qfoo;
o - Invoding DEFVAR_LIP for Vfoo;
o - Initialising Vfoo to Qnil;
o - Calling Fmake_variable_buffer_local (Qfoo).

It seems to have worked.

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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