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: font-lock-beginning-of-syntax-function semi-obsolete? Date: Thu, 21 Apr 2005 16:40:57 +0200 Message-ID: <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 1114094280 7688 80.91.229.2 (21 Apr 2005 14:38:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2005 14:38:00 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 21 16:37:57 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOco2-0003Od-EH for ged-emacs-devel@m.gmane.org; Thu, 21 Apr 2005 16:37:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOcsl-0007zW-K2 for ged-emacs-devel@m.gmane.org; Thu, 21 Apr 2005 10:42:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DOcsE-0007sJ-24 for emacs-devel@gnu.org; Thu, 21 Apr 2005 10:41:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DOcsC-0007ry-Ay for emacs-devel@gnu.org; Thu, 21 Apr 2005 10:41:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOcsC-0007qR-92 for emacs-devel@gnu.org; Thu, 21 Apr 2005 10:41:44 -0400 Original-Received: from [194.109.24.30] (helo=smtp-vbr10.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DOctq-0001Px-Aj for emacs-devel@gnu.org; Thu, 21 Apr 2005 10:43:26 -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 j3LEewK2079755 for ; Thu, 21 Apr 2005 16:40:59 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DOcrS-0004f6-00 for ; Thu, 21 Apr 2005 16:40:58 +0200 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 19 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:36231 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36231 I'm updating lispref/modex.texi and noticed that the docstring of font-lock-beginning-of-syntax-function says that it is semi-obsolete: *Non-nil means use this function to move back outside all constructs. When called with no args it should move point backward to a place which is not in a string or comment and not within any bracket-pairs (or else, a place such that any bracket-pairs outside it can be ignored for Emacs syntax analysis and fontification). If this is nil, the beginning of the buffer is used, which is always correct but tends to be slow. This is normally set via `font-lock-defaults'. This variable is semi-obsolete; we recommend setting `syntax-begin-function' instead. So, how do you make Font Lock use the function in the variable syntax-begin-function to move to top level? Lute.