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:20:38 -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 1442326874 19848 80.91.229.3 (15 Sep 2015 14:21:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Sep 2015 14:21:14 +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:21:05 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 1Zbr6S-00051E-Lv for ged-emacs-devel@m.gmane.org; Tue, 15 Sep 2015 16:21:00 +0200 Original-Received: from localhost ([::1]:43294 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbr6R-0004Rz-Vs for ged-emacs-devel@m.gmane.org; Tue, 15 Sep 2015 10:20:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbr6A-0004Rs-Np for emacs-devel@gnu.org; Tue, 15 Sep 2015 10:20:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zbr67-00037r-9k for emacs-devel@gnu.org; Tue, 15 Sep 2015 10:20:42 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:24790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbr66-000375-Tb for emacs-devel@gnu.org; Tue, 15 Sep 2015 10:20:39 -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="164900136" 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:20:38 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 2B877623C2; Tue, 15 Sep 2015 10:20:38 -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:189977 Archived-At: > 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