Mercurial > emacs
comparison lispref/display.texi @ 61980:f3d536670495
Fix typos and Texinfo usage.
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Sun, 01 May 2005 17:01:44 +0000 |
parents | 874393fa8818 |
children | e5a04a0e92c1 08185296b491 |
comparison
equal
deleted
inserted
replaced
61979:b16001bd5ab0 | 61980:f3d536670495 |
---|---|
1140 @defun remove-overlays &optional start end name value | 1140 @defun remove-overlays &optional start end name value |
1141 This function removes all the overlays between @var{start} and | 1141 This function removes all the overlays between @var{start} and |
1142 @var{end} whose property @var{name} has the value @var{value}. It can | 1142 @var{end} whose property @var{name} has the value @var{value}. It can |
1143 move the endpoints of the overlays in the region, or split them. | 1143 move the endpoints of the overlays in the region, or split them. |
1144 | 1144 |
1145 If @var{name} is omitted or nil, it means to delete all overlays in | 1145 If @var{name} is omitted or @code{nil}, it means to delete all overlays in |
1146 the specified region. If @var{start} and/or @var{end} are omitted or | 1146 the specified region. If @var{start} and/or @var{end} are omitted or |
1147 nil, that means the beginning and end of the buffer respectively. | 1147 @code{nil}, that means the beginning and end of the buffer respectively. |
1148 Therefore, @code{(remove-overlays)} removes all the overlays in the | 1148 Therefore, @code{(remove-overlays)} removes all the overlays in the |
1149 current buffer. | 1149 current buffer. |
1150 @end defun | 1150 @end defun |
1151 | 1151 |
1152 Here are some examples: | 1152 Here are some examples: |
1554 line is exactly what its contents demand; no line-spacing is added. | 1554 line is exactly what its contents demand; no line-spacing is added. |
1555 This case is useful for tiling small images or image slices without | 1555 This case is useful for tiling small images or image slices without |
1556 adding blank areas between the images. | 1556 adding blank areas between the images. |
1557 | 1557 |
1558 If the property value is not @code{t}, it is a height spec. A height | 1558 If the property value is not @code{t}, it is a height spec. A height |
1559 spec stands for a numeric height value; this heigh spec specifies the | 1559 spec stands for a numeric height value; this height spec specifies the |
1560 actual line height, @var{line-height}. There are several ways to | 1560 actual line height, @var{line-height}. There are several ways to |
1561 write a height spec; here's how each of them translates into a numeric | 1561 write a height spec; here's how each of them translates into a numeric |
1562 height: | 1562 height: |
1563 | 1563 |
1564 @table @code | 1564 @table @code |
1570 @item (@var{face} . @var{ratio}) | 1570 @item (@var{face} . @var{ratio}) |
1571 If the height spec is a cons of the format shown, the numeric height | 1571 If the height spec is a cons of the format shown, the numeric height |
1572 is @var{ratio} times the height of face @var{face}. @var{ratio} can | 1572 is @var{ratio} times the height of face @var{face}. @var{ratio} can |
1573 be any type of number, or @code{nil} which means a ratio of 1. | 1573 be any type of number, or @code{nil} which means a ratio of 1. |
1574 If @var{face} is @code{t}, it refers to the current face. | 1574 If @var{face} is @code{t}, it refers to the current face. |
1575 @item (@code{nil} . @var{ratio}) | 1575 @item (nil . @var{ratio}) |
1576 If the height spec is a cons of the format shown, the numeric height | 1576 If the height spec is a cons of the format shown, the numeric height |
1577 is @var{ratio} times the height of the contents of the line. | 1577 is @var{ratio} times the height of the contents of the line. |
1578 @end table | 1578 @end table |
1579 | 1579 |
1580 Thus, any valid non-@code{t} property value specifies a height in pixels, | 1580 Thus, any valid non-@code{t} property value specifies a height in pixels, |
1581 @var{line-height}, one way or another. If the line contents' height | 1581 @var{line-height}, one way or another. If the line contents' height |
1582 is less than @var{line-height}, Emacs adds extra vertical space above | 1582 is less than @var{line-height}, Emacs adds extra vertical space above |
1583 the line to achieve the total height @var{line-height}. Otherwise, | 1583 the line to achieve the total height @var{line-height}. Otherwise, |
1584 @var{line-height} has no effect. | 1584 @var{line-height} has no effect. |
1585 | 1585 |
1586 If you don't specify the @code{line-height} propery, the line's | 1586 If you don't specify the @code{line-height} property, the line's |
1587 height consists of the contents' height plus the line spacing. | 1587 height consists of the contents' height plus the line spacing. |
1588 There are several ways to specify the line spacing for different | 1588 There are several ways to specify the line spacing for different |
1589 parts of Emacs text. | 1589 parts of Emacs text. |
1590 | 1590 |
1591 @vindex default-line-spacing | 1591 @vindex default-line-spacing |
2982 | 2982 |
2983 You can define multiple overlay arrows via the variable | 2983 You can define multiple overlay arrows via the variable |
2984 @code{overlay-arrow-variable-list}. | 2984 @code{overlay-arrow-variable-list}. |
2985 | 2985 |
2986 @defvar overlay-arrow-variable-list | 2986 @defvar overlay-arrow-variable-list |
2987 This variable's value is a list of varibles, each of which specifies | 2987 This variable's value is a list of variables, each of which specifies |
2988 the position of an overlay arrow. The variable | 2988 the position of an overlay arrow. The variable |
2989 @code{overlay-arrow-position} has its normal meaning because it is on | 2989 @code{overlay-arrow-position} has its normal meaning because it is on |
2990 this list. | 2990 this list. |
2991 @end defvar | 2991 @end defvar |
2992 | 2992 |
3158 @end example | 3158 @end example |
3159 | 3159 |
3160 @noindent | 3160 @noindent |
3161 This illustrates that what matters is the property value for | 3161 This illustrates that what matters is the property value for |
3162 each character. If two consecutive characters have the same | 3162 each character. If two consecutive characters have the same |
3163 object as the @code{display} property value, it's irrelevent | 3163 object as the @code{display} property value, it's irrelevant |
3164 whether they got this property from a single call to | 3164 whether they got this property from a single call to |
3165 @code{put-text-property} or from two different calls. | 3165 @code{put-text-property} or from two different calls. |
3166 | 3166 |
3167 The rest of this section describes several kinds of | 3167 The rest of this section describes several kinds of |
3168 display specifications and what they mean. | 3168 display specifications and what they mean. |