Mercurial > emacs
comparison src/xdisp.c @ 30697:0b56d5da235e
(next_overlay_change): Update call to overlays_at.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Tue, 08 Aug 2000 23:49:38 +0000 |
parents | 8a516a1f76a7 |
children | 43684600b975 |
comparison
equal
deleted
inserted
replaced
30696:5d83aa68f248 | 30697:0b56d5da235e |
---|---|
1 /* Display generation from window structure and buffer text. | 1 /* Display generation from window structure and buffer text. |
2 Copyright (C) 1985, 86, 87, 88, 93, 94, 95, 97, 98, 99 | 2 Copyright (C) 1985, 86, 87, 88, 93, 94, 95, 97, 98, 99, 2000 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 | 4 |
5 This file is part of GNU Emacs. | 5 This file is part of GNU Emacs. |
6 | 6 |
7 GNU Emacs is free software; you can redistribute it and/or modify | 7 GNU Emacs is free software; you can redistribute it and/or modify |
1806 int i; | 1806 int i; |
1807 | 1807 |
1808 /* Get all overlays at the given position. */ | 1808 /* Get all overlays at the given position. */ |
1809 len = 10; | 1809 len = 10; |
1810 overlays = (Lisp_Object *) alloca (len * sizeof *overlays); | 1810 overlays = (Lisp_Object *) alloca (len * sizeof *overlays); |
1811 noverlays = overlays_at (pos, 0, &overlays, &len, &endpos, NULL); | 1811 noverlays = overlays_at (pos, 0, &overlays, &len, &endpos, NULL, 1); |
1812 if (noverlays > len) | 1812 if (noverlays > len) |
1813 { | 1813 { |
1814 len = noverlays; | 1814 len = noverlays; |
1815 overlays = (Lisp_Object *) alloca (len * sizeof *overlays); | 1815 overlays = (Lisp_Object *) alloca (len * sizeof *overlays); |
1816 noverlays = overlays_at (pos, 0, &overlays, &len, &endpos, NULL); | 1816 noverlays = overlays_at (pos, 0, &overlays, &len, &endpos, NULL, 1); |
1817 } | 1817 } |
1818 | 1818 |
1819 /* If any of these overlays ends before endpos, | 1819 /* If any of these overlays ends before endpos, |
1820 use its ending point instead. */ | 1820 use its ending point instead. */ |
1821 for (i = 0; i < noverlays; ++i) | 1821 for (i = 0; i < noverlays; ++i) |