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: Tue, 15 Sep 2015 10:20:38 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> Fsetq(Qfontification_functions,Qt)

BTW, one notable difference (other than performance) between

    Fset (Qfontification_functions, Qt);
and
    Vfontification_functions = Qt;

is that the former will obey make-variable-buffer-local while the
latter won't.  So if you want the var to be buffer-local, either use the
former, or make sure to call Fmake_local_variable explicitly at
some point.


        Stefan



reply via email to

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