all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: "Aurélien Aptel" <aurelien.aptel+emacs@gmail.com>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: In C code, how do I create and access a (lisp) variable?
Date: Thu, 5 Nov 2015 16:43:00 +0000	[thread overview]
Message-ID: <20151105164300.GB2887@acm.fritz.box> (raw)
In-Reply-To: <CA+5B0FNtUaJArffzoxixVmpMjU5Uw=UQepa6m6pWEH3Aeu4f4g@mail.gmail.com>

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



      parent reply	other threads:[~2015-11-05 16:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-04 21:04 In C code, how do I create and access a (lisp) variable? Alan Mackenzie
2015-11-04 21:20 ` Aurélien Aptel
2015-11-04 23:39   ` Andreas Schwab
2015-11-05 11:28     ` Aurélien Aptel
2015-11-05 16:43   ` Alan Mackenzie [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151105164300.GB2887@acm.fritz.box \
    --to=acm@muc.de \
    --cc=aurelien.aptel+emacs@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.