From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marco Maggesi Newsgroups: gmane.emacs.help Subject: Re: Question on syntax-propertize-function Date: Fri, 7 Jun 2013 02:13:57 -0700 (PDT) Message-ID: <6ab671c4-d219-4677-9bbc-57bf8358dac0@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1370620235 25045 80.91.229.3 (7 Jun 2013 15:50:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Jun 2013 15:50:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 07 17:50:36 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 1Ukyvw-0002oz-Jv for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Jun 2013 17:50:32 +0200 Original-Received: from localhost ([::1]:45621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukyvw-0004kj-7C for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Jun 2013 11:50:32 -0400 X-Received: by 10.224.215.68 with SMTP id hd4mr1006292qab.5.1370596437487; Fri, 07 Jun 2013 02:13:57 -0700 (PDT) X-Received: by 10.49.82.16 with SMTP id e16mr517391qey.13.1370596437449; Fri, 07 Jun 2013 02:13:57 -0700 (PDT) Original-Path: usenet.stanford.edu!ch1no2988291qab.0!news-out.google.com!y6ni1135qax.0!nntp.google.com!ch1no2988282qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=79.3.125.247; posting-account=QU505AoAAAArB2KPiK2pKsNCkFaGvtey Original-NNTP-Posting-Host: 79.3.125.247 User-Agent: G2/1.0 Injection-Date: Fri, 07 Jun 2013 09:13:57 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:199104 X-Mailman-Approved-At: Fri, 07 Jun 2013 11:50:22 -0400 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:91378 Archived-At: Il giorno gioved=EC 6 giugno 2013 23:23:41 UTC+2, Stefan Monnier ha scritto= : > That might be due to the syntax-table property being immediately reset > by the code that auto-runs syntax-propertize-function or something along > these lines. Try it first in a fundamental-mode buffer. Thank you Stefan, this clarifies a lot. Now my code works. Actually, the syntax for comments in OCaml is even trickier since (* *) can= be nested and (*) do not open a comment at top level but do open a comment= in the nesting, as this simple interaction shows [maggesi@virtux:~]$ ocaml OCaml version 4.00.1 # (* (*) *) *=20 But I think I will not address this, at lest for now. BTW: you should have the same problem in tuareg. How do you solve it? 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 purpos= e? Thanks for now, M.