aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2012-10-28 11:52:42 -0400
committerStefan Monnier2012-10-28 11:52:42 -0400
commite483264ca56201eb40858242aebd2c66419fb365 (patch)
treea3cc0b19816a08fd6080d6b64d2f1bb3ba909329
parent15a8af19f431e183d9842edb6f60b117cda77319 (diff)
downloademacs-e483264ca56201eb40858242aebd2c66419fb365.tar.gz
emacs-e483264ca56201eb40858242aebd2c66419fb365.zip
* src/frame.c (x_set_font): Catch internal error.
-rw-r--r--src/ChangeLog20
-rw-r--r--src/frame.c3
2 files changed, 15 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 7f036761011..41909a7a663 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,7 +1,11 @@
12012-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * frame.c (x_set_font): Catch internal error.
4
12012-10-27 Eli Zaretskii <eliz@gnu.org> 52012-10-27 Eli Zaretskii <eliz@gnu.org>
2 6
3 Avoid overflow in w32 implementation of interval timers. When 7 Avoid overflow in w32 implementation of interval timers.
4 possible, for ITIMER_PROF count only times the main thread 8 When possible, for ITIMER_PROF count only times the main thread
5 actually executes. 9 actually executes.
6 * w32proc.c <struct itimer_data>: 'expire' and 'reload' are now 10 * w32proc.c <struct itimer_data>: 'expire' and 'reload' are now
7 'volatile ULONGLONG' types. All the other data which was 11 'volatile ULONGLONG' types. All the other data which was
@@ -11,8 +15,8 @@
11 for the timer. 15 for the timer.
12 (timer_loop): Enter critical section when accessing ULONGLONG 16 (timer_loop): Enter critical section when accessing ULONGLONG
13 values of the itimer_data struct, as these accesses are no longer 17 values of the itimer_data struct, as these accesses are no longer
14 atomic. Call 'w32_get_timer_time' instead of 'clock'. Remove 18 atomic. Call 'w32_get_timer_time' instead of 'clock'.
15 unused variable. 19 Remove unused variable.
16 (init_timers): Initialize s_pfn_Get_Thread_Times. 20 (init_timers): Initialize s_pfn_Get_Thread_Times.
17 (start_timer_thread): Don't assign itimer->caller_thread here. 21 (start_timer_thread): Don't assign itimer->caller_thread here.
18 (getitimer): Assign itimer->caller_thread here. 22 (getitimer): Assign itimer->caller_thread here.
@@ -92,8 +96,8 @@
92 96
932012-10-19 Eli Zaretskii <eliz@gnu.org> 972012-10-19 Eli Zaretskii <eliz@gnu.org>
94 98
95 * puresize.h (BASE_PURESIZE): Bump the base value to 1700000. See 99 * puresize.h (BASE_PURESIZE): Bump the base value to 1700000.
96 http://lists.gnu.org/archive/html/emacs-devel/2012-10/msg00593.html 100 See http://lists.gnu.org/archive/html/emacs-devel/2012-10/msg00593.html
97 for the reasons. 101 for the reasons.
98 102
99 * alloc.c (NSTATICS): Decrease to 0x800. 103 * alloc.c (NSTATICS): Decrease to 0x800.
@@ -712,8 +716,8 @@
712 (ns_clear_frame_area): Remove resize handle code. 716 (ns_clear_frame_area): Remove resize handle code.
713 717
714 * nsfns.m (ns_in_resize): Remove. 718 * nsfns.m (ns_in_resize): Remove.
715 (x_set_icon_name, ns_set_name, ns_set_name_as_filename): Remove 719 (x_set_icon_name, ns_set_name, ns_set_name_as_filename):
716 ns_in_resize check. 720 Remove ns_in_resize check.
717 721
7182012-10-07 Paul Eggert <eggert@cs.ucla.edu> 7222012-10-07 Paul Eggert <eggert@cs.ucla.edu>
719 723
diff --git a/src/frame.c b/src/frame.c
index 6478ad1e06f..17a99000c9b 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -3242,6 +3242,9 @@ x_set_font (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
3242 Lisp_Object ascii_font = fontset_ascii (fontset); 3242 Lisp_Object ascii_font = fontset_ascii (fontset);
3243 Lisp_Object spec = font_spec_from_name (ascii_font); 3243 Lisp_Object spec = font_spec_from_name (ascii_font);
3244 3244
3245 if (NILP (spec))
3246 signal_error ("Invalid font name", ascii_font);
3247
3245 if (! font_match_p (spec, font_object)) 3248 if (! font_match_p (spec, font_object))
3246 fontset = -1; 3249 fontset = -1;
3247 } 3250 }