comparison etc/NEWS @ 53959:6ceda592438c

Describe new fringe bitmap features.
author Kim F. Storm <storm@cua.dk>
date Sun, 15 Feb 2004 18:15:38 +0000
parents 688ea73ebafe
children d78e05a984ee
comparison
equal deleted inserted replaced
53958:1aa8132576ec 53959:6ceda592438c
95 cursor will be displayed in the fringe when positioned on that newline. 95 cursor will be displayed in the fringe when positioned on that newline.
96 96
97 The new user option 'overflow-newline-into-fringe' may be set to nil to 97 The new user option 'overflow-newline-into-fringe' may be set to nil to
98 revert to the old behaviour of continuing such lines. 98 revert 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
101 be marked with bitmaps in the fringes. In addition, up and down 101 now be marked with angle bitmaps in the fringes. In addition, up and
102 arrow bitmaps may be shown at the top and bottom of the right fringe 102 down arrow bitmaps may be shown at the top and bottom of the left or
103 if the window can be scrolled in either direction. 103 right fringe if the window can be scrolled in either direction.
104 104
105 This behavior is activated by setting the buffer-local variable 105 This 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
107 boundaries and scrolling arrows are shown; any other non-nil value 107 this variable is found in `default-indicate-buffer-boundaries'.
108 shows only the buffer boundaries. The default value of this variable 108
109 is found in `default-indicate-buffer-boundaries'. 109 If value is `left' or `right', both angle and arrow bitmaps are
110 displayed in the left or right fringe, resp. Any other non-nil value
111 causes the bitmap on the top line to be displayed in the left fringe,
112 and the bitmap on the bottom line in the right fringe.
113
114 If value is a cons (ANGLES . ARROWS), the car specifies the position
115 of the angle bitmaps, and the cdr specifies the position of the arrow
116 bitmaps.
117
118 For example, (t . right) places the top angle bitmap in left fringe,
119 the bottom angle bitmap in right fringe, and both arrow bitmaps in
120 right fringe. To show just the angle bitmaps in the left fringe, but
121 no 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
112 in the echo area. It is bound to `C-h .'. It normally displays the 124 in the echo area. It is bound to `C-h .'. It normally displays the
113 same string that would be displayed on mouse-over using the 125 same string that would be displayed on mouse-over using the
114 `help-echo' property, but, in certain cases, it can display a more 126 `help-echo' property, but, in certain cases, it can display a more
1799 1811
1800 ** `cfengine-mode' is a major mode for editing GNU Cfengine 1812 ** `cfengine-mode' is a major mode for editing GNU Cfengine
1801 configuration files. 1813 configuration files.
1802 1814
1803 * Lisp Changes in Emacs 21.4 1815 * Lisp Changes in Emacs 21.4
1816
1817 ** New function 'define-fringe-bitmap' can now be used to change the
1818 built-in fringe bitmaps, as well as create new fringe bitmaps.
1819 The return value is a number identifying the new fringe bitmap.
1820
1821 To change a built-in bitmap, do (require 'fringe) and identify the
1822 bitmap 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
1826 previously created bitmap, or restore a built-in bitmap.
1827
1828 ** New function 'set-fringe-bitmap-face' can now be used to set a
1829 specific face to be used for a specific fringe bitmap. Normally,
1830 this should be a face derived from the `fringe' face, specifying
1831 the foreground color as the desired color of the bitmap.
1832
1833 ** There are new display properties, left-fringe and right-fringe,
1834 that can be used to show a specific bitmap in the left or right fringe
1835 bitmap of the display line.
1836
1837 Format is 'display '(left-fringe BITMAP [FACE]), where BITMAP is a
1838 number 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
1840 for displaying the bitmap.
1841
1842 ** New function `fringe-bitmaps-at-pos' returns a cons (LEFT . RIGHT)
1843 identifying the current fringe bitmaps in the display line at a given
1844 buffer position. A nil value means no bitmap.
1804 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
1807 line in current buffer, or if optional buffer position is given, line 1848 line in current buffer, or if optional buffer position is given, line
1808 number of corresponding line in current buffer. 1849 number of corresponding line in current buffer.