aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-04-19 21:06:19 +0000
committerRichard M. Stallman2005-04-19 21:06:19 +0000
commited35c7368c64d628ae1def81d25dbbad29cf06bc (patch)
tree14710589cc8326597b04f1a69362a4d257b1d1cc
parent2cc604202a4bb5a3d4cdff43240ab2ad6500ea45 (diff)
downloademacs-ed35c7368c64d628ae1def81d25dbbad29cf06bc.tar.gz
emacs-ed35c7368c64d628ae1def81d25dbbad29cf06bc.zip
(Search-based Fontification): Explain that
facespec is an expression to be evaluated.
-rw-r--r--lispref/ChangeLog5
-rw-r--r--lispref/modes.texi13
2 files changed, 13 insertions, 5 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog
index 1b8adf367db..2e440e48fa5 100644
--- a/lispref/ChangeLog
+++ b/lispref/ChangeLog
@@ -1,3 +1,8 @@
12005-04-19 Richard M. Stallman <rms@gnu.org>
2
3 * modes.texi (Search-based Fontification): Explain that
4 facespec is an expression to be evaluated.
5
12005-04-19 Kevin Ryde <user42@zip.com.au> 62005-04-19 Kevin Ryde <user42@zip.com.au>
2 7
3 * streams.texi (Output Functions): Fix xref. 8 * streams.texi (Output Functions): Fix xref.
diff --git a/lispref/modes.texi b/lispref/modes.texi
index b43b22275cc..6087d7f89ae 100644
--- a/lispref/modes.texi
+++ b/lispref/modes.texi
@@ -2163,9 +2163,10 @@ If you use @code{regexp-opt} to produce the regular expression
2163Functions}) to calculate the value for @var{subexp}. 2163Functions}) to calculate the value for @var{subexp}.
2164 2164
2165@item (@var{matcher} . @var{facespec}) 2165@item (@var{matcher} . @var{facespec})
2166In this kind of element, @var{facespec} is an object which specifies 2166In this kind of element, @var{facespec} is an expression whose value
2167the face variable to use for highlighting. In the simplest case, it 2167specifies the face to use for highlighting. In the simplest case,
2168is a Lisp variable (a symbol), whose value should be a face name. 2168@var{facespec} is a Lisp variable (a symbol) whose value is a face
2169name.
2169 2170
2170@example 2171@example
2171;; @r{Highlight occurrences of @samp{fubar},} 2172;; @r{Highlight occurrences of @samp{fubar},}
@@ -2173,12 +2174,13 @@ is a Lisp variable (a symbol), whose value should be a face name.
2173("fubar" . fubar-face) 2174("fubar" . fubar-face)
2174@end example 2175@end example
2175 2176
2176However, @var{facespec} can also be a list of the form: 2177However, @var{facespec} can also evaluate to a list of this form:
2177 2178
2178@example 2179@example
2179(face @var{face} @var{prop1} @var{val1} @var{prop2} @var{val2}@dots{}) 2180(face @var{face} @var{prop1} @var{val1} @var{prop2} @var{val2}@dots{})
2180@end example 2181@end example
2181 2182
2183@noindent
2182to specify the face @var{face} and various additional text properties 2184to specify the face @var{face} and various additional text properties
2183to put on the text that matches. If you do this, be sure to add the 2185to put on the text that matches. If you do this, be sure to add the
2184other text property names that you set in this way to the value of 2186other text property names that you set in this way to the value of
@@ -2198,7 +2200,8 @@ It has the form:
2198 2200
2199The @sc{car}, @var{subexp}, is an integer specifying which subexpression 2201The @sc{car}, @var{subexp}, is an integer specifying which subexpression
2200of the match to fontify (0 means the entire matching text). The second 2202of the match to fontify (0 means the entire matching text). The second
2201subelement, @var{facespec}, specifies the face, as described above. 2203subelement, @var{facespec}, is an expression whose value specifies the
2204face, as described above.
2202 2205
2203The last two values in @var{subexp-highlighter}, @var{override} and 2206The last two values in @var{subexp-highlighter}, @var{override} and
2204@var{laxmatch}, are optional flags. If @var{override} is @code{t}, 2207@var{laxmatch}, are optional flags. If @var{override} is @code{t},