Changeset 1695
- Timestamp:
- 02/17/98 01:45:18 (11 years ago)
- Files:
-
- branches/GNU/src/window.c (modified) (2 diffs)
- branches/GNU/src/xfns.c (modified) (3 diffs)
- branches/GNU/src/xterm.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/GNU/src/window.c
r1675 r1695 1782 1782 check_min_window_sizes (); 1783 1783 1784 /* If the window has been "too small" at one point,1785 don't delete it for being "too small" in the future.1786 Preserve it as long as that is at all possible. */1787 if (oheight < window_min_height)1788 w->too_small_ok = Qt;1789 1790 1784 if (!nodelete 1791 1785 && ! NILP (w->parent) 1792 1786 && (MINI_WINDOW_P (w) 1793 1787 ? height < 1 1794 : ! NILP (w->too_small_ok)1795 ? height < MIN_SAFE_WINDOW_HEIGHT1796 1788 : height < window_min_height)) 1797 1789 { … … 1859 1851 Lisp_Object child; 1860 1852 1861 /* If the window has been "too small" at one point, 1862 don't delete it for being "too small" in the future. 1863 Preserve it as long as that is at all possible. */ 1864 if (owidth < window_min_width) 1865 w->too_small_ok = Qt; 1866 1867 if (!nodelete && !NILP (w->parent) 1868 && (! NILP (w->too_small_ok) 1869 ? width < MIN_SAFE_WINDOW_WIDTH 1870 : width < window_min_width)) 1853 if (!nodelete && width < window_min_width && !NILP (w->parent)) 1871 1854 { 1872 1855 delete_window (window); branches/GNU/src/xfns.c
r1663 r1695 136 136 /* Regexp matching a font name whose width is the same as `PIXEL_SIZE'. */ 137 137 Lisp_Object Vx_pixel_size_width_font_regexp; 138 139 /* A flag to control how to display unibyte 8-bit character. */ 140 int unibyte_display_via_language_environment; 138 141 139 142 /* Evaluate this expression to rebuild the section of syms_of_xfns … … 3183 3186 = XCreateGC (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 3184 3187 (GCFont | GCForeground | GCBackground 3185 | GCFillStyle /* | GCStipple */| GCLineWidth),3188 | GCFillStyle | GCStipple | GCLineWidth), 3186 3189 &gc_values); 3187 3190 … … 5406 5409 Vx_pixel_size_width_font_regexp = Qnil; 5407 5410 5411 DEFVAR_BOOL ("unibyte-display-via-language-environment", 5412 &unibyte_display_via_language_environment, 5413 "*Non-nil means display unibyte text according to language environment.\n\ 5414 Specifically this means that unibyte non-ASCII characters\n\ 5415 are displayed by converting them to the equivalent multibyte characters\n\ 5416 according to the current language environment. As a result, they are\n\ 5417 displayed according to the current fontset."); 5418 unibyte_display_via_language_environment = 0; 5419 5408 5420 #ifdef USE_X_TOOLKIT 5409 5421 Fprovide (intern ("x-toolkit")); branches/GNU/src/xterm.c
r1663 r1695 4829 4829 ? current_glyphs->glyphs[y][x] 4830 4830 : SPACEGLYPH); 4831 4832 {4833 XGCValues xgcv;4834 unsigned long mask;4835 4836 xgcv.background = f->output_data.x->cursor_pixel;4837 xgcv.foreground = f->output_data.x->cursor_pixel;4838 xgcv.graphics_exposures = 0;4839 mask = GCForeground | GCBackground | GCGraphicsExposures;4840 4841 if (FRAME_X_DISPLAY_INFO (f)->scratch_cursor_gc)4842 XChangeGC (FRAME_X_DISPLAY (f),4843 FRAME_X_DISPLAY_INFO (f)->scratch_cursor_gc,4844 mask, &xgcv);4845 else4846 FRAME_X_DISPLAY_INFO (f)->scratch_cursor_gc4847 = XCreateGC (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), mask, &xgcv);4848 }4849 4850 4831 XFillRectangle (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 4851 FRAME_X_DISPLAY_INFO (f)->scratch_cursor_gc,4832 f->output_data.x->cursor_gc, 4852 4833 CHAR_TO_PIXEL_COL (f, x), 4853 4834 CHAR_TO_PIXEL_ROW (f, y), … … 6494 6475 Display *dpy = f != NULL ? FRAME_X_DISPLAY (f) : x_display_list->display; 6495 6476 int try_XLoadQueryFont = 0; 6496 int count;6497 6477 6498 6478 patterns = Fassoc (pattern, Valternate_fontname_alist); … … 6526 6506 6527 6507 BLOCK_INPUT; 6528 count = x_catch_errors (dpy);6529 6530 6508 if (try_XLoadQueryFont) 6531 6509 { … … 6534 6512 6535 6513 font = XLoadQueryFont (dpy, XSTRING (pattern)->data); 6536 if (x_had_errors_p (dpy))6537 {6538 /* This error is perhaps due to insufficient memory on X6539 server. Let's just ignore it. */6540 font = NULL;6541 x_clear_errors (dpy);6542 }6543 6544 6514 if (font 6545 6515 && XGetFontProperty (font, XA_FONT, &value)) … … 6573 6543 6574 6544 if (!try_XLoadQueryFont) 6575 { 6576 /* We try at least 10 fonts because XListFonts will return 6577 auto-scaled fonts at the head. */ 6578 names = XListFonts (dpy, XSTRING (pattern)->data, max (maxnames, 10), 6579 &num_fonts); 6580 if (x_had_errors_p (dpy)) 6581 { 6582 /* This error is perhaps due to insufficient memory on X 6583 server. Let's just ignore it. */ 6584 names = NULL; 6585 x_clear_errors (dpy); 6586 } 6587 } 6588 6589 x_uncatch_errors (dpy, count); 6545 /* We try at least 10 fonts because XListFonts will return 6546 auto-scaled fonts at the head. */ 6547 names = XListFonts (dpy, XSTRING (pattern)->data, max (maxnames, 10), 6548 &num_fonts); 6590 6549 UNBLOCK_INPUT; 6591 6550 … … 6669 6628 6670 6629 BLOCK_INPUT; 6671 count = x_catch_errors (dpy);6672 6630 thisinfo = XLoadQueryFont (dpy, 6673 6631 XSTRING (XCONS (tem)->car)->data); 6674 if (x_had_errors_p (dpy))6675 {6676 /* This error is perhaps due to insufficient memory on X6677 server. Let's just ignore it. */6678 thisinfo = NULL;6679 x_clear_errors (dpy);6680 }6681 x_uncatch_errors (dpy, count);6682 6632 UNBLOCK_INPUT; 6683 6633 … … 6863 6813 int max_height = font->max_bounds.ascent + font->max_bounds.descent; 6864 6814 if (max_height > fontp->height) 6865 fontp->height =max_height;6815 fontp->height > max_height; 6866 6816 } 6867 6817
