changeset 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 783c81a841f6
children 6ca400aa87d9
files src/xfns.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Fri Feb 02 14:55:04 2001 +0000
+++ b/src/xfns.c	Fri Feb 02 15:27:55 2001 +0000
@@ -1831,6 +1831,8 @@
     error ("The characters of the given font have varying widths");
   else if (STRINGP (result))
     {
+      if (!NILP (Fequal (result, oldval)))
+	return;
       store_frame_param (f, Qfont, result);
       recompute_basic_faces (f);
     }