From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: RFM: How to make a buffer-local var in C layer Date: Tue, 15 Sep 2015 13:08:14 +0100 Message-ID: <87io7bnavl.fsf@russet.org.uk> References: <20150821093606.11577.60349@vcs.savannah.gnu.org> <87d1y272f9.fsf@russet.org.uk> <87a8t6jbuy.fsf@russet.org.uk> <878u89njw6.fsf_-_@russet.org.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1442318930 15655 80.91.229.3 (15 Sep 2015 12:08:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Sep 2015 12:08:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 15 14:08:41 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zbp2L-0007Zu-UH for ged-emacs-devel@m.gmane.org; Tue, 15 Sep 2015 14:08:38 +0200 Original-Received: from localhost ([::1]:47259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbp2L-0003my-6Y for ged-emacs-devel@m.gmane.org; Tue, 15 Sep 2015 08:08:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbp27-0003ml-I6 for emacs-devel@gnu.org; Tue, 15 Sep 2015 08:08:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zbp21-0005Lu-Rz for emacs-devel@gnu.org; Tue, 15 Sep 2015 08:08:23 -0400 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:39119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbp21-0005Lf-MR for emacs-devel@gnu.org; Tue, 15 Sep 2015 08:08:17 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1Zbp1z-00023H-Ff; Tue, 15 Sep 2015 13:08:15 +0100 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1Zbp1y-00058q-Ph; Tue, 15 Sep 2015 13:08:14 +0100 In-Reply-To: (Stefan Monnier's message of "Mon, 14 Sep 2015 21:48:40 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189970 Archived-At: Stefan Monnier 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