comparison src/buffer.c @ 70697:d6f5b85d7429

(Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
author Richard M. Stallman <rms@gnu.org>
date Wed, 17 May 2006 22:26:51 +0000
parents 01488e1b40d1
children 8168db834af2 ab6ab63755f7
comparison
equal deleted inserted replaced
70696:a678a92fb660 70697:d6f5b85d7429
2463 2463
2464 /* Find all the overlays in the current buffer that contain position POS. 2464 /* Find all the overlays in the current buffer that contain position POS.
2465 Return the number found, and store them in a vector in *VEC_PTR. 2465 Return the number found, and store them in a vector in *VEC_PTR.
2466 Store in *LEN_PTR the size allocated for the vector. 2466 Store in *LEN_PTR the size allocated for the vector.
2467 Store in *NEXT_PTR the next position after POS where an overlay starts, 2467 Store in *NEXT_PTR the next position after POS where an overlay starts,
2468 or ZV if there are no more overlays. 2468 or ZV if there are no more overlays between POS and ZV.
2469 Store in *PREV_PTR the previous position before POS where an overlay ends, 2469 Store in *PREV_PTR the previous position before POS where an overlay ends,
2470 or where an overlay starts which ends at or after POS; 2470 or where an overlay starts which ends at or after POS;
2471 or BEGV if there are no such overlays. 2471 or BEGV if there are no such overlays from BEGV to POS.
2472 NEXT_PTR and/or PREV_PTR may be 0, meaning don't store that info. 2472 NEXT_PTR and/or PREV_PTR may be 0, meaning don't store that info.
2473 2473
2474 *VEC_PTR and *LEN_PTR should contain a valid vector and size 2474 *VEC_PTR and *LEN_PTR should contain a valid vector and size
2475 when this function is called. 2475 when this function is called.
2476 2476
3937 } 3937 }
3938 3938
3939 DEFUN ("next-overlay-change", Fnext_overlay_change, Snext_overlay_change, 3939 DEFUN ("next-overlay-change", Fnext_overlay_change, Snext_overlay_change,
3940 1, 1, 0, 3940 1, 1, 0,
3941 doc: /* Return the next position after POS where an overlay starts or ends. 3941 doc: /* Return the next position after POS where an overlay starts or ends.
3942 If there are no more overlay boundaries after POS, return (point-max). */) 3942 If there are no overlay boundaries from POS to (point-max),
3943 the value is (point-max). */)
3943 (pos) 3944 (pos)
3944 Lisp_Object pos; 3945 Lisp_Object pos;
3945 { 3946 {
3946 int noverlays; 3947 int noverlays;
3947 int endpos; 3948 int endpos;
3978 } 3979 }
3979 3980
3980 DEFUN ("previous-overlay-change", Fprevious_overlay_change, 3981 DEFUN ("previous-overlay-change", Fprevious_overlay_change,
3981 Sprevious_overlay_change, 1, 1, 0, 3982 Sprevious_overlay_change, 1, 1, 0,
3982 doc: /* Return the previous position before POS where an overlay starts or ends. 3983 doc: /* Return the previous position before POS where an overlay starts or ends.
3983 If there are no more overlay boundaries before POS, return (point-min). */) 3984 If there are no overlay boundaries from (point-min) to POS,
3985 the value is (point-min). */)
3984 (pos) 3986 (pos)
3985 Lisp_Object pos; 3987 Lisp_Object pos;
3986 { 3988 {
3987 int noverlays; 3989 int noverlays;
3988 int prevpos; 3990 int prevpos;