Changeset 1711
- Timestamp:
- 02/17/98 01:45:20 (11 years ago)
- Files:
-
- branches/GNU/src/window.c (modified) (11 diffs)
- branches/GNU/src/window.h (modified) (3 diffs)
- branches/GNU/src/xdisp.c (modified) (2 diffs)
- branches/GNU/src/xfaces.c (modified) (3 diffs)
- branches/GNU/src/xfns.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/GNU/src/window.c
r1703 r1711 36 36 #endif 37 37 38 Lisp_Object Qwindowp, Qwindow_live_p , Qwindow_configuration_p;38 Lisp_Object Qwindowp, Qwindow_live_p; 39 39 40 40 static struct window *decode_window P_ ((Lisp_Object)); … … 1308 1308 DELETE_BUFFER_WINDOWS, /* Arg is buffer */ 1309 1309 GET_LARGEST_WINDOW, 1310 UNSHOW_BUFFER, /* Arg is buffer */ 1311 CHECK_ALL_WINDOWS 1310 UNSHOW_BUFFER /* Arg is buffer */ 1312 1311 }; 1313 1312 … … 1376 1375 if that is desired, under the control of frame_arg. */ 1377 1376 if (! MINI_WINDOW_P (XWINDOW (w)) 1378 /* For UNSHOW_BUFFER, we must always consider all windows. */1379 || type == UNSHOW_BUFFER1380 1377 || (mini && minibuf_level > 0)) 1381 1378 switch (type) … … 1520 1517 } 1521 1518 break; 1522 1523 /* Check for a window that has a killed buffer. */1524 case CHECK_ALL_WINDOWS:1525 if (! NILP (XWINDOW (w)->buffer)1526 && NILP (XBUFFER (XWINDOW (w)->buffer)->name))1527 abort ();1528 1519 } 1529 1520 … … 1535 1526 1536 1527 return best_window; 1537 }1538 1539 /* Used for debugging. Abort if any window has a dead buffer. */1540 1541 check_all_windows ()1542 {1543 window_loop (CHECK_ALL_WINDOWS, Qnil, 1, Qt);1544 1528 } 1545 1529 … … 2397 2381 2398 2382 /* Select the window that was chosen, for running the hook. */ 2399 record_unwind_protect (Fselect_window, prev_window); 2383 record_unwind_protect (Fset_window_configuration, 2384 Fcurrent_window_configuration (Qnil)); 2385 2400 2386 select_window_1 (window, 0); 2401 2387 Fset_buffer (w->buffer); … … 3293 3279 } 3294 3280 3295 DEFUN ("window-configuration-frame", Fwindow_configuration_frame, Swindow_configuration_frame, 1, 1, 0,3296 "Return the frame that CONFIG, a window-configuration object, is about.")3297 (config)3298 Lisp_Object config;3299 {3300 register struct save_window_data *data;3301 struct Lisp_Vector *saved_windows;3302 3303 if (! WINDOW_CONFIGURATIONP (config))3304 wrong_type_argument (Qwindow_configuration_p, config);3305 3306 data = (struct save_window_data *) XVECTOR (config);3307 saved_windows = XVECTOR (data->saved_windows);3308 return XWINDOW (SAVED_WINDOW_N (saved_windows, 0)->window)->frame;3309 }3310 3311 3281 DEFUN ("set-window-configuration", Fset_window_configuration, 3312 3282 Sset_window_configuration, 1, 1, 0, 3313 3283 "Set the configuration of windows and buffers as specified by CONFIGURATION.\n\ 3314 3284 CONFIGURATION must be a value previously returned\n\ 3315 by `current-window-configuration' (which see).\n\ 3316 If CONFIGURATION was made from a frame that is now deleted,\n\ 3317 only frame-independent values can be restored. In this case,\n\ 3318 the return value is nil. Otherwise the value is t.") 3319 (configuration) 3285 by `current-window-configuration' (which see).") 3286 (configuration) 3320 3287 Lisp_Object configuration; 3321 3288 { … … 3328 3295 3329 3296 while (!WINDOW_CONFIGURATIONP (configuration)) 3330 wrong_type_argument (Qwindow_configuration_p, configuration); 3297 { 3298 configuration = wrong_type_argument (intern ("window-configuration-p"), 3299 configuration); 3300 } 3331 3301 3332 3302 data = (struct save_window_data *) XVECTOR (configuration); … … 3560 3530 Vminibuf_scroll_window = data->minibuf_scroll_window; 3561 3531 3562 return (FRAME_LIVE_P (f) ? Qt : Qnil);3532 return Qnil; 3563 3533 } 3564 3534 … … 3887 3857 Qwindowp = intern ("windowp"); 3888 3858 staticpro (&Qwindowp); 3889 3890 Qwindow_configuration_p = intern ("window-configuration-p");3891 staticpro (&Qwindow_configuration_p);3892 3859 3893 3860 Qwindow_live_p = intern ("window-live-p"); … … 4095 4062 defsubr (&Smove_to_window_line); 4096 4063 defsubr (&Swindow_configuration_p); 4097 defsubr (&Swindow_configuration_frame);4098 4064 defsubr (&Sset_window_configuration); 4099 4065 defsubr (&Scurrent_window_configuration); branches/GNU/src/window.h
r1707 r1711 140 140 Lisp_Object vertical_scroll_bar; 141 141 142 /* Some of theseare currently not used or only half used */142 /* The rest are currently not used or only half used */ 143 143 /* Frame coords of point at that time */ 144 144 Lisp_Object last_point_x; … … 148 148 Lisp_Object last_mark_x; 149 149 Lisp_Object last_mark_y; 150 151 150 /* Number of characters in buffer past bottom of window, 152 151 as of last redisplay that finished. */ … … 187 186 must run the redisplay-end-trigger-hook. */ 188 187 Lisp_Object redisplay_end_trigger; 189 /* Non-nil means don't delete this window for becoming "too small". */190 Lisp_Object too_small_ok;191 188 }; 192 189 branches/GNU/src/xdisp.c
r1705 r1711 336 336 { 337 337 c = STRING_CHAR (m + i, len - i); 338 i += CHAR_BYTES (c);338 i += XFASTINT (Fchar_bytes (make_number (c))); 339 339 /* Truncate the character to its last byte--we can only hope 340 340 the user is happy with the character he gets, … … 448 448 { 449 449 int i; 450 int len = Z _BYTE - 1 - this_bol_byte;450 int len = Z - 1 - this_bol; 451 451 int seen_dots = 0; 452 452 unsigned char *p1 = BUF_BYTE_ADDRESS (current_buffer, prev_bol_byte); branches/GNU/src/xfaces.c
r1703 r1711 163 163 #define FACE_DEFAULT (~0) 164 164 165 Lisp_Object Qface ;165 Lisp_Object Qface, Qmouse_face; 166 166 Lisp_Object Qpixmap_spec_p; 167 167 … … 175 175 static void merge_face_list ( /* FRAME_PTR, struct face *, Lisp_Object */ ); 176 176 177 extern Lisp_Object Qforeground_color, Qbackground_color , Qmouse_face;177 extern Lisp_Object Qforeground_color, Qbackground_color; 178 178 179 179 /* Allocating, copying, and comparing struct faces. */ … … 1313 1313 Qface = intern ("face"); 1314 1314 staticpro (&Qface); 1315 Qmouse_face = intern ("mouse-face"); 1316 staticpro (&Qmouse_face); 1315 1317 Qpixmap_spec_p = intern ("pixmap-spec-p"); 1316 1318 staticpro (&Qpixmap_spec_p); branches/GNU/src/xfns.c
r1703 r1711 195 195 Lisp_Object Qmouse_color; 196 196 Lisp_Object Qnone; 197 Lisp_Object Qouter_window_id;198 197 Lisp_Object Qparent_id; 199 198 Lisp_Object Qscroll_bar_width; … … 266 265 if (NILP (frame)) 267 266 { 268 if (FRAME_X_P (selected_frame) 269 && FRAME_LIVE_P (selected_frame)) 267 if (FRAME_X_P (selected_frame)) 270 268 return FRAME_X_DISPLAY_INFO (selected_frame); 271 269 else if (x_display_list != 0) … … 592 590 fd = openp (Vx_bitmap_file_path, file, "", &found, 0); 593 591 if (fd < 0) 594 return -1;595 /* XReadBitmapFile won't handle magic file names. */596 if (fd == 0)597 592 return -1; 598 593 close (fd); … … 1061 1056 sprintf (buf, "%ld", (long) FRAME_X_WINDOW (f)); 1062 1057 store_in_alist (alistptr, Qwindow_id, 1063 build_string (buf));1064 sprintf (buf, "%ld", (long) FRAME_OUTER_WINDOW (f));1065 store_in_alist (alistptr, Qouter_window_id,1066 1058 build_string (buf)); 1067 1059 store_in_alist (alistptr, Qicon_name, f->icon_name); … … 5295 5287 Qwindow_id = intern ("window-id"); 5296 5288 staticpro (&Qwindow_id); 5297 Qouter_window_id = intern ("outer-window-id");5298 staticpro (&Qouter_window_id);5299 5289 Qx_frame_parameter = intern ("x-frame-parameter"); 5300 5290 staticpro (&Qx_frame_parameter);
