comparison src/fringe.c @ 57316:3eb68ef1dcb7

(Ffringe_bitmaps_at_pos): Change return value from cons to list. Include overlay arrow bitmap in return value.
author Kim F. Storm <storm@cua.dk>
date Mon, 04 Oct 2004 14:13:18 +0000
parents 85230b6628b3
children 3c27c0be625d d83f49cefda3
comparison
equal deleted inserted replaced
57315:0d912ccf6554 57316:3eb68ef1dcb7
1341 1341
1342 DEFUN ("fringe-bitmaps-at-pos", Ffringe_bitmaps_at_pos, Sfringe_bitmaps_at_pos, 1342 DEFUN ("fringe-bitmaps-at-pos", Ffringe_bitmaps_at_pos, Sfringe_bitmaps_at_pos,
1343 0, 2, 0, 1343 0, 2, 0,
1344 doc: /* Return fringe bitmaps of row containing position POS in window WINDOW. 1344 doc: /* Return fringe bitmaps of row containing position POS in window WINDOW.
1345 If WINDOW is nil, use selected window. If POS is nil, use value of point 1345 If WINDOW is nil, use selected window. If POS is nil, use value of point
1346 in that window. Return value is a cons (LEFT . RIGHT) where LEFT and RIGHT 1346 in that window. Return value is a list (LEFT RIGHT OV), where LEFT
1347 are the fringe bitmap numbers for the bitmaps in the left and right fringe, 1347 is the symbol for the bitmap in the left fringe (or nil if no bitmap),
1348 resp. If left or right fringe is empty, the corresponding element is nil. 1348 RIGHT is similar for the right fringe, and OV is non-nil if there is an
1349 overlay arrow in the left fringe.
1349 Return nil if POS is not visible in WINDOW. */) 1350 Return nil if POS is not visible in WINDOW. */)
1350 (pos, window) 1351 (pos, window)
1351 Lisp_Object pos, window; 1352 Lisp_Object pos, window;
1352 { 1353 {
1353 struct window *w; 1354 struct window *w;
1371 textpos = XMARKER (w->pointm)->charpos; 1372 textpos = XMARKER (w->pointm)->charpos;
1372 1373
1373 row = MATRIX_FIRST_TEXT_ROW (w->current_matrix); 1374 row = MATRIX_FIRST_TEXT_ROW (w->current_matrix);
1374 row = row_containing_pos (w, textpos, row, NULL, 0); 1375 row = row_containing_pos (w, textpos, row, NULL, 0);
1375 if (row) 1376 if (row)
1376 return Fcons (get_fringe_bitmap_name (row->left_fringe_bitmap), 1377 return list3 (get_fringe_bitmap_name (row->left_fringe_bitmap),
1377 get_fringe_bitmap_name (row->right_fringe_bitmap)); 1378 get_fringe_bitmap_name (row->right_fringe_bitmap),
1379 (row->overlay_arrow_p ? Qt : Qnil));
1378 else 1380 else
1379 return Qnil; 1381 return Qnil;
1380 } 1382 }
1381 1383
1382 1384