diff options
| author | Richard M. Stallman | 1997-07-04 20:43:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-04 20:43:49 +0000 |
| commit | 8c239ac3ed4f636810bc08959e1318b1a6e928ba (patch) | |
| tree | 7e6dda1a2036b6a4e065a9691e44f667b9493781 /src | |
| parent | 6debdec51cd7c306b9c84e32a97bc7ea271dea72 (diff) | |
| download | emacs-8c239ac3ed4f636810bc08959e1318b1a6e928ba.tar.gz emacs-8c239ac3ed4f636810bc08959e1318b1a6e928ba.zip | |
Fix bugs with inappropriate mixing of Lisp_Object with int.
Update copyright year.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/xfns.c b/src/xfns.c index 070fe10615f..cff116dbc1d 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Functions for the X window system. | 1 | /* Functions for the X window system. |
| 2 | Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996 Free Software Foundation. | 2 | Copyright (C) 1989, 92, 93, 94, 95, 96, 1997 Free Software Foundation. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -1057,9 +1057,11 @@ x_report_frame_params (f, alistptr) | |||
| 1057 | store_in_alist (alistptr, Qdisplay, | 1057 | store_in_alist (alistptr, Qdisplay, |
| 1058 | XCONS (FRAME_X_DISPLAY_INFO (f)->name_list_element)->car); | 1058 | XCONS (FRAME_X_DISPLAY_INFO (f)->name_list_element)->car); |
| 1059 | 1059 | ||
| 1060 | store_in_alist (alistptr, Qparent_id, | 1060 | if (f->output_data.x->parent_desc == FRAME_X_DISPLAY_INFO (f)->root_window) |
| 1061 | (f->output_data.x->parent_desc == FRAME_X_DISPLAY_INFO (f)->root_window | 1061 | tem = Qnil; |
| 1062 | ? Qnil : f->output_data.x->parent_desc)); | 1062 | else |
| 1063 | XSETFASTINT (tem, f->output_data.x->parent_desc); | ||
| 1064 | store_in_alist (alistptr, Qparent_id, tem); | ||
| 1063 | } | 1065 | } |
| 1064 | 1066 | ||
| 1065 | 1067 | ||
| @@ -1580,6 +1582,8 @@ x_set_icon_name (f, arg, oldval) | |||
| 1580 | } | 1582 | } |
| 1581 | 1583 | ||
| 1582 | extern Lisp_Object x_new_font (); | 1584 | extern Lisp_Object x_new_font (); |
| 1585 | extern Lisp_Object x_new_fontset (); | ||
| 1586 | extern Lisp_Object Fquery_fontset (); | ||
| 1583 | 1587 | ||
| 1584 | void | 1588 | void |
| 1585 | x_set_font (f, arg, oldval) | 1589 | x_set_font (f, arg, oldval) |
| @@ -3237,7 +3241,7 @@ This function is an internal primitive--use `make-frame' instead.") | |||
| 3237 | 3241 | ||
| 3238 | if (!NILP (parent)) | 3242 | if (!NILP (parent)) |
| 3239 | { | 3243 | { |
| 3240 | f->output_data.x->parent_desc = (Window) XINT (parent); | 3244 | f->output_data.x->parent_desc = (Window) XFASTINT (parent); |
| 3241 | f->output_data.x->explicit_parent = 1; | 3245 | f->output_data.x->explicit_parent = 1; |
| 3242 | } | 3246 | } |
| 3243 | else | 3247 | else |