aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/font.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index fc57bdaba26..9ce8dce3604 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12013-06-18 Kenichi Handa <handa@gnu.org>
2
3 * font.c (Ffont_spec): Signal an error for an invalid font name.
4
12013-06-17 Paul Eggert <eggert@cs.ucla.edu> 52013-06-17 Paul Eggert <eggert@cs.ucla.edu>
2 6
3 Move functions from lisp.h to individual modules when possible. 7 Move functions from lisp.h to individual modules when possible.
diff --git a/src/font.c b/src/font.c
index 7bd44a5e52f..231df2ef71a 100644
--- a/src/font.c
+++ b/src/font.c
@@ -3863,7 +3863,8 @@ usage: (font-spec ARGS...) */)
3863 if (EQ (key, QCname)) 3863 if (EQ (key, QCname))
3864 { 3864 {
3865 CHECK_STRING (val); 3865 CHECK_STRING (val);
3866 font_parse_name (SSDATA (val), SBYTES (val), spec); 3866 if (font_parse_name (SSDATA (val), SBYTES (val), spec) < 0)
3867 error ("Invalid font name: %s", SSDATA (val));
3867 font_put_extra (spec, key, val); 3868 font_put_extra (spec, key, val);
3868 } 3869 }
3869 else 3870 else