Changeset 1695

Show
Ignore:
Timestamp:
02/17/98 01:45:18 (11 years ago)
Author:
himi
Message:

Emacs20.3.8 import

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/GNU/src/window.c

    r1675 r1695  
    17821782  check_min_window_sizes (); 
    17831783 
    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  
    17901784  if (!nodelete 
    17911785      && ! NILP (w->parent) 
    17921786      && (MINI_WINDOW_P (w) 
    17931787          ? height < 1 
    1794           : ! NILP (w->too_small_ok) 
    1795           ? height < MIN_SAFE_WINDOW_HEIGHT 
    17961788          : height < window_min_height)) 
    17971789    { 
     
    18591851  Lisp_Object child; 
    18601852 
    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)) 
    18711854    { 
    18721855      delete_window (window); 
  • branches/GNU/src/xfns.c

    r1663 r1695  
    136136/* Regexp matching a font name whose width is the same as `PIXEL_SIZE'.  */ 
    137137Lisp_Object Vx_pixel_size_width_font_regexp; 
     138 
     139/* A flag to control how to display unibyte 8-bit character.  */ 
     140int unibyte_display_via_language_environment; 
    138141 
    139142/* Evaluate this expression to rebuild the section of syms_of_xfns 
     
    31833186    = XCreateGC (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 
    31843187                 (GCFont | GCForeground | GCBackground 
    3185                   | GCFillStyle /* | GCStipple */ | GCLineWidth), 
     3188                  | GCFillStyle | GCStipple | GCLineWidth), 
    31863189                 &gc_values); 
    31873190 
     
    54065409  Vx_pixel_size_width_font_regexp = Qnil; 
    54075410 
     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\ 
     5414Specifically this means that unibyte non-ASCII characters\n\ 
     5415are displayed by converting them to the equivalent multibyte characters\n\ 
     5416according to the current language environment.  As a result, they are\n\ 
     5417displayed according to the current fontset."); 
     5418  unibyte_display_via_language_environment = 0; 
     5419 
    54085420#ifdef USE_X_TOOLKIT 
    54095421  Fprovide (intern ("x-toolkit")); 
  • branches/GNU/src/xterm.c

    r1663 r1695  
    48294829           ? current_glyphs->glyphs[y][x] 
    48304830           : 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         else 
    4846           FRAME_X_DISPLAY_INFO (f)->scratch_cursor_gc 
    4847             = XCreateGC (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), mask, &xgcv); 
    4848       } 
    4849  
    48504831      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, 
    48524833                      CHAR_TO_PIXEL_COL (f, x), 
    48534834                      CHAR_TO_PIXEL_ROW (f, y), 
     
    64946475  Display *dpy = f != NULL ? FRAME_X_DISPLAY (f) : x_display_list->display; 
    64956476  int try_XLoadQueryFont = 0; 
    6496   int count; 
    64976477 
    64986478  patterns = Fassoc (pattern, Valternate_fontname_alist); 
     
    65266506 
    65276507      BLOCK_INPUT; 
    6528       count = x_catch_errors (dpy); 
    6529  
    65306508      if (try_XLoadQueryFont) 
    65316509        { 
     
    65346512 
    65356513          font = XLoadQueryFont (dpy, XSTRING (pattern)->data); 
    6536           if (x_had_errors_p (dpy)) 
    6537             { 
    6538               /* This error is perhaps due to insufficient memory on X 
    6539                  server.  Let's just ignore it.  */ 
    6540               font = NULL; 
    6541               x_clear_errors (dpy); 
    6542             } 
    6543  
    65446514          if (font 
    65456515              && XGetFontProperty (font, XA_FONT, &value)) 
     
    65736543 
    65746544      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); 
    65906549      UNBLOCK_INPUT; 
    65916550 
     
    66696628 
    66706629              BLOCK_INPUT; 
    6671               count = x_catch_errors (dpy); 
    66726630              thisinfo = XLoadQueryFont (dpy, 
    66736631                                         XSTRING (XCONS (tem)->car)->data); 
    6674               if (x_had_errors_p (dpy)) 
    6675                 { 
    6676                   /* This error is perhaps due to insufficient memory on X 
    6677                      server.  Let's just ignore it.  */ 
    6678                   thisinfo = NULL; 
    6679                   x_clear_errors (dpy); 
    6680                 } 
    6681               x_uncatch_errors (dpy, count); 
    66826632              UNBLOCK_INPUT; 
    66836633 
     
    68636813      int max_height = font->max_bounds.ascent + font->max_bounds.descent; 
    68646814      if (max_height > fontp->height) 
    6865         fontp->height = max_height; 
     6815        fontp->height > max_height; 
    68666816    } 
    68676817