[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r112786: * syntax.el (syntax-properti
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r112786: * syntax.el (syntax-propertize-function): Fix docstring. |
Date: |
Thu, 30 May 2013 09:57:44 -0400 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 112786
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Thu 2013-05-30 09:57:44 -0400
message:
* syntax.el (syntax-propertize-function): Fix docstring.
modified:
lisp/emacs-lisp/syntax.el
=== modified file 'lisp/emacs-lisp/syntax.el'
--- a/lisp/emacs-lisp/syntax.el 2013-04-22 14:11:37 +0000
+++ b/lisp/emacs-lisp/syntax.el 2013-05-30 13:57:44 +0000
@@ -56,12 +56,13 @@
;; syntax-ppss-flush-cache since that would not only flush the cache but also
;; reset syntax-propertize--done which should not be done in this case).
"Mode-specific function to apply `syntax-table' text properties.
-The value of this variable is a function to be called by Font
-Lock mode, prior to performing syntactic fontification on a
-stretch of text. It is given two arguments, START and END: the
-start and end of the text to be fontified. Major modes can
-specify a custom function to apply `syntax-table' properties to
-override the default syntax table in special cases.
+It is the work horse of `syntax-propertize', which is called by things like
+Font-Lock and indentation.
+
+It is given two arguments, START and END: the start and end of the text to
+which `syntax-table' might need to be applied. Major modes can use this to
+override the buffer's syntax table for special syntactic constructs that
+cannot be handled just by the buffer's syntax-table.
The specified function may call `syntax-ppss' on any position
before END, but it should not call `syntax-ppss-flush-cache',
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r112786: * syntax.el (syntax-propertize-function): Fix docstring.,
Stefan Monnier <=