Mercurial > emacs
comparison src/buffer.c @ 83518:ab6ab63755f7
Merged from emacs@sv.gnu.org
Patches applied:
* emacs@sv.gnu.org/emacs--devo--0--patch-285
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-286
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-287
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-288
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-102
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-558
| author | Karoly Lorentey <lorentey@elte.hu> |
|---|---|
| date | Sat, 20 May 2006 10:32:11 +0000 |
| parents | 8976b9f5eda1 d6f5b85d7429 |
| children | c44562301a11 |
comparison
equal
deleted
inserted
replaced
| 83517:b6689e223e2f | 83518:ab6ab63755f7 |
|---|---|
| 2493 | 2493 |
| 2494 /* Find all the overlays in the current buffer that contain position POS. | 2494 /* Find all the overlays in the current buffer that contain position POS. |
| 2495 Return the number found, and store them in a vector in *VEC_PTR. | 2495 Return the number found, and store them in a vector in *VEC_PTR. |
| 2496 Store in *LEN_PTR the size allocated for the vector. | 2496 Store in *LEN_PTR the size allocated for the vector. |
| 2497 Store in *NEXT_PTR the next position after POS where an overlay starts, | 2497 Store in *NEXT_PTR the next position after POS where an overlay starts, |
| 2498 or ZV if there are no more overlays. | 2498 or ZV if there are no more overlays between POS and ZV. |
| 2499 Store in *PREV_PTR the previous position before POS where an overlay ends, | 2499 Store in *PREV_PTR the previous position before POS where an overlay ends, |
| 2500 or where an overlay starts which ends at or after POS; | 2500 or where an overlay starts which ends at or after POS; |
| 2501 or BEGV if there are no such overlays. | 2501 or BEGV if there are no such overlays from BEGV to POS. |
| 2502 NEXT_PTR and/or PREV_PTR may be 0, meaning don't store that info. | 2502 NEXT_PTR and/or PREV_PTR may be 0, meaning don't store that info. |
| 2503 | 2503 |
| 2504 *VEC_PTR and *LEN_PTR should contain a valid vector and size | 2504 *VEC_PTR and *LEN_PTR should contain a valid vector and size |
| 2505 when this function is called. | 2505 when this function is called. |
| 2506 | 2506 |
| 3967 } | 3967 } |
| 3968 | 3968 |
| 3969 DEFUN ("next-overlay-change", Fnext_overlay_change, Snext_overlay_change, | 3969 DEFUN ("next-overlay-change", Fnext_overlay_change, Snext_overlay_change, |
| 3970 1, 1, 0, | 3970 1, 1, 0, |
| 3971 doc: /* Return the next position after POS where an overlay starts or ends. | 3971 doc: /* Return the next position after POS where an overlay starts or ends. |
| 3972 If there are no more overlay boundaries after POS, return (point-max). */) | 3972 If there are no overlay boundaries from POS to (point-max), |
| 3973 the value is (point-max). */) | |
| 3973 (pos) | 3974 (pos) |
| 3974 Lisp_Object pos; | 3975 Lisp_Object pos; |
| 3975 { | 3976 { |
| 3976 int noverlays; | 3977 int noverlays; |
| 3977 int endpos; | 3978 int endpos; |
| 4008 } | 4009 } |
| 4009 | 4010 |
| 4010 DEFUN ("previous-overlay-change", Fprevious_overlay_change, | 4011 DEFUN ("previous-overlay-change", Fprevious_overlay_change, |
| 4011 Sprevious_overlay_change, 1, 1, 0, | 4012 Sprevious_overlay_change, 1, 1, 0, |
| 4012 doc: /* Return the previous position before POS where an overlay starts or ends. | 4013 doc: /* Return the previous position before POS where an overlay starts or ends. |
| 4013 If there are no more overlay boundaries before POS, return (point-min). */) | 4014 If there are no overlay boundaries from (point-min) to POS, |
| 4015 the value is (point-min). */) | |
| 4014 (pos) | 4016 (pos) |
| 4015 Lisp_Object pos; | 4017 Lisp_Object pos; |
| 4016 { | 4018 { |
| 4017 int noverlays; | 4019 int noverlays; |
| 4018 int prevpos; | 4020 int prevpos; |
