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: Stefan Monnier
Subject: Re: RFM: How to make a buffer-local var in C layer
Date: Mon, 14 Sep 2015 21:48:40 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

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


        Stefan



reply via email to

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