Mercurial > emacs
comparison src/buffer.c @ 7985:f6c309d5d314
(Fmove_overlay): Call redisplay_region even when
changing to a different buffer.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Mon, 20 Jun 1994 23:10:07 +0000 |
| parents | b3be53811505 |
| children | c5b7f74b5023 |
comparison
equal
deleted
inserted
replaced
| 7984:bc835acd2ade | 7985:f6c309d5d314 |
|---|---|
| 1842 b = XBUFFER (buffer); | 1842 b = XBUFFER (buffer); |
| 1843 ob = XBUFFER (obuffer); | 1843 ob = XBUFFER (obuffer); |
| 1844 | 1844 |
| 1845 /* If the overlay has changed buffers, do a thorough redisplay. */ | 1845 /* If the overlay has changed buffers, do a thorough redisplay. */ |
| 1846 if (!EQ (buffer, obuffer)) | 1846 if (!EQ (buffer, obuffer)) |
| 1847 windows_or_buffers_changed = 1; | 1847 { |
| 1848 /* Redisplay where the overlay was. */ | |
| 1849 if (!NILP (obuffer)) | |
| 1850 { | |
| 1851 Lisp_Object o_beg; | |
| 1852 Lisp_Object o_end; | |
| 1853 | |
| 1854 o_beg = OVERLAY_START (overlay); | |
| 1855 o_end = OVERLAY_END (overlay); | |
| 1856 o_beg = OVERLAY_POSITION (o_beg); | |
| 1857 o_end = OVERLAY_POSITION (o_end); | |
| 1858 | |
| 1859 redisplay_region (b, XINT (o_beg), XINT (o_end)); | |
| 1860 } | |
| 1861 | |
| 1862 /* Redisplay where the overlay is going to be. */ | |
| 1863 redisplay_region (ob, beg, end); | |
| 1864 | |
| 1865 /* Don't limit redisplay to the selected window. */ | |
| 1866 windows_or_buffers_changed = 1; | |
| 1867 } | |
| 1848 else | 1868 else |
| 1849 /* Redisplay the area the overlay has just left, or just enclosed. */ | 1869 /* Redisplay the area the overlay has just left, or just enclosed. */ |
| 1850 { | 1870 { |
| 1851 Lisp_Object o_beg; | 1871 Lisp_Object o_beg; |
| 1852 Lisp_Object o_end; | 1872 Lisp_Object o_end; |
