From: Marco Maggesi <marco.maggesi@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Question on syntax-propertize-function
Date: Fri, 7 Jun 2013 02:13:57 -0700 (PDT) [thread overview]
Message-ID: <6ab671c4-d219-4677-9bbc-57bf8358dac0@googlegroups.com> (raw)
In-Reply-To: <mailman.1117.1370553840.22516.help-gnu-emacs@gnu.org>
Il giorno giovedì 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
# (* (*) *)
*
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 purpose?
Thanks for now,
M.
next prev parent reply other threads:[~2013-06-07 9:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-06 19:26 Question on syntax-propertize-function Marco Maggesi
2013-06-06 21:23 ` Stefan Monnier
[not found] ` <mailman.1117.1370553840.22516.help-gnu-emacs@gnu.org>
2013-06-07 9:13 ` Marco Maggesi [this message]
2013-06-08 0:46 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6ab671c4-d219-4677-9bbc-57bf8358dac0@googlegroups.com \
--to=marco.maggesi@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.