From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: RFM: How to make a buffer-local var in C layer Date: Tue, 15 Sep 2015 10:18:09 -0400 Message-ID: References: <20150821093606.11577.60349@vcs.savannah.gnu.org> <87d1y272f9.fsf@russet.org.uk> <87a8t6jbuy.fsf@russet.org.uk> <878u89njw6.fsf_-_@russet.org.uk> <87io7bnavl.fsf@russet.org.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1442326724 16780 80.91.229.3 (15 Sep 2015 14:18:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Sep 2015 14:18:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: phillip.lord@russet.org.uk (Phillip Lord) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 15 16:18:30 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 1Zbr3v-00028J-5n for ged-emacs-devel@m.gmane.org; Tue, 15 Sep 2015 16:18:23 +0200 Original-Received: from localhost ([::1]:43279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbr3u-0003Y9-IV for ged-emacs-devel@m.gmane.org; Tue, 15 Sep 2015 10:18:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbr3r-0003Y2-Ee for emacs-devel@gnu.org; Tue, 15 Sep 2015 10:18:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zbr3l-00027Z-U1 for emacs-devel@gnu.org; Tue, 15 Sep 2015 10:18:19 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:1741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbr3l-00027R-Pf for emacs-devel@gnu.org; Tue, 15 Sep 2015 10:18:13 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0ArEwA731xV/0jo92hcgxCEAoVVuzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNiFsIzyMBAQEBBgIBH4s6hQUHhC0FtQQjYYMzIoJ4AQEB X-IPAS-Result: A0ArEwA731xV/0jo92hcgxCEAoVVuzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNiFsIzyMBAQEBBgIBH4s6hQUHhC0FtQQjYYMzIoJ4AQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="164899827" Original-Received: from 104-247-232-72.cpe.teksavvy.com (HELO pastel.home) ([104.247.232.72]) by ironport2-out.teksavvy.com with ESMTP; 15 Sep 2015 10:18:09 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 28B24623C2; Tue, 15 Sep 2015 10:18:09 -0400 (EDT) In-Reply-To: <87io7bnavl.fsf@russet.org.uk> (Phillip Lord's message of "Tue, 15 Sep 2015 13:08:14 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:189976 Archived-At: > What is the difference between Vfontification_functions and > Qfontification_functions? Both are C variables of type Lisp_Object. The "V" one contains the value of the variable `fontification-functions', while the Q one contains the symbol `fontification-functions'. > How do I set the buffer local value? Something like: > Fsetq(Qfontification_functions,Qt) You could (tho calling Fset rather than Fsetq), but you can do it much more simply/cheaply with: Vfontification_functions = Qt; -- Stefan