Mercurial > emacs
comparison src/xfns.c @ 35859:c9edddbb8dbf
(x_set_font): If font hasn't changed, avoid recomputing
faces and other things.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 02 Feb 2001 15:27:55 +0000 |
parents | 74e2d9de2fc1 |
children | a8630c63f7d5 |
comparison
equal
deleted
inserted
replaced
35858:783c81a841f6 | 35859:c9edddbb8dbf |
---|---|
1829 error ("Font `%s' is not defined", XSTRING (arg)->data); | 1829 error ("Font `%s' is not defined", XSTRING (arg)->data); |
1830 else if (EQ (result, Qt)) | 1830 else if (EQ (result, Qt)) |
1831 error ("The characters of the given font have varying widths"); | 1831 error ("The characters of the given font have varying widths"); |
1832 else if (STRINGP (result)) | 1832 else if (STRINGP (result)) |
1833 { | 1833 { |
1834 if (!NILP (Fequal (result, oldval))) | |
1835 return; | |
1834 store_frame_param (f, Qfont, result); | 1836 store_frame_param (f, Qfont, result); |
1835 recompute_basic_faces (f); | 1837 recompute_basic_faces (f); |
1836 } | 1838 } |
1837 else | 1839 else |
1838 abort (); | 1840 abort (); |