aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2008-01-04 05:43:39 +0000
committerRichard M. Stallman2008-01-04 05:43:39 +0000
commitdb3625badd5ad4688c97b62dcb1135fb7d8b81e7 (patch)
treef9a37e7e9c641d0283c0f008127ae3aaafda197a
parentf1c15283d1aa4f298853002fa10d08c300187a6e (diff)
downloademacs-db3625badd5ad4688c97b62dcb1135fb7d8b81e7.tar.gz
emacs-db3625badd5ad4688c97b62dcb1135fb7d8b81e7.zip
(Links and Mouse-1): Fix xref for commands.texi change.
-rw-r--r--lispref/text.texi37
1 files changed, 17 insertions, 20 deletions
diff --git a/lispref/text.texi b/lispref/text.texi
index 906e51c513b..ed69b348737 100644
--- a/lispref/text.texi
+++ b/lispref/text.texi
@@ -2989,31 +2989,28 @@ time you want to specify a particular attribute for certain text.
2989@xref{Face Attributes}. 2989@xref{Face Attributes}.
2990 2990
2991@item 2991@item
2992A cons cell with the form @code{(foreground-color . @var{color-name})} or 2992A cons cell with the form @code{(foreground-color . @var{color-name})}
2993@code{(background-color . @var{color-name})}. These elements specify 2993or @code{(background-color . @var{color-name})}. These are older,
2994just the foreground color or just the background color. @xref{Color 2994deprecated equivalents for @code{(:foreground @var{color-name})} and
2995Names}, for the supported forms of @var{color-name}. 2995@code{(:background @var{color-name})}. Please convert code that uses
2996 2996them.
2997A cons cell of @code{(foreground-color . @var{color-name})} is equivalent to
2998specifying @code{(:foreground @var{color-name})}; likewise for the
2999background.
3000@end itemize 2997@end itemize
3001 2998
3002You can use Font Lock Mode (@pxref{Font Lock Mode}), to dynamically 2999It works to use the latter two forms directly as the value
3003update @code{face} properties based on the contents of the text. 3000of the @code{face} property.
3001
3002Font Lock mode (@pxref{Font Lock Mode}) works in most buffers by
3003dynamically updating the @code{face} property of characters based on
3004the context.
3004 3005
3005@item font-lock-face 3006@item font-lock-face
3006@kindex font-lock-face @r{(text property)} 3007@kindex font-lock-face @r{(text property)}
3007The @code{font-lock-face} property is the same in all respects as the 3008The @code{font-lock-face} property is equivalent to the @code{face}
3008@code{face} property, but its state of activation is controlled by 3009property when Font Lock mode is enabled. When Font Lock mode is disabled,
3009@code{font-lock-mode}. This can be advantageous for special buffers 3010@code{font-lock-face} has no effect.
3010which are not intended to be user-editable, or for static areas of
3011text which are always fontified in the same way.
3012@xref{Precalculated Fontification}.
3013 3011
3014Strictly speaking, @code{font-lock-face} is not a built-in text 3012The @code{font-lock-mode} property is useful for special modes that
3015property; rather, it is implemented in Font Lock mode using 3013implement their own highlighting. @xref{Precalculated Fontification}.
3016@code{char-property-alias-alist}. @xref{Examining Properties}.
3017 3014
3018This property is new in Emacs 22.1. 3015This property is new in Emacs 22.1.
3019 3016
@@ -3717,7 +3714,7 @@ a @key{Mouse-1} click shall be translated to @key{RET}:
3717@defun mouse-on-link-p pos 3714@defun mouse-on-link-p pos
3718This function returns non-@code{nil} if position @var{pos} in the 3715This function returns non-@code{nil} if position @var{pos} in the
3719current buffer is on a link. @var{pos} can also be a mouse event 3716current buffer is on a link. @var{pos} can also be a mouse event
3720location, as returned by @code{event-start} (@pxref{Accessing Events}). 3717location, as returned by @code{event-start} (@pxref{Accessing Mouse}).
3721@end defun 3718@end defun
3722 3719
3723@node Fields 3720@node Fields