From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Question on syntax-propertize-function Date: Fri, 07 Jun 2013 20:46:03 -0400 Message-ID: References: <6ab671c4-d219-4677-9bbc-57bf8358dac0@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1370652389 25881 80.91.229.3 (8 Jun 2013 00:46:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Jun 2013 00:46:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 08 02:46:29 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Ul7Ia-0003Ux-5x for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Jun 2013 02:46:28 +0200 Original-Received: from localhost ([::1]:39570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ul7IZ-0007e0-RI for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Jun 2013 20:46:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ul7IP-0007du-3S for help-gnu-emacs@gnu.org; Fri, 07 Jun 2013 20:46:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ul7IN-0007MF-O1 for help-gnu-emacs@gnu.org; Fri, 07 Jun 2013 20:46:17 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:49159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ul7IN-0007M4-Hs for help-gnu-emacs@gnu.org; Fri, 07 Jun 2013 20:46:15 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ul7IM-0003Jq-Mw for help-gnu-emacs@gnu.org; Sat, 08 Jun 2013 02:46:14 +0200 Original-Received: from 69-165-139-76.dsl.teksavvy.com ([69.165.139.76]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Jun 2013 02:46:14 +0200 Original-Received: from monnier by 69-165-139-76.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Jun 2013 02:46:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 13 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 69-165-139-76.dsl.teksavvy.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:8JEqj4SDCT8jNOO8/p44BxewH3E= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91386 Archived-At: > BTW: you should have the same problem in tuareg. How do you solve it? AFAIK we don't. IIRC the precise commenting rules in OCaml are pretty subtle, and Tuareg mode doesn't try to obey them all. > I noticed that when font-lock-mode is disabled, the text is not propertized. > Is syntax-propertize run only by font-lock or is used also for other purpose? It is propertized on demand. So if noone asks for it, it's not run. When you need it, call syntax-propertize. Stefan