diff options
| author | Gerd Moellmann | 1999-09-13 11:14:14 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-09-13 11:14:14 +0000 |
| commit | 0fe92f72b4d6560845332a0479c555ca915f5256 (patch) | |
| tree | ca2a2e4795642b8d0a0fc2ef111f1fe55bcffb27 /src | |
| parent | c0617987c6fecd65469d9e38ae5372b153097583 (diff) | |
| download | emacs-0fe92f72b4d6560845332a0479c555ca915f5256.tar.gz emacs-0fe92f72b4d6560845332a0479c555ca915f5256.zip | |
(QCfile): Moved to xdisp.c.
(syms_of_xfns): Don't initialize QCfile.
(check_x_frame): Change for Lisp_Object selected_frame.
(check_x_display_info, x_get_resource_string): Ditto.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/src/xfns.c b/src/xfns.c index 654b42f8b32..77f3769dcd7 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -294,12 +294,9 @@ check_x_frame (frame) | |||
| 294 | FRAME_PTR f; | 294 | FRAME_PTR f; |
| 295 | 295 | ||
| 296 | if (NILP (frame)) | 296 | if (NILP (frame)) |
| 297 | f = selected_frame; | 297 | frame = selected_frame; |
| 298 | else | 298 | CHECK_LIVE_FRAME (frame, 0); |
| 299 | { | 299 | f = XFRAME (frame); |
| 300 | CHECK_LIVE_FRAME (frame, 0); | ||
| 301 | f = XFRAME (frame); | ||
| 302 | } | ||
| 303 | if (! FRAME_X_P (f)) | 300 | if (! FRAME_X_P (f)) |
| 304 | error ("Non-X frame used"); | 301 | error ("Non-X frame used"); |
| 305 | return f; | 302 | return f; |
| @@ -315,9 +312,10 @@ check_x_display_info (frame) | |||
| 315 | { | 312 | { |
| 316 | if (NILP (frame)) | 313 | if (NILP (frame)) |
| 317 | { | 314 | { |
| 318 | if (FRAME_X_P (selected_frame) | 315 | struct frame *sf = XFRAME (selected_frame); |
| 319 | && FRAME_LIVE_P (selected_frame)) | 316 | |
| 320 | return FRAME_X_DISPLAY_INFO (selected_frame); | 317 | if (FRAME_X_P (sf) && FRAME_LIVE_P (sf)) |
| 318 | return FRAME_X_DISPLAY_INFO (sf); | ||
| 321 | else if (x_display_list != 0) | 319 | else if (x_display_list != 0) |
| 322 | return x_display_list; | 320 | return x_display_list; |
| 323 | else | 321 | else |
| @@ -2583,6 +2581,7 @@ x_get_resource_string (attribute, class) | |||
| 2583 | { | 2581 | { |
| 2584 | char *name_key; | 2582 | char *name_key; |
| 2585 | char *class_key; | 2583 | char *class_key; |
| 2584 | struct frame *sf = SELECTED_FRAME (); | ||
| 2586 | 2585 | ||
| 2587 | /* Allocate space for the components, the dots which separate them, | 2586 | /* Allocate space for the components, the dots which separate them, |
| 2588 | and the final '\0'. */ | 2587 | and the final '\0'. */ |
| @@ -2596,7 +2595,7 @@ x_get_resource_string (attribute, class) | |||
| 2596 | attribute); | 2595 | attribute); |
| 2597 | sprintf (class_key, "%s.%s", EMACS_CLASS, class); | 2596 | sprintf (class_key, "%s.%s", EMACS_CLASS, class); |
| 2598 | 2597 | ||
| 2599 | return x_get_string_resource (FRAME_X_DISPLAY_INFO (selected_frame)->xrdb, | 2598 | return x_get_string_resource (FRAME_X_DISPLAY_INFO (sf)->xrdb, |
| 2600 | name_key, class_key); | 2599 | name_key, class_key); |
| 2601 | } | 2600 | } |
| 2602 | 2601 | ||
| @@ -5448,8 +5447,8 @@ Lisp_Object Qxbm; | |||
| 5448 | 5447 | ||
| 5449 | /* Keywords. */ | 5448 | /* Keywords. */ |
| 5450 | 5449 | ||
| 5451 | Lisp_Object QCtype, QCdata, QCfile, QCascent, QCmargin, QCrelief; | 5450 | Lisp_Object QCtype, QCdata, QCascent, QCmargin, QCrelief; |
| 5452 | extern Lisp_Object QCwidth, QCheight, QCforeground, QCbackground; | 5451 | extern Lisp_Object QCwidth, QCheight, QCforeground, QCbackground, QCfile; |
| 5453 | Lisp_Object QCalgorithm, QCcolor_symbols, QCheuristic_mask; | 5452 | Lisp_Object QCalgorithm, QCcolor_symbols, QCheuristic_mask; |
| 5454 | Lisp_Object QCindex; | 5453 | Lisp_Object QCindex; |
| 5455 | 5454 | ||
| @@ -9956,7 +9955,7 @@ selection dialog's entry field, if MUSTMATCH is non-nil.") | |||
| 9956 | Lisp_Object prompt, dir, default_filename, mustmatch; | 9955 | Lisp_Object prompt, dir, default_filename, mustmatch; |
| 9957 | { | 9956 | { |
| 9958 | int result; | 9957 | int result; |
| 9959 | struct frame *f = selected_frame; | 9958 | struct frame *f = SELECTED_FRAME (); |
| 9960 | Lisp_Object file = Qnil; | 9959 | Lisp_Object file = Qnil; |
| 9961 | Widget dialog, text, list, help; | 9960 | Widget dialog, text, list, help; |
| 9962 | Arg al[10]; | 9961 | Arg al[10]; |
| @@ -10124,7 +10123,7 @@ DEFUN ("lookup-image", Flookup_image, Slookup_image, 1, 1, 0, "") | |||
| 10124 | int id = -1; | 10123 | int id = -1; |
| 10125 | 10124 | ||
| 10126 | if (valid_image_p (spec)) | 10125 | if (valid_image_p (spec)) |
| 10127 | id = lookup_image (selected_frame, spec); | 10126 | id = lookup_image (SELECTED_FRAME (), spec); |
| 10128 | 10127 | ||
| 10129 | debug_print (spec); | 10128 | debug_print (spec); |
| 10130 | return make_number (id); | 10129 | return make_number (id); |
| @@ -10403,8 +10402,6 @@ Each element of the list is a symbol for a supported image type."); | |||
| 10403 | staticpro (&Qxbm); | 10402 | staticpro (&Qxbm); |
| 10404 | QCtype = intern (":type"); | 10403 | QCtype = intern (":type"); |
| 10405 | staticpro (&QCtype); | 10404 | staticpro (&QCtype); |
| 10406 | QCfile = intern (":file"); | ||
| 10407 | staticpro (&QCfile); | ||
| 10408 | QCalgorithm = intern (":algorithm"); | 10405 | QCalgorithm = intern (":algorithm"); |
| 10409 | staticpro (&QCalgorithm); | 10406 | staticpro (&QCalgorithm); |
| 10410 | QCheuristic_mask = intern (":heuristic-mask"); | 10407 | QCheuristic_mask = intern (":heuristic-mask"); |