aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorChong Yidong2012-11-17 15:33:01 +0800
committerChong Yidong2012-11-17 15:33:01 +0800
commitec6f8ce637707a932574eeddfb543f0fb816f867 (patch)
tree8c324d5929edda7d47e35130352bda2657989df9 /lisp
parentc2d075572cdd9973f91805e55f57511ba58e1ec4 (diff)
downloademacs-ec6f8ce637707a932574eeddfb543f0fb816f867.tar.gz
emacs-ec6f8ce637707a932574eeddfb543f0fb816f867.zip
* lisp/emacs-lisp/syntax.el (syntax-propertize-function): Doc fix.
Fixes: debbugs:12810
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/syntax.el20
2 files changed, 18 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 75e09bff2a0..04eec6feab3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-11-17 Chong Yidong <cyd@gnu.org>
2
3 * emacs-lisp/syntax.el (syntax-propertize-function): Doc fix
4 (Bug#12810).
5
12012-11-17 OKAZAKI Tetsurou <okazaki.tetsurou@gmail.com> (tiny change) 62012-11-17 OKAZAKI Tetsurou <okazaki.tetsurou@gmail.com> (tiny change)
2 7
3 * vc/vc-svn.el (vc-svn-merge-news): Properly parse the merge 8 * vc/vc-svn.el (vc-svn-merge-news): Properly parse the merge
diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el
index c3d78b3444b..592cb1b0174 100644
--- a/lisp/emacs-lisp/syntax.el
+++ b/lisp/emacs-lisp/syntax.el
@@ -55,12 +55,18 @@
55 ;; have to flush that cache between each function, and we couldn't use 55 ;; have to flush that cache between each function, and we couldn't use
56 ;; syntax-ppss-flush-cache since that would not only flush the cache but also 56 ;; syntax-ppss-flush-cache since that would not only flush the cache but also
57 ;; reset syntax-propertize--done which should not be done in this case). 57 ;; reset syntax-propertize--done which should not be done in this case).
58 "Mode-specific function to apply the syntax-table properties. 58 "Mode-specific function to apply `syntax-table' text properties.
59Called with two arguments: START and END. 59The value of this variable is a function to be called by Font
60This function can call `syntax-ppss' on any position before END, but it 60Lock mode, prior to performing syntactic fontification on a
61should not call `syntax-ppss-flush-cache', which means that it should not 61stretch of text. It is given two arguments, START and END: the
62call `syntax-ppss' on some position and later modify the buffer on some 62start and end of the text to be fontified. Major modes can
63earlier position.") 63specify a custom function to apply `syntax-table' properties to
64override the default syntax table in special cases.
65
66The specified function may call `syntax-ppss' on any position
67before END, but it should not call `syntax-ppss-flush-cache',
68which means that it should not call `syntax-ppss' on some
69position and later modify the buffer on some earlier position.")
64 70
65(defvar syntax-propertize-chunk-size 500) 71(defvar syntax-propertize-chunk-size 500)
66 72
@@ -118,7 +124,7 @@ The arg RULES can be of the same form as in `syntax-propertize-rules'.
118The return value is an object that can be passed as a rule to 124The return value is an object that can be passed as a rule to
119`syntax-propertize-rules'. 125`syntax-propertize-rules'.
120I.e. this is useful only when you want to share rules among several 126I.e. this is useful only when you want to share rules among several
121syntax-propertize-functions." 127`syntax-propertize-function's."
122 (declare (debug syntax-propertize-rules)) 128 (declare (debug syntax-propertize-rules))
123 ;; Precompile? Yeah, right! 129 ;; Precompile? Yeah, right!
124 ;; Seriously, tho, this is a macro for 2 reasons: 130 ;; Seriously, tho, this is a macro for 2 reasons: