changeset 57273:e267776b7fb2

*** empty log message ***
author Kim F. Storm <storm@cua.dk>
date Wed, 29 Sep 2004 12:39:27 +0000
parents 3b33351faee0
children 271dfa08c2d0
files etc/NEWS lispref/ChangeLog src/ChangeLog
diffstat 3 files changed, 32 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/etc/NEWS	Wed Sep 29 12:37:58 2004 +0000
+++ b/etc/NEWS	Wed Sep 29 12:39:27 2004 +0000
@@ -382,18 +382,15 @@
 this variable is found in `default-indicate-buffer-boundaries'.
 
 If value is `left' or `right', both angle and arrow bitmaps are
-displayed in the left or right fringe, resp.  Any other non-nil value
-causes the bitmap on the top line to be displayed in the left fringe,
-and the bitmap on the bottom line in the right fringe.
-
-If value is a cons (ANGLES . ARROWS), the car specifies the position
-of the angle bitmaps, and the cdr specifies the position of the arrow
-bitmaps.
-
-For example, (t .  right) places the top angle bitmap in left fringe,
-the bottom angle bitmap in right fringe, and both arrow bitmaps in
-right fringe.  To show just the angle bitmaps in the left fringe, but
-no arrow bitmaps, use (left . nil).
+displayed in the left or right fringe, resp.
+
+Value may also be an alist which specifies the presense and position
+of each bitmap individually.
+
+For example, ((top . left) (t .  right)) places the top angle bitmap
+in left fringe, the bottom angle bitmap in right fringe, and both
+arrow bitmaps in right fringe.  To show just the angle bitmaps in the
+left fringe, but no arrow bitmaps, use ((top . left) (bottom . left)).
 
 ** New command `display-local-help' displays any local help at point
 in the echo area.  It is bound to `C-h .'.  It normally displays the
@@ -2463,13 +2460,11 @@
 +++
 ** Customizable fringe bitmaps
 
-*** New function 'define-fringe-bitmap' can now be used to change the
-built-in fringe bitmaps, as well as create new fringe bitmaps.
-The return value is a number identifying the new fringe bitmap.
-
-To change a built-in bitmap, do (require 'fringe) and identify the
-bitmap to change with the value of the corresponding symbol, like
-`left-truncation-fringe-bitmap' or `continued-line-fringe-bitmap'.
+*** New function 'define-fringe-bitmap' can now be used to create new
+fringe bitmaps, as well as change the built-in fringe bitmaps.
+
+To change a built-in bitmap, do (require 'fringe) and use the symbol
+identifing the bitmap such as `left-truncation or `continued-line'.
 
 *** New function 'destroy-fringe-bitmap' may be used to destroy a
 previously created bitmap, or restore a built-in bitmap.
@@ -2484,7 +2479,7 @@
 bitmap of the display line.
 
 Format is 'display '(left-fringe BITMAP [FACE]), where BITMAP is a
-number identifying a fringe bitmap, either built-in or as returned by
+symbol identifying a fringe bitmap, either built-in or defined with
 `define-fringe-bitmap', and FACE is an optional face name to be used
 for displaying the bitmap.
 
--- a/lispref/ChangeLog	Wed Sep 29 12:37:58 2004 +0000
+++ b/lispref/ChangeLog	Wed Sep 29 12:39:27 2004 +0000
@@ -3,7 +3,8 @@
 	* display.texi (Fringe Bitmaps): Use symbols rather than numbers
 	to identify bitmaps.  Remove -fringe-bitmap suffix for standard
 	fringe bitmap symbols, as they now have their own namespace.
-	(Customizing Bitmaps): Signal error if no free bitmap slots.
+	(Customizing Bitmaps) <define-fringe-bitmap>: Clarify bit ordering
+	vs. pixels.  Signal error if no free bitmap slots.
 	(Pixel Specification): Change IMAGE to @var{image}.
 
 2004-09-28  Richard M. Stallman  <rms@gnu.org>
--- a/src/ChangeLog	Wed Sep 29 12:37:58 2004 +0000
+++ b/src/ChangeLog	Wed Sep 29 12:39:27 2004 +0000
@@ -1,3 +1,18 @@
+2004-09-29  Kim F. Storm  <storm@cua.dk>
+
+	* fringe.c: Simplity last change.
+	(lookup_fringe_bitmap): New function.
+	(valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
+	(Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
+	Keep standard bitmaps in Vfringe_bitmaps.
+	(Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
+	(Fset_fringe_bitmap_face): Likewise.
+
+	* dispextern.h (lookup_fringe_bitmap): Add prototype.
+	(valid_fringe_bitmap_p): Remove prototype.
+
+	* xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
+
 2004-09-29  Kim F. Storm  <storm@cua.dk>
 
 	* fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)