aboutsummaryrefslogtreecommitdiffstats
path: root/src/fringe.c
Commit message (Collapse)AuthorAgeFilesLines
* (draw_window_fringes): Return value now indicates ifKim F. Storm2004-10-071-9/+24
| | | | any fringe bitmaps were redrawn (or there are no fringes).
* (Ffringe_bitmaps_at_pos): Change return value from consKim F. Storm2004-10-041-5/+7
| | | | to list. Include overlay arrow bitmap in return value.
* Remove limit on number of bitmaps.Kim F. Storm2004-09-291-11/+38
| | | | | | | (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.
* Simplify last change.Kim F. Storm2004-09-291-61/+33
| | | | | | | | | (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.
* * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)Kim F. Storm2004-09-291-2/+8
| | | | (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
* (Vfringe_bitmaps): New variable.Kim F. Storm2004-09-281-48/+152
| | | | | | | | | | | | | | | | | | (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.
* (update_window_fringes): Handle new formats ofKim F. Storm2004-09-271-43/+51
| | | | | | indicate-buffer-boundaries (symbol or alist). No longer allow a simple cons. (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
* (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.Kim F. Storm2004-03-011-5/+4
| | | | (update_window_fringes): Remove unused code.
* (Fdefine_fringe_bitmap): Fix typo in docstring.Juanma Barranquero2004-03-011-8/+8
|
* (Fdefine_fringe_bitmap): Use && instead of & to avoidAndreas Schwab2004-02-191-4/+4
| | | | warning.
* (init_fringe_bitmap): Define j in MAC_OS code.Stephen Eglen2004-02-161-0/+1
|
* Lisp_Object/int mixup.Stefan Monnier2004-02-161-1/+1
|
* (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]: Perform byte-swapping.Kim F. Storm2004-02-151-4/+15
|
* (Ffringe_bitmaps_at_pos): Add missing arg declarations.Kim F. Storm2004-02-131-0/+1
|
* (struct fringe_bitmap): Change member bits from char toKim F. Storm2004-02-131-47/+73
| | | | | | | | | | | | 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.
* Resolve CVS conflictsMiles Bader2004-02-091-0/+2
|
* New file. Move original fringe related declarationsKim F. Storm2004-02-081-0/+1318
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.