# HG changeset patch # User Kim F. Storm # Date 1096461567 0 # Node ID e267776b7fb26714740c937893bb5c3106802712 # Parent 3b33351faee04644bc83ed99e9ff87c4bb450321 *** empty log message *** diff -r 3b33351faee0 -r e267776b7fb2 etc/NEWS --- 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. diff -r 3b33351faee0 -r e267776b7fb2 lispref/ChangeLog --- 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) : 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 diff -r 3b33351faee0 -r e267776b7fb2 src/ChangeLog --- 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 + + * 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 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)