From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Re: font-lock-beginning-of-syntax-function semi-obsolete? Date: Mon, 25 Apr 2005 20:08:58 +0200 Message-ID: <87br82d8zp.fsf@xs4all.nl> References: <87oec8ry4m.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1114452528 25505 80.91.229.2 (25 Apr 2005 18:08:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Apr 2005 18:08:48 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 25 20:08:46 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DQ7zo-0005Hg-N9 for ged-emacs-devel@m.gmane.org; Mon, 25 Apr 2005 20:07:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQ85N-0005C3-Dn for ged-emacs-devel@m.gmane.org; Mon, 25 Apr 2005 14:13:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DQ859-0005By-Re for emacs-devel@gnu.org; Mon, 25 Apr 2005 14:13:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DQ858-0005Bl-8c for emacs-devel@gnu.org; Mon, 25 Apr 2005 14:13:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQ858-0004Y3-4Y for emacs-devel@gnu.org; Mon, 25 Apr 2005 14:13:18 -0400 Original-Received: from [194.109.24.30] (helo=smtp-vbr10.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DQ84L-0008Tu-Px for emacs-devel@gnu.org; Mon, 25 Apr 2005 14:12:30 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr10.xs4all.nl (8.12.11/8.12.11) with ESMTP id j3PI8xYl034397; Mon, 25 Apr 2005 20:08:59 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DQ80w-0005eA-00; Mon, 25 Apr 2005 20:08:58 +0200 Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Mon, 25 Apr 2005 13:25:07 -0400") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) Original-Lines: 15 X-Virus-Scanned: by XS4ALL Virus Scanner X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:36380 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36380 Stefan Monnier writes: >> So, how do you make Font Lock use the function in the variable >> syntax-begin-function to move to top level? > > I don't understand the question. What have you tried? >>From what I understand, font-lock-beginning-of-syntax-function is initialized from font-lock-defaults. You can either specify nil or a function name. If you specify nil, Font Lock uses the beginning of the buffer. If you specify a function, Font Lock uses that function. How do you make Font Lock use the function in the variable syntax-begin-function? Lute.