Mercurial > hg > xemacs-beta
comparison src/editfns.c @ 211:78478c60bfcd r20-4b4
Import from CVS: tag r20-4b4
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:05:51 +0200 |
parents | 850242ba4a81 |
children | 262b8bb4a523 |
comparison
equal
deleted
inserted
replaced
210:49f55ca3ba57 | 211:78478c60bfcd |
---|---|
34 #include "events.h" /* for EVENTP */ | 34 #include "events.h" /* for EVENTP */ |
35 #include "extents.h" | 35 #include "extents.h" |
36 #include "frame.h" | 36 #include "frame.h" |
37 #include "insdel.h" | 37 #include "insdel.h" |
38 #include "window.h" | 38 #include "window.h" |
39 #include "line-number.h" | |
39 | 40 |
40 #include "systime.h" | 41 #include "systime.h" |
41 #include "sysdep.h" | 42 #include "sysdep.h" |
42 #include "syspwd.h" | 43 #include "syspwd.h" |
43 | 44 |
1738 if (!no_clip) | 1739 if (!no_clip) |
1739 MARK_CLIP_CHANGED; | 1740 MARK_CLIP_CHANGED; |
1740 /* Changing the buffer bounds invalidates any recorded current | 1741 /* Changing the buffer bounds invalidates any recorded current |
1741 column. */ | 1742 column. */ |
1742 invalidate_current_column (); | 1743 invalidate_current_column (); |
1744 narrow_line_number_cache (b); | |
1743 } | 1745 } |
1744 } | 1746 } |
1745 | 1747 |
1746 DEFUN ("widen", Fwiden, 0, 1, "", /* | 1748 DEFUN ("widen", Fwiden, 0, 1, "", /* |
1747 Remove restrictions (narrowing) from BUFFER. | 1749 Remove restrictions (narrowing) from BUFFER. |
1784 if (BUF_PT (buf) > end) | 1786 if (BUF_PT (buf) > end) |
1785 BUF_SET_PT (buf, end); | 1787 BUF_SET_PT (buf, end); |
1786 MARK_CLIP_CHANGED; | 1788 MARK_CLIP_CHANGED; |
1787 /* Changing the buffer bounds invalidates any recorded current column. */ | 1789 /* Changing the buffer bounds invalidates any recorded current column. */ |
1788 invalidate_current_column (); | 1790 invalidate_current_column (); |
1791 narrow_line_number_cache (buf); | |
1789 zmacs_region_stays = 0; | 1792 zmacs_region_stays = 0; |
1790 return Qnil; | 1793 return Qnil; |
1791 } | 1794 } |
1792 | 1795 |
1793 Lisp_Object | 1796 Lisp_Object |
1842 | 1845 |
1843 if (BUF_BEGV (buf) != start) | 1846 if (BUF_BEGV (buf) != start) |
1844 { | 1847 { |
1845 local_clip_changed = 1; | 1848 local_clip_changed = 1; |
1846 SET_BOTH_BUF_BEGV (buf, start, bi_start); | 1849 SET_BOTH_BUF_BEGV (buf, start, bi_start); |
1850 narrow_line_number_cache (buf); | |
1847 } | 1851 } |
1848 if (BUF_ZV (buf) != end) | 1852 if (BUF_ZV (buf) != end) |
1849 { | 1853 { |
1850 local_clip_changed = 1; | 1854 local_clip_changed = 1; |
1851 SET_BOTH_BUF_ZV (buf, end, bi_end); | 1855 SET_BOTH_BUF_ZV (buf, end, bi_end); |