emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lispref/modes.texi


From: Richard M . Stallman
Subject: [Emacs-diffs] Changes to emacs/lispref/modes.texi
Date: Tue, 19 Apr 2005 17:06:01 -0400

Index: emacs/lispref/modes.texi
diff -c emacs/lispref/modes.texi:1.95 emacs/lispref/modes.texi:1.96
*** emacs/lispref/modes.texi:1.95       Fri Apr  8 09:28:08 2005
--- emacs/lispref/modes.texi    Tue Apr 19 21:06:00 2005
***************
*** 2163,2171 ****
  Functions}) to calculate the value for @var{subexp}.
  
  @item (@var{matcher} . @var{facespec})
! In this kind of element, @var{facespec} is an object which specifies
! the face variable to use for highlighting.  In the simplest case, it
! is a Lisp variable (a symbol), whose value should be a face name.
  
  @example
  ;; @r{Highlight occurrences of @samp{fubar},}
--- 2163,2172 ----
  Functions}) to calculate the value for @var{subexp}.
  
  @item (@var{matcher} . @var{facespec})
! In this kind of element, @var{facespec} is an expression whose value
! specifies the face to use for highlighting.  In the simplest case,
! @var{facespec} is a Lisp variable (a symbol) whose value is a face
! name.
  
  @example
  ;; @r{Highlight occurrences of @samp{fubar},}
***************
*** 2173,2184 ****
  ("fubar" . fubar-face)
  @end example
  
! However, @var{facespec} can also be a list of the form:
  
  @example
  (face @var{face} @var{prop1} @var{val1} @var{prop2} @address@hidden)
  @end example
  
  to specify the face @var{face} and various additional text properties
  to put on the text that matches.  If you do this, be sure to add the
  other text property names that you set in this way to the value of
--- 2174,2186 ----
  ("fubar" . fubar-face)
  @end example
  
! However, @var{facespec} can also evaluate to a list of this form:
  
  @example
  (face @var{face} @var{prop1} @var{val1} @var{prop2} @address@hidden)
  @end example
  
+ @noindent
  to specify the face @var{face} and various additional text properties
  to put on the text that matches.  If you do this, be sure to add the
  other text property names that you set in this way to the value of
***************
*** 2198,2204 ****
  
  The @sc{car}, @var{subexp}, is an integer specifying which subexpression
  of the match to fontify (0 means the entire matching text).  The second
! subelement, @var{facespec}, specifies the face, as described above.
  
  The last two values in @var{subexp-highlighter}, @var{override} and
  @var{laxmatch}, are optional flags.  If @var{override} is @code{t},
--- 2200,2207 ----
  
  The @sc{car}, @var{subexp}, is an integer specifying which subexpression
  of the match to fontify (0 means the entire matching text).  The second
! subelement, @var{facespec}, is an expression whose value specifies the
! face, as described above.
  
  The last two values in @var{subexp-highlighter}, @var{override} and
  @var{laxmatch}, are optional flags.  If @var{override} is @code{t},




reply via email to

[Prev in Thread] Current Thread [Next in Thread]