comparison src/xdisp.c @ 2884:e52ea063421a

* xdisp.c (display_text_line): If the newline (or C-m, in selective-display) has a non-default face, apply that face to the remainder of the line, so that the fill occupies the entire line.
author Jim Blandy <jimb@redhat.com>
date Wed, 19 May 1993 03:27:53 +0000
parents 80805283464a
children d9f7768b0d89
comparison
equal deleted inserted replaced
2883:b8a3b11892dc 2884:e52ea063421a
1834 if (p1 - startp > width) 1834 if (p1 - startp > width)
1835 p1 = endp; 1835 p1 = endp;
1836 copy_part_of_rope (p1prev, p1prev, invis_vector_contents, 1836 copy_part_of_rope (p1prev, p1prev, invis_vector_contents,
1837 (p1 - p1prev), current_face); 1837 (p1 - p1prev), current_face);
1838 } 1838 }
1839 #if 1
1840 /* Draw the face of the newline character as extending all the
1841 way to the end of the frame line. */
1842 if (current_face)
1843 while (p1 < endp)
1844 *p1++ = MAKE_GLYPH (' ', current_face);
1845 #endif
1839 break; 1846 break;
1840 } 1847 }
1841 else if (c == '\t') 1848 else if (c == '\t')
1842 { 1849 {
1843 do 1850 do
1860 if (p1 - startp > width) 1867 if (p1 - startp > width)
1861 p1 = endp; 1868 p1 = endp;
1862 copy_part_of_rope (p1prev, p1prev, invis_vector_contents, 1869 copy_part_of_rope (p1prev, p1prev, invis_vector_contents,
1863 (p1 - p1prev), current_face); 1870 (p1 - p1prev), current_face);
1864 } 1871 }
1872 #if 1
1873 /* Draw the face of the newline character as extending all the
1874 way to the end of the frame line. */
1875 if (current_face)
1876 while (p1 < endp)
1877 *p1++ = MAKE_GLYPH (' ', current_face);
1878 #endif
1865 break; 1879 break;
1866 } 1880 }
1867 else if (dp != 0 && XTYPE (DISP_CHAR_VECTOR (dp, c)) == Lisp_Vector) 1881 else if (dp != 0 && XTYPE (DISP_CHAR_VECTOR (dp, c)) == Lisp_Vector)
1868 { 1882 {
1869 p1 = copy_rope (p1, startp, DISP_CHAR_VECTOR (dp, c), current_face); 1883 p1 = copy_rope (p1, startp, DISP_CHAR_VECTOR (dp, c), current_face);