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: Mon, 14 Sep 2015 21:48:40 -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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1442281742 12649 80.91.229.3 (15 Sep 2015 01:49:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Sep 2015 01:49:02 +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 03:48:53 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 1ZbfMZ-0003dr-HU for ged-emacs-devel@m.gmane.org; Tue, 15 Sep 2015 03:48:51 +0200 Original-Received: from localhost ([::1]:44470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbfMY-0004FG-Rv for ged-emacs-devel@m.gmane.org; Mon, 14 Sep 2015 21:48:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbfMV-0004Ez-Bc for emacs-devel@gnu.org; Mon, 14 Sep 2015 21:48:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbfMQ-00032z-3S for emacs-devel@gnu.org; Mon, 14 Sep 2015 21:48:47 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:62188) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbfMP-00032v-VI for emacs-devel@gnu.org; Mon, 14 Sep 2015 21:48:42 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0ArEwA731xV/0jo92hcgxCEAoVVuzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBBFYjEAs0EhQYDYhjzyMBAQEBBgIBH4s6hQUHhC0FtQQjYYMzIoJ4AQEB X-IPAS-Result: A0ArEwA731xV/0jo92hcgxCEAoVVuzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBBFYjEAs0EhQYDYhjzyMBAQEBBgIBH4s6hQUHhC0FtQQjYYMzIoJ4AQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="164851189" Original-Received: from 104-247-232-72.cpe.teksavvy.com (HELO ceviche.home) ([104.247.232.72]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 14 Sep 2015 21:48:40 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id C8BC566113; Mon, 14 Sep 2015 21:48:40 -0400 (EDT) In-Reply-To: <878u89njw6.fsf_-_@russet.org.uk> (Phillip Lord's message of "Mon, 14 Sep 2015 15:41:13 +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:189962 Archived-At: > (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