aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann1999-11-26 10:17:53 +0000
committerGerd Moellmann1999-11-26 10:17:53 +0000
commit18df93696d8087ac7dfde2d606298fb2b8e7d991 (patch)
treea16b402c16c5c6c609f3a58f6fc67d823ebb24fd
parentddb6e2e2058910551e412b634d582511e901c912 (diff)
downloademacs-18df93696d8087ac7dfde2d606298fb2b8e7d991.tar.gz
emacs-18df93696d8087ac7dfde2d606298fb2b8e7d991.zip
(set_lface_from_font_name): Fix previous change.
(recompute_basic_faces): Change assert to abort.
-rw-r--r--src/ChangeLog7
-rw-r--r--src/xfaces.c13
2 files changed, 13 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8866f8447bc..c6439fde6b7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
11999-11-26 Gerd Moellmann <gerd@gnu.org>
2
3 * xfaces.c (set_lface_from_font_name): Fix previous change.
4 (recompute_basic_faces): Change assert to abort.
5
11999-11-25 Dave Love <fx@gnu.org> 61999-11-25 Dave Love <fx@gnu.org>
2 7
3 * fns.c (Fnthcdr, Fnreverse): Inline cdr. 8 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
@@ -7,7 +12,7 @@
71999-11-25 Gerd Moellmann <gerd@gnu.org> 121999-11-25 Gerd Moellmann <gerd@gnu.org>
8 13
9 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p. 14 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
10 Callers changed. If specified font name is bogus, and mail_fail_p 15 Callers changed. If specified font name is bogus, and may_fail_p
11 is not set, try to use a reasonable default. 16 is not set, try to use a reasonable default.
12 17
13 * dispnew.c (direct_output_for_insert): Set glyph row's 18 * dispnew.c (direct_output_for_insert): Set glyph row's
diff --git a/src/xfaces.c b/src/xfaces.c
index 963c8ed10ff..c7b9c1adf17 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -690,10 +690,9 @@ recompute_basic_faces (f)
690{ 690{
691 if (FRAME_FACE_CACHE (f)) 691 if (FRAME_FACE_CACHE (f))
692 { 692 {
693 int realized_p;
694 clear_face_cache (0); 693 clear_face_cache (0);
695 realized_p = realize_basic_faces (f); 694 if (!realize_basic_faces (f))
696 xassert (realized_p); 695 abort ();
697 } 696 }
698} 697}
699 698
@@ -2736,7 +2735,9 @@ set_lface_from_font_name (f, lface, font_name, force_p, may_fail_p)
2736 else 2735 else
2737 { 2736 {
2738 font.name = STRDUPA (font_name); 2737 font.name = STRDUPA (font_name);
2739 if (!split_font_name (f, &font, 1)) 2738 if (split_font_name (f, &font, 1))
2739 have_font_p = 1;
2740 else
2740 { 2741 {
2741 /* The font name may be something like `6x13'. Make 2742 /* The font name may be something like `6x13'. Make
2742 sure we use the full name. */ 2743 sure we use the full name. */
@@ -2745,14 +2746,14 @@ set_lface_from_font_name (f, lface, font_name, force_p, may_fail_p)
2745 BLOCK_INPUT; 2746 BLOCK_INPUT;
2746 font_info = fs_load_font (f, FRAME_X_FONT_TABLE (f), 2747 font_info = fs_load_font (f, FRAME_X_FONT_TABLE (f),
2747 CHARSET_ASCII, font_name, -1); 2748 CHARSET_ASCII, font_name, -1);
2748 UNBLOCK_INPUT;
2749
2750 if (font_info) 2749 if (font_info)
2751 { 2750 {
2752 font.name = STRDUPA (font_info->full_name); 2751 font.name = STRDUPA (font_info->full_name);
2753 split_font_name (f, &font, 1); 2752 split_font_name (f, &font, 1);
2754 have_font_p = 1; 2753 have_font_p = 1;
2755 } 2754 }
2755
2756 UNBLOCK_INPUT;
2756 } 2757 }
2757 } 2758 }
2758 2759