aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfaces.c
diff options
context:
space:
mode:
authorKaroly Lorentey2006-04-19 16:23:46 +0000
committerKaroly Lorentey2006-04-19 16:23:46 +0000
commit447b0165acd09060977e05c843f81c0bee4aa4df (patch)
tree70cf2d254760a2cf68a10b67f8a3570c05fff9a5 /src/xfaces.c
parent4c57cca724993ab1334cc5c0b35c22b06daee0c3 (diff)
parent0fea1d10293b4c6d35c1e55b68cd26e91445213c (diff)
downloademacs-447b0165acd09060977e05c843f81c0bee4aa4df.tar.gz
emacs-447b0165acd09060977e05c843f81c0bee4aa4df.zip
Merged from emacs@sv.gnu.org
Patches applied: * emacs@sv.gnu.org/emacs--devo--0--patch-216 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-217 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-218 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-219 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-220 Improve tq.el. * emacs@sv.gnu.org/emacs--devo--0--patch-221 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-222 Update from CVS: src/puresize.h (PURESIZE_RATIO): Reduce to 10/6. * emacs@sv.gnu.org/emacs--devo--0--patch-223 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-224 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-225 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-226 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-227 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-228 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-229 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-230 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-231 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-232 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-233 Update from CVS: lisp/progmodes/python.el (python-mode): Fix typo. * emacs@sv.gnu.org/gnus--rel--5.10--patch-84 Merge from emacs--devo--0 * emacs@sv.gnu.org/gnus--rel--5.10--patch-85 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-86 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-550
Diffstat (limited to 'src/xfaces.c')
-rw-r--r--src/xfaces.c40
1 files changed, 22 insertions, 18 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 27edd1a45dc..3222a7bdd91 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -4991,10 +4991,12 @@ Default face attributes override any local face attributes. */)
4991 gvec = XVECTOR (global_lface)->contents; 4991 gvec = XVECTOR (global_lface)->contents;
4992 for (i = 1; i < LFACE_VECTOR_SIZE; ++i) 4992 for (i = 1; i < LFACE_VECTOR_SIZE; ++i)
4993 if (! UNSPECIFIEDP (gvec[i])) 4993 if (! UNSPECIFIEDP (gvec[i]))
4994 if (IGNORE_DEFFACE_P (gvec[i])) 4994 {
4995 lvec[i] = Qunspecified; 4995 if (IGNORE_DEFFACE_P (gvec[i]))
4996 else 4996 lvec[i] = Qunspecified;
4997 lvec[i] = gvec[i]; 4997 else
4998 lvec[i] = gvec[i];
4999 }
4998 5000
4999 return Qnil; 5001 return Qnil;
5000} 5002}
@@ -6814,20 +6816,22 @@ try_font_list (f, attrs, family, registry, fonts, prefer_face_family)
6814 6816
6815#ifdef MAC_OS 6817#ifdef MAC_OS
6816 if (nfonts == 0 && STRINGP (try_family) && STRINGP (registry)) 6818 if (nfonts == 0 && STRINGP (try_family) && STRINGP (registry))
6817 if (xstricmp (SDATA (registry), "mac-roman") == 0) 6819 {
6818 /* When realizing the default face and a font spec does not 6820 if (xstricmp (SDATA (registry), "mac-roman") == 0)
6819 matched exactly, Emacs looks for ones with the same registry 6821 /* When realizing the default face and a font spec does not
6820 as the default font. On the Mac, this is mac-roman, which 6822 matched exactly, Emacs looks for ones with the same registry
6821 does not work if the family is -etl-fixed, e.g. The 6823 as the default font. On the Mac, this is mac-roman, which
6822 following widens the choices and fixes that problem. */ 6824 does not work if the family is -etl-fixed, e.g. The
6823 nfonts = try_alternative_families (f, try_family, Qnil, fonts); 6825 following widens the choices and fixes that problem. */
6824 else if (SBYTES (try_family) > 0 6826 nfonts = try_alternative_families (f, try_family, Qnil, fonts);
6825 && SREF (try_family, SBYTES (try_family) - 1) != '*') 6827 else if (SBYTES (try_family) > 0
6826 /* Some Central European/Cyrillic font family names have the 6828 && SREF (try_family, SBYTES (try_family) - 1) != '*')
6827 Roman counterpart name as their prefix. */ 6829 /* Some Central European/Cyrillic font family names have the
6828 nfonts = try_alternative_families (f, concat2 (try_family, 6830 Roman counterpart name as their prefix. */
6829 build_string ("*")), 6831 nfonts = try_alternative_families (f, concat2 (try_family,
6830 registry, fonts); 6832 build_string ("*")),
6833 registry, fonts);
6834 }
6831#endif 6835#endif
6832 6836
6833 if (EQ (try_family, family)) 6837 if (EQ (try_family, family))