comparison lispref/text.texi @ 90813:e6fdae9180d4

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 698-710) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 216) - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-196
author Miles Bader <miles@gnu.org>
date Tue, 24 Apr 2007 21:56:25 +0000
parents 4ef881a120fe bcccf7e23d1c
children 70bf32a0f523
comparison
equal deleted inserted replaced
90812:6137cc8ddf90 90813:e6fdae9180d4
2985 attribute. With this feature, you do not need to create a face each 2985 attribute. With this feature, you do not need to create a face each
2986 time you want to specify a particular attribute for certain text. 2986 time you want to specify a particular attribute for certain text.
2987 @xref{Face Attributes}. 2987 @xref{Face Attributes}.
2988 2988
2989 @item 2989 @item
2990 A cons cell of the form @code{(foreground-color . @var{color-name})} or 2990 A cons cell with the form @code{(foreground-color . @var{color-name})} or
2991 @code{(background-color . @var{color-name})}. These elements specify 2991 @code{(background-color . @var{color-name})}. These elements specify
2992 just the foreground color or just the background color. @xref{Color 2992 just the foreground color or just the background color. @xref{Color
2993 Names}, for the supported forms of @var{color-name}. 2993 Names}, for the supported forms of @var{color-name}.
2994 2994
2995 @code{(foreground-color . @var{color-name})} is equivalent to 2995 A cons cell of @code{(foreground-color . @var{color-name})} is equivalent to
2996 specifying @code{(:foreground @var{color-name})}, and likewise for the 2996 specifying @code{(:foreground @var{color-name})}; likewise for the
2997 background. 2997 background.
2998 @end itemize 2998 @end itemize
2999 2999
3000 You can use Font Lock Mode (@pxref{Font Lock Mode}), to dynamically 3000 You can use Font Lock Mode (@pxref{Font Lock Mode}), to dynamically
3001 update @code{face} properties based on the contents of the text. 3001 update @code{face} properties based on the contents of the text.
3239 @code{point-entered} functions. 3239 @code{point-entered} functions.
3240 3240
3241 It is possible with @code{char-after} to examine characters at various 3241 It is possible with @code{char-after} to examine characters at various
3242 buffer positions without moving point to those positions. Only an 3242 buffer positions without moving point to those positions. Only an
3243 actual change in the value of point runs these hook functions. 3243 actual change in the value of point runs these hook functions.
3244 @end table
3245 3244
3246 @defvar inhibit-point-motion-hooks 3245 @defvar inhibit-point-motion-hooks
3247 When this variable is non-@code{nil}, @code{point-left} and 3246 When this variable is non-@code{nil}, @code{point-left} and
3248 @code{point-entered} hooks are not run, and the @code{intangible} 3247 @code{point-entered} hooks are not run, and the @code{intangible}
3249 property has no effect. Do not set this variable globally; bind it with 3248 property has no effect. Do not set this variable globally; bind it with
3258 Bar}). The specified function is called with one argument, the help 3257 Bar}). The specified function is called with one argument, the help
3259 string to display. Tooltip mode (@pxref{Tooltips,,, emacs, The GNU Emacs 3258 string to display. Tooltip mode (@pxref{Tooltips,,, emacs, The GNU Emacs
3260 Manual}) provides an example. 3259 Manual}) provides an example.
3261 @end defvar 3260 @end defvar
3262 3261
3262 @item composition
3263 @kindex composition @r{(text property)}
3264 This text property is used to display a sequence of characters as a
3265 single glyph composed from components. For instance, in Thai a base
3266 consonant is composed with the following combining vowel as a single
3267 glyph. The value should be a character or a sequence (vector, list,
3268 or string) of integers.
3269
3270 @itemize @bullet
3271 @item
3272 If it is a character, it means to display that character instead of
3273 the text in the region.
3274
3275 @item
3276 If it is a string, it means to display that string's contents instead
3277 of the text in the region.
3278
3279 @item
3280 If it is a vector or list, the elements are characters interleaved
3281 with internal codes specifying how to compose the following character
3282 with the previous one.
3283 @end itemize
3284 @end table
3285
3263 @node Format Properties 3286 @node Format Properties
3264 @subsection Formatted Text Properties 3287 @subsection Formatted Text Properties
3265 3288
3266 These text properties affect the behavior of the fill commands. They 3289 These text properties affect the behavior of the fill commands. They
3267 are used for representing formatted text. @xref{Filling}, and 3290 are used for representing formatted text. @xref{Filling}, and
3468 In order to prevent the hook functions from being called more than 3491 In order to prevent the hook functions from being called more than
3469 once for the same part of the buffer, you can use the variable 3492 once for the same part of the buffer, you can use the variable
3470 @code{buffer-access-fontified-property}. 3493 @code{buffer-access-fontified-property}.
3471 3494
3472 @defvar buffer-access-fontified-property 3495 @defvar buffer-access-fontified-property
3473 If this value's variable is non-@code{nil}, it is a symbol which is used 3496 If this variable's value is non-@code{nil}, it is a symbol which is used
3474 as a text property name. A non-@code{nil} value for that text property 3497 as a text property name. A non-@code{nil} value for that text property
3475 means, ``the other text properties for this character have already been 3498 means, ``the other text properties for this character have already been
3476 computed.'' 3499 computed.''
3477 3500
3478 If all the characters in the range specified for @code{buffer-substring} 3501 If all the characters in the range specified for @code{buffer-substring}