diff options
| author | Richard M. Stallman | 2005-04-19 21:06:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-04-19 21:06:19 +0000 |
| commit | ed35c7368c64d628ae1def81d25dbbad29cf06bc (patch) | |
| tree | 14710589cc8326597b04f1a69362a4d257b1d1cc | |
| parent | 2cc604202a4bb5a3d4cdff43240ab2ad6500ea45 (diff) | |
| download | emacs-ed35c7368c64d628ae1def81d25dbbad29cf06bc.tar.gz emacs-ed35c7368c64d628ae1def81d25dbbad29cf06bc.zip | |
(Search-based Fontification): Explain that
facespec is an expression to be evaluated.
| -rw-r--r-- | lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | lispref/modes.texi | 13 |
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 @@ | |||
| 1 | 2005-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 | |||
| 1 | 2005-04-19 Kevin Ryde <user42@zip.com.au> | 6 | 2005-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 | |||
| 2163 | Functions}) to calculate the value for @var{subexp}. | 2163 | Functions}) to calculate the value for @var{subexp}. |
| 2164 | 2164 | ||
| 2165 | @item (@var{matcher} . @var{facespec}) | 2165 | @item (@var{matcher} . @var{facespec}) |
| 2166 | In this kind of element, @var{facespec} is an object which specifies | 2166 | In this kind of element, @var{facespec} is an expression whose value |
| 2167 | the face variable to use for highlighting. In the simplest case, it | 2167 | specifies the face to use for highlighting. In the simplest case, |
| 2168 | is 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 |
| 2169 | name. | ||
| 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 | ||
| 2176 | However, @var{facespec} can also be a list of the form: | 2177 | However, @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 | ||
| 2182 | to specify the face @var{face} and various additional text properties | 2184 | to specify the face @var{face} and various additional text properties |
| 2183 | to put on the text that matches. If you do this, be sure to add the | 2185 | to put on the text that matches. If you do this, be sure to add the |
| 2184 | other text property names that you set in this way to the value of | 2186 | other text property names that you set in this way to the value of |
| @@ -2198,7 +2200,8 @@ It has the form: | |||
| 2198 | 2200 | ||
| 2199 | The @sc{car}, @var{subexp}, is an integer specifying which subexpression | 2201 | The @sc{car}, @var{subexp}, is an integer specifying which subexpression |
| 2200 | of the match to fontify (0 means the entire matching text). The second | 2202 | of the match to fontify (0 means the entire matching text). The second |
| 2201 | subelement, @var{facespec}, specifies the face, as described above. | 2203 | subelement, @var{facespec}, is an expression whose value specifies the |
| 2204 | face, as described above. | ||
| 2202 | 2205 | ||
| 2203 | The last two values in @var{subexp-highlighter}, @var{override} and | 2206 | The 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}, |