diff options
author | Miles Bader <miles@gnu.org> | 2008-01-08 20:46:54 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2008-01-08 20:46:54 +0000 |
commit | 59ce725a3b68cbc324f01bc8dc5f9e07286431d1 (patch) | |
tree | c17b8f002edf6892e273ff53214b1b23c880e69f /doc/lispref/text.texi | |
parent | 0664ff722152f34c2e87e9e644bbab401530b9d4 (diff) | |
parent | bf515869577b12abd42777fb0647259920c862fc (diff) | |
download | emacs-59ce725a3b68cbc324f01bc8dc5f9e07286431d1.tar.gz |
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
Diffstat (limited to 'doc/lispref/text.texi')
-rw-r--r-- | doc/lispref/text.texi | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 5b935bc6e23..0a43781bc05 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi @@ -1,7 +1,7 @@ @c -*-texinfo-*- @c This is part of the GNU Emacs Lisp Reference Manual. @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001, -@c 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. +@c 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. @c See the file elisp.texi for copying conditions. @setfilename ../../info/text @node Text, Non-ASCII Characters, Markers, Top @@ -2990,31 +2990,28 @@ time you want to specify a particular attribute for certain text. @xref{Face Attributes}. @item -A cons cell with the form @code{(foreground-color . @var{color-name})} or -@code{(background-color . @var{color-name})}. These elements specify -just the foreground color or just the background color. @xref{Color -Names}, for the supported forms of @var{color-name}. - -A cons cell of @code{(foreground-color . @var{color-name})} is equivalent to -specifying @code{(:foreground @var{color-name})}; likewise for the -background. +A cons cell with the form @code{(foreground-color . @var{color-name})} +or @code{(background-color . @var{color-name})}. These are older, +deprecated equivalents for @code{(:foreground @var{color-name})} and +@code{(:background @var{color-name})}. Please convert code that uses +them. @end itemize -You can use Font Lock Mode (@pxref{Font Lock Mode}), to dynamically -update @code{face} properties based on the contents of the text. +It works to use the latter two forms directly as the value +of the @code{face} property. + +Font Lock mode (@pxref{Font Lock Mode}) works in most buffers by +dynamically updating the @code{face} property of characters based on +the context. @item font-lock-face @kindex font-lock-face @r{(text property)} -The @code{font-lock-face} property is the same in all respects as the -@code{face} property, but its state of activation is controlled by -@code{font-lock-mode}. This can be advantageous for special buffers -which are not intended to be user-editable, or for static areas of -text which are always fontified in the same way. -@xref{Precalculated Fontification}. +The @code{font-lock-face} property is equivalent to the @code{face} +property when Font Lock mode is enabled. When Font Lock mode is disabled, +@code{font-lock-face} has no effect. -Strictly speaking, @code{font-lock-face} is not a built-in text -property; rather, it is implemented in Font Lock mode using -@code{char-property-alias-alist}. @xref{Examining Properties}. +The @code{font-lock-mode} property is useful for special modes that +implement their own highlighting. @xref{Precalculated Fontification}. This property is new in Emacs 22.1. @@ -3634,7 +3631,7 @@ a @key{Mouse-1} click shall be translated to @key{RET}: @defun mouse-on-link-p pos This function returns non-@code{nil} if position @var{pos} in the current buffer is on a link. @var{pos} can also be a mouse event -location, as returned by @code{event-start} (@pxref{Accessing Events}). +location, as returned by @code{event-start} (@pxref{Accessing Mouse}). @end defun @node Fields |