aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2004-02-15 18:15:38 +0000
committerKim F. Storm2004-02-15 18:15:38 +0000
commitb2b681f163507d674868eab3ad1b2a4dccdf9c95 (patch)
tree90138ed81ed73c73d4ecc3e486bec93e0d8e34ed
parentccbc43315d0214cbba337159bb646edcfe735a13 (diff)
downloademacs-b2b681f163507d674868eab3ad1b2a4dccdf9c95.tar.gz
emacs-b2b681f163507d674868eab3ad1b2a4dccdf9c95.zip
Describe new fringe bitmap features.
-rw-r--r--etc/NEWS57
1 files changed, 49 insertions, 8 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 3e6c69d8120..2e460f4a8b4 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -97,16 +97,28 @@ cursor will be displayed in the fringe when positioned on that newline.
97The new user option 'overflow-newline-into-fringe' may be set to nil to 97The new user option 'overflow-newline-into-fringe' may be set to nil to
98revert to the old behaviour of continuing such lines. 98revert to the old behaviour of continuing such lines.
99 99
100** The buffer boundaries (i.e. first and last line in the buffer) may now 100** The buffer boundaries (i.e. first and last line in the buffer) may
101be marked with bitmaps in the fringes. In addition, up and down 101now be marked with angle bitmaps in the fringes. In addition, up and
102arrow bitmaps may be shown at the top and bottom of the right fringe 102down arrow bitmaps may be shown at the top and bottom of the left or
103if the window can be scrolled in either direction. 103right fringe if the window can be scrolled in either direction.
104 104
105This behavior is activated by setting the buffer-local variable 105This behavior is activated by setting the buffer-local variable
106`indicate-buffer-boundaries' to a non-nil value. If value is t, both 106`indicate-buffer-boundaries' to a non-nil value. The default value of
107boundaries and scrolling arrows are shown; any other non-nil value 107this variable is found in `default-indicate-buffer-boundaries'.
108shows only the buffer boundaries. The default value of this variable 108
109is found in `default-indicate-buffer-boundaries'. 109If value is `left' or `right', both angle and arrow bitmaps are
110displayed in the left or right fringe, resp. Any other non-nil value
111causes the bitmap on the top line to be displayed in the left fringe,
112and the bitmap on the bottom line in the right fringe.
113
114If value is a cons (ANGLES . ARROWS), the car specifies the position
115of the angle bitmaps, and the cdr specifies the position of the arrow
116bitmaps.
117
118For example, (t . right) places the top angle bitmap in left fringe,
119the bottom angle bitmap in right fringe, and both arrow bitmaps in
120right fringe. To show just the angle bitmaps in the left fringe, but
121no arrow bitmaps, use (left . nil).
110 122
111** New command `display-local-help' displays any local help at point 123** New command `display-local-help' displays any local help at point
112in the echo area. It is bound to `C-h .'. It normally displays the 124in the echo area. It is bound to `C-h .'. It normally displays the
@@ -1802,6 +1814,35 @@ configuration files.
1802 1814
1803* Lisp Changes in Emacs 21.4 1815* Lisp Changes in Emacs 21.4
1804 1816
1817** New function 'define-fringe-bitmap' can now be used to change the
1818built-in fringe bitmaps, as well as create new fringe bitmaps.
1819The return value is a number identifying the new fringe bitmap.
1820
1821To change a built-in bitmap, do (require 'fringe) and identify the
1822bitmap to change with the value of the corresponding symbol, like
1823`left-truncation-fringe-bitmap' or `continued-line-fringe-bitmap'.
1824
1825** New function 'destroy-fringe-bitmap' may be used to destroy a
1826previously created bitmap, or restore a built-in bitmap.
1827
1828** New function 'set-fringe-bitmap-face' can now be used to set a
1829specific face to be used for a specific fringe bitmap. Normally,
1830this should be a face derived from the `fringe' face, specifying
1831the foreground color as the desired color of the bitmap.
1832
1833** There are new display properties, left-fringe and right-fringe,
1834that can be used to show a specific bitmap in the left or right fringe
1835bitmap of the display line.
1836
1837Format is 'display '(left-fringe BITMAP [FACE]), where BITMAP is a
1838number identifying a fringe bitmap, either built-in or as returned by
1839`define-fringe-bitmap', and FACE is an optional face name to be used
1840for displaying the bitmap.
1841
1842** New function `fringe-bitmaps-at-pos' returns a cons (LEFT . RIGHT)
1843identifying the current fringe bitmaps in the display line at a given
1844buffer position. A nil value means no bitmap.
1845
1805+++ 1846+++
1806** New function `line-number-at-pos' returns line number of current 1847** New function `line-number-at-pos' returns line number of current
1807line in current buffer, or if optional buffer position is given, line 1848line in current buffer, or if optional buffer position is given, line