aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2008-06-16 19:11:02 +0000
committerStefan Monnier2008-06-16 19:11:02 +0000
commit93eed26bfbe11048c2d885017504591ad3cbd3c8 (patch)
treec62198a27760c25cad719d58615fa81f03f36bca /src
parent77989187bfa399f1300260893767ee6ed91e02d6 (diff)
downloademacs-93eed26bfbe11048c2d885017504591ad3cbd3c8.tar.gz
emacs-93eed26bfbe11048c2d885017504591ad3cbd3c8.zip
(font_unparse_gtkname): Use EQ to compare Lisp_Objects.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog14
-rw-r--r--src/font.c4
2 files changed, 11 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index dd86145776e..1df8b2ae032 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
4
12008-06-16 Chong Yidong <cyd@stupidchicken.com> 52008-06-16 Chong Yidong <cyd@stupidchicken.com>
2 6
3 * font.c (font_parse_fcname): Fix handling of unknown-spec string. 7 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
@@ -13,13 +17,13 @@
13 17
142008-06-16 Jason Rumney <jasonr@gnu.org> 182008-06-16 Jason Rumney <jasonr@gnu.org>
15 19
16 * font.h (font_style_symbolic_from_value): Remove. 20 * font.h (font_style_symbolic_from_value): Remove.
17 21
18 * font.c (font_style_symbolic_from_value): Remove. 22 * font.c (font_style_symbolic_from_value): Remove.
19 (font_style_symbolic): Revert to pre 2008-06-13 version. 23 (font_style_symbolic): Revert to pre 2008-06-13 version.
20 24
21 * w32font.c (w32_to_fc_weight): New function. 25 * w32font.c (w32_to_fc_weight): New function.
22 (w32font_full_name, logfont_to_fcname): Use it. 26 (w32font_full_name, logfont_to_fcname): Use it.
23 27
242008-06-16 Kenichi Handa <handa@m17n.org> 282008-06-16 Kenichi Handa <handa@m17n.org>
25 29
diff --git a/src/font.c b/src/font.c
index 420548171e5..51b7c2ec220 100644
--- a/src/font.c
+++ b/src/font.c
@@ -1734,7 +1734,7 @@ font_unparse_gtkname (font, f, name, nbytes)
1734 } 1734 }
1735 1735
1736 weight = font_style_symbolic (font, FONT_WEIGHT_INDEX, 0); 1736 weight = font_style_symbolic (font, FONT_WEIGHT_INDEX, 0);
1737 if (weight == Qnormal) 1737 if (EQ (weight, Qnormal))
1738 weight = Qnil; 1738 weight = Qnil;
1739 else if (! NILP (weight)) 1739 else if (! NILP (weight))
1740 { 1740 {
@@ -1743,7 +1743,7 @@ font_unparse_gtkname (font, f, name, nbytes)
1743 } 1743 }
1744 1744
1745 slant = font_style_symbolic (font, FONT_SLANT_INDEX, 0); 1745 slant = font_style_symbolic (font, FONT_SLANT_INDEX, 0);
1746 if (slant == Qnormal) 1746 if (EQ (slant, Qnormal))
1747 slant = Qnil; 1747 slant = Qnil;
1748 else if (! NILP (slant)) 1748 else if (! NILP (slant))
1749 { 1749 {