aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2006-04-12 08:11:04 +0000
committerYAMAMOTO Mitsuharu2006-04-12 08:11:04 +0000
commit27d744ae6c2f51baf42dc59e24307f0fe5e60812 (patch)
tree170076d4788a6fa3a21049264b470f173c8bbf66 /src
parentf6645c84ede9e4e0df3c57aa7fa569fc1980f54e (diff)
downloademacs-27d744ae6c2f51baf42dc59e24307f0fe5e60812.tar.gz
emacs-27d744ae6c2f51baf42dc59e24307f0fe5e60812.zip
(Finternal_merge_in_global_face, try_font_list): Add
explicit braces to avoid ambiguous `else'.
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c40
1 files changed, 22 insertions, 18 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 6f966bc5d17..a0bb97f63f4 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -4974,10 +4974,12 @@ Default face attributes override any local face attributes. */)
4974 gvec = XVECTOR (global_lface)->contents; 4974 gvec = XVECTOR (global_lface)->contents;
4975 for (i = 1; i < LFACE_VECTOR_SIZE; ++i) 4975 for (i = 1; i < LFACE_VECTOR_SIZE; ++i)
4976 if (! UNSPECIFIEDP (gvec[i])) 4976 if (! UNSPECIFIEDP (gvec[i]))
4977 if (IGNORE_DEFFACE_P (gvec[i])) 4977 {
4978 lvec[i] = Qunspecified; 4978 if (IGNORE_DEFFACE_P (gvec[i]))
4979 else 4979 lvec[i] = Qunspecified;
4980 lvec[i] = gvec[i]; 4980 else
4981 lvec[i] = gvec[i];
4982 }
4981 4983
4982 return Qnil; 4984 return Qnil;
4983} 4985}
@@ -6797,20 +6799,22 @@ try_font_list (f, attrs, family, registry, fonts, prefer_face_family)
6797 6799
6798#ifdef MAC_OS 6800#ifdef MAC_OS
6799 if (nfonts == 0 && STRINGP (try_family) && STRINGP (registry)) 6801 if (nfonts == 0 && STRINGP (try_family) && STRINGP (registry))
6800 if (xstricmp (SDATA (registry), "mac-roman") == 0) 6802 {
6801 /* When realizing the default face and a font spec does not 6803 if (xstricmp (SDATA (registry), "mac-roman") == 0)
6802 matched exactly, Emacs looks for ones with the same registry 6804 /* When realizing the default face and a font spec does not
6803 as the default font. On the Mac, this is mac-roman, which 6805 matched exactly, Emacs looks for ones with the same registry
6804 does not work if the family is -etl-fixed, e.g. The 6806 as the default font. On the Mac, this is mac-roman, which
6805 following widens the choices and fixes that problem. */ 6807 does not work if the family is -etl-fixed, e.g. The
6806 nfonts = try_alternative_families (f, try_family, Qnil, fonts); 6808 following widens the choices and fixes that problem. */
6807 else if (SBYTES (try_family) > 0 6809 nfonts = try_alternative_families (f, try_family, Qnil, fonts);
6808 && SREF (try_family, SBYTES (try_family) - 1) != '*') 6810 else if (SBYTES (try_family) > 0
6809 /* Some Central European/Cyrillic font family names have the 6811 && SREF (try_family, SBYTES (try_family) - 1) != '*')
6810 Roman counterpart name as their prefix. */ 6812 /* Some Central European/Cyrillic font family names have the
6811 nfonts = try_alternative_families (f, concat2 (try_family, 6813 Roman counterpart name as their prefix. */
6812 build_string ("*")), 6814 nfonts = try_alternative_families (f, concat2 (try_family,
6813 registry, fonts); 6815 build_string ("*")),
6816 registry, fonts);
6817 }
6814#endif 6818#endif
6815 6819
6816 if (EQ (try_family, family)) 6820 if (EQ (try_family, family))