aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2002-04-19 18:38:16 +0000
committerStefan Monnier2002-04-19 18:38:16 +0000
commit3d90c96c540ff2219a26ce0b3242b5050c16073d (patch)
tree38559f5e259a861e979e9b5998a2491b30d86557 /src
parentc37adaa5eaf360904ee4f32d01fa998c496d28a6 (diff)
downloademacs-3d90c96c540ff2219a26ce0b3242b5050c16073d.tar.gz
emacs-3d90c96c540ff2219a26ce0b3242b5050c16073d.zip
(clear_font_table): Don't free the default font of
a frame even if it's on another display. (Finternal_set_lisp_face_attribute): Don't use XFRAME on something that could be Qt.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog16
-rw-r--r--src/xfaces.c5
2 files changed, 13 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 286ee38b7fc..0aafb69a5fa 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12002-04-19 Stefan Monnier <monnier@cs.yale.edu>
2
3 * xfaces.c (clear_font_table): Don't free the default font of
4 a frame even if it's on another display.
5 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
6 that could be Qt.
7
12002-04-19 Juanma Barranquero <lektu@terra.es> 82002-04-19 Juanma Barranquero <lektu@terra.es>
2 9
3 * indent.c (Fmove_to_column): Remove unused local variable 10 * indent.c (Fmove_to_column): Remove unused local variable
@@ -7,7 +14,7 @@
72002-04-19 Eli Zaretskii <eliz@is.elta.co.il> 142002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8 15
9 * msdos.c (Qhbar): New variable. 16 * msdos.c (Qhbar): New variable.
10 (syms_of_msdos): intern and staticpro it. 17 (syms_of_msdos): Intern and staticpro it.
11 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar' 18 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
12 cursor type. 19 cursor type.
13 20
@@ -22,7 +29,7 @@
22 (x_display_and_set_cursor): Handle the HBAR_CURSOR case. 29 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
23 30
24 * xfns.c (Qhbar): New variable. 31 * xfns.c (Qhbar): New variable.
25 (syms_of_xfns): intern and staticpro it. 32 (syms_of_xfns): Intern and staticpro it.
26 (x_specified_cursor_type): Handle `hbar' cursor. 33 (x_specified_cursor_type): Handle `hbar' cursor.
27 34
28 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is 35 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
@@ -44,8 +51,7 @@
44 51
452002-04-17 Juanma Barranquero <lektu@terra.es> 522002-04-17 Juanma Barranquero <lektu@terra.es>
46 53
47 * indent.c (Fmove_to_column): Remove unused local variable 54 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
48 `end_byte'.
49 55
502002-04-17 Eli Zaretskii <eliz@is.elta.co.il> 562002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
51 57
@@ -57,7 +63,7 @@
57 * w32fns.c (Fx_file_dialog): Decode file name before using. 63 * w32fns.c (Fx_file_dialog): Decode file name before using.
58 64
59 * w32term.c (construct_drag_n_drop): Likewise. 65 * w32term.c (construct_drag_n_drop): Likewise.
60 66
612002-04-16 Eli Zaretskii <eliz@is.elta.co.il> 672002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
62 68
63 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now 69 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
diff --git a/src/xfaces.c b/src/xfaces.c
index c1d736eeb2e..256bb3a656d 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -1054,12 +1054,11 @@ clear_font_table (dpyinfo)
1054 if (font_info->name == NULL) 1054 if (font_info->name == NULL)
1055 continue; 1055 continue;
1056 1056
1057 /* Don't free a default font of some frame on this display. */ 1057 /* Don't free a default font of some frame. */
1058 FOR_EACH_FRAME (tail, frame) 1058 FOR_EACH_FRAME (tail, frame)
1059 { 1059 {
1060 struct frame *f = XFRAME (frame); 1060 struct frame *f = XFRAME (frame);
1061 if (FRAME_WINDOW_P (f) 1061 if (FRAME_WINDOW_P (f)
1062 && FRAME_X_DISPLAY_INFO (f) == dpyinfo
1063 && font_info->font == FRAME_FONT (f)) 1062 && font_info->font == FRAME_FONT (f))
1064 break; 1063 break;
1065 } 1064 }
@@ -4052,7 +4051,7 @@ FRAME 0 means change the face on all frames, and change the default
4052 else if (EQ (attr, QCfont)) 4051 else if (EQ (attr, QCfont))
4053 { 4052 {
4054#ifdef HAVE_WINDOW_SYSTEM 4053#ifdef HAVE_WINDOW_SYSTEM
4055 if (FRAME_WINDOW_P (XFRAME (frame))) 4054 if (EQ (frame, Qt) || FRAME_WINDOW_P (XFRAME (frame)))
4056 { 4055 {
4057 /* Set font-related attributes of the Lisp face from an XLFD 4056 /* Set font-related attributes of the Lisp face from an XLFD
4058 font name. */ 4057 font name. */