emacs-devel
[Top][All Lists]
Advanced

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

Re: RFM: How to make a buffer-local var in C layer


From: Phillip Lord
Subject: Re: RFM: How to make a buffer-local var in C layer
Date: Tue, 15 Sep 2015 13:08:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> (defvar-local undo-buffer-undoably-changed nil
>>   "Non-nil means that that the buffer has had a recent undo-able change.
>
> This macroexpands to defvar + make-variable-buffer-local.
>
> In C defvar turns into DEFVAR_LISP, and make-variable-buffer-local turns
> into Fmake_variable_buffer_local.
>
> fontification-functions is defined in the C code exactly that way.


Ah, perfect! Have that part working now. Next questions!

What is the difference between Vfontification_functions and
Qfontification_functions?

How do I set the buffer local value? Something like:

Fsetq(Qfontification_functions,Qt)

Phil



reply via email to

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