1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 04:10:27 -08:00
Commit graph

19 commits

Author SHA1 Message Date
Kim F. Storm
c3c69bb625 (destroy_fringe_bitmap): Fix return type.
(Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
2004-11-09 13:23:32 +00:00
Kim F. Storm
81544a1d14 (update_window_fringes): Update fringe bitmaps if
cur and row ends_at_zv_p differs.  If bitmaps of a row is updated,
also update previous row to get rid of misc. artifacts.
2004-11-08 23:34:12 +00:00
Kim F. Storm
11491cbb2a (draw_window_fringes): Return value now indicates if
any fringe bitmaps were redrawn (or there are no fringes).
2004-10-07 21:57:53 +00:00
Kim F. Storm
d3848fe90d (Ffringe_bitmaps_at_pos): Change return value from cons
to list.  Include overlay arrow bitmap in return value.
2004-10-04 14:13:18 +00:00
Kim F. Storm
ad67849eb3 Remove limit on number of bitmaps.
(fringe_bitmaps, fringe_faces): Change to pointers.
(max_fringe_bitmaps): New var.
(Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
(init_fringe): Allocate fringe_bitmaps and fringe_faces.
2004-09-29 14:22:25 +00:00
Kim F. Storm
4cce0ab79f Simplify 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.
2004-09-29 11:57:48 +00:00
Kim F. Storm
f2be4fd018 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
(w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
2004-09-29 08:51:40 +00:00
Kim F. Storm
7a2a85be99 (Vfringe_bitmaps): New variable.
(syms_of_fringe): DEFVAR_LISP it.
(valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
Change arg to Lisp_Object and fail if not an integer.
(get_fringe_bitmap_name, resolve_fringe_bitmap)
(destroy_fringe_bitmap): New functions.
(Fdestroy_fringe_bitmap): Change arg to bitmap symbol.  Use
destroy_fringe_bitmap.  Remove symbol from Vfringe_bitmaps and
clear its fringe property.
(init_fringe_bitmap): Use destroy_fringe_bitmap instead of
Fdestroy_fringe_bitmap.
(Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
bitmap symbol; remove WHICH arg.  Add symbol to Vfringe_bitmaps
and set fringe property.  Signal error if no free slots.
(Fset_fringe_bitmap_face): Change arg to bitmap symbol.
(Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
2004-09-28 23:02:53 +00:00
Kim F. Storm
5797a7a0fc (update_window_fringes): Handle new formats of
indicate-buffer-boundaries (symbol or alist).  No longer
allow a simple cons.
(Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
2004-09-27 13:28:23 +00:00
Kim F. Storm
1c2a9e9882 (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
(update_window_fringes): Remove unused code.
2004-03-01 23:56:44 +00:00
Juanma Barranquero
bffe8c261b (Fdefine_fringe_bitmap): Fix typo in docstring. 2004-03-01 18:46:48 +00:00
Andreas Schwab
beaedd5620 (Fdefine_fringe_bitmap): Use && instead of & to avoid
warning.
2004-02-19 11:11:39 +00:00
Stephen Eglen
159c348e36 (init_fringe_bitmap): Define j in MAC_OS code. 2004-02-16 11:54:29 +00:00
Stefan Monnier
d2f1499943 Lisp_Object/int mixup. 2004-02-16 04:53:28 +00:00
Kim F. Storm
bd23113188 (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]: Perform byte-swapping. 2004-02-15 16:19:00 +00:00
Kim F. Storm
d30b6b3390 (Ffringe_bitmaps_at_pos): Add missing arg declarations. 2004-02-13 23:44:37 +00:00
Kim F. Storm
0881a0fd14 (struct fringe_bitmap): Change member bits from char to
short to facilitate 16 bits wide bitmaps.  Modify all standard
bitmaps accordingly.
(BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
(FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
(draw_fringe_bitmap): Ditto.
(init_fringe_bitmap) [MAC_OS]: Don't bitswap.
(init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
handle up to 16 bits wide bitmaps.
(Fdefine_fringe_bitmap): Doc fix.  Handle wider bitmaps.
2004-02-13 23:28:52 +00:00
Miles Bader
429e7e2d69 Resolve CVS conflicts 2004-02-09 12:42:04 +00:00
Kim F. Storm
2d05deefc7 New file. Move original fringe related declarations
and code from dispextern.h and xdisp.c here.
Rework code to support user defined fringe bitmaps, redefining
standard bitmaps, ability to overlay user defined bitmap with
overlay arrow bitmap, and add faces to bitmaps.
(Voverflow_newline_into_fringe): Declare here.
(enum fringe_bitmap_align): New enum.
(..._bits): All bitmaps are now defined without bitswapping; that
is now done in init_fringe_once (if necessary).
(standard_bitmaps): New array with specifications for the
standard fringe bitmaps.
(fringe_faces): New array.
(valid_fringe_bitmap_id_p): New function.
(draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
(draw_fringe_bitmap): New function which draws fringe bitmap,
possibly overlaying bitmap with cursor in right fringe or the
overlay arrow in the left fringe.
(update_window_fringes): Do not handle overlay arrow here.
Compare and copy fringe bitmap faces.
(init_fringe_bitmap): New function.
(Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
define and destroy user defined fringe bitmaps.
(Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
(Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
(syms_of_fringe): New function.  Defsubr new DEFUNs.
DEFVAR_LISP Voverflow_newline_into_fringe.
(init_fringe_once, init_fringe): New functions.
(w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
2004-02-08 23:18:16 +00:00