emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/xterm.c


From: Gerd Moellmann
Subject: [Emacs-diffs] Changes to emacs/src/xterm.c
Date: Sun, 31 Mar 2002 05:59:02 -0500

Index: emacs/src/xterm.c
diff -c emacs/src/xterm.c:1.714 emacs/src/xterm.c:1.715
*** emacs/src/xterm.c:1.714     Fri Mar 22 07:28:11 2002
--- emacs/src/xterm.c   Sun Mar 31 05:58:58 2002
***************
*** 1,5 ****
  /* X Communication module for terminals which understand the X protocol.
!    Copyright (C) 1989, 93, 94, 95, 96, 1997, 1998, 1999, 2000, 2001
     Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
--- 1,5 ----
  /* X Communication module for terminals which understand the X protocol.
!    Copyright (C) 1989, 93, 94, 95, 96, 1997, 1998, 1999, 2000, 2001, 2002
     Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
***************
*** 1135,1141 ****
                                                       XChar2b *,
                                                       int *));
  static struct face *x_get_char_face_and_encoding P_ ((struct frame *, int,
!                                                     int, XChar2b *, int));
  static XCharStruct *x_per_char_metric P_ ((XFontStruct *, XChar2b *));
  static void x_encode_char P_ ((int, XChar2b *, struct font_info *));
  static void x_append_glyph P_ ((struct it *));
--- 1135,1142 ----
                                                       XChar2b *,
                                                       int *));
  static struct face *x_get_char_face_and_encoding P_ ((struct frame *, int,
!                                                     int, XChar2b *, int,
!                                                     int));
  static XCharStruct *x_per_char_metric P_ ((XFontStruct *, XChar2b *));
  static void x_encode_char P_ ((int, XChar2b *, struct font_info *));
  static void x_append_glyph P_ ((struct it *));
***************
*** 1276,1290 ****
  
  /* Get face and two-byte form of character C in face FACE_ID on frame
     F.  The encoding of C is returned in *CHAR2B.  MULTIBYTE_P non-zero
!    means we want to display multibyte text.  Value is a pointer to a
!    realized face that is ready for display.  */
  
  static INLINE struct face *
! x_get_char_face_and_encoding (f, c, face_id, char2b, multibyte_p)
       struct frame *f;
       int c, face_id;
       XChar2b *char2b;
!      int multibyte_p;
  {
    struct face *face = FACE_FROM_ID (f, face_id);
  
--- 1277,1293 ----
  
  /* Get face and two-byte form of character C in face FACE_ID on frame
     F.  The encoding of C is returned in *CHAR2B.  MULTIBYTE_P non-zero
!    means we want to display multibyte text.  DISPLAY_P non-zero means
!    make sure that X resources for the face returned are allocated.
!    Value is a pointer to a realized face that is ready for display if
!    DISPLAY_P is non-zero.  */
  
  static INLINE struct face *
! x_get_char_face_and_encoding (f, c, face_id, char2b, multibyte_p, display_p)
       struct frame *f;
       int c, face_id;
       XChar2b *char2b;
!      int multibyte_p, display_p;
  {
    struct face *face = FACE_FROM_ID (f, face_id);
  
***************
*** 1326,1333 ****
      }
  
    /* Make sure X resources of the face are allocated.  */
!   xassert (face != NULL);
!   PREPARE_FACE_FOR_DISPLAY (f, face);
    
    return face;
  }
--- 1329,1339 ----
      }
  
    /* Make sure X resources of the face are allocated.  */
!   if (display_p)
!     {
!       xassert (face != NULL);
!       PREPARE_FACE_FOR_DISPLAY (f, face);
!     }
    
    return face;
  }
***************
*** 1838,1844 ****
        /* Get font to use.  Encode IT->char_to_display.  */
        x_get_char_face_and_encoding (it->f, it->char_to_display,
                                    it->face_id, &char2b,
!                                   it->multibyte_p);
        font = face->font;
  
        /* When no suitable font found, use the default font.  */
--- 1844,1850 ----
        /* Get font to use.  Encode IT->char_to_display.  */
        x_get_char_face_and_encoding (it->f, it->char_to_display,
                                    it->face_id, &char2b,
!                                   it->multibyte_p, 0);
        font = face->font;
  
        /* When no suitable font found, use the default font.  */
***************
*** 2070,2076 ****
        it->face_id = FACE_FOR_CHAR (it->f, face, it->char_to_display);
        face = FACE_FROM_ID (it->f, it->face_id);
        x_get_char_face_and_encoding (it->f, it->char_to_display,
!                                   it->face_id, &char2b, it->multibyte_p);
        font = face->font;
  
        /* When no suitable font found, use the default font.  */
--- 2076,2082 ----
        it->face_id = FACE_FOR_CHAR (it->f, face, it->char_to_display);
        face = FACE_FROM_ID (it->f, it->face_id);
        x_get_char_face_and_encoding (it->f, it->char_to_display,
!                                   it->face_id, &char2b, it->multibyte_p, 0);
        font = face->font;
  
        /* When no suitable font found, use the default font.  */
***************
*** 2158,2164 ****
              
              face = FACE_FROM_ID (it->f, face_id);
              x_get_char_face_and_encoding (it->f, ch, face->id, &char2b,
!                                           it->multibyte_p);
              font = face->font;
              if (font == NULL)
                {
--- 2164,2170 ----
              
              face = FACE_FROM_ID (it->f, face_id);
              x_get_char_face_and_encoding (it->f, ch, face->id, &char2b,
!                                           it->multibyte_p, 0);
              font = face->font;
              if (font == NULL)
                {
***************
*** 4958,4964 ****
        int this_face_id = FACE_FOR_CHAR (XFRAME (w->frame), base_face, c); \
        faces[n] = FACE_FROM_ID (XFRAME (w->frame), this_face_id);        \
        x_get_char_face_and_encoding (XFRAME (w->frame), c,               \
!                                     this_face_id, char2b + n, 1);       \
        }                                                                       
  \
                                                                          \
      /* Make glyph_strings for each glyph sequence that is drawable by   \
--- 4964,4970 ----
        int this_face_id = FACE_FOR_CHAR (XFRAME (w->frame), base_face, c); \
        faces[n] = FACE_FROM_ID (XFRAME (w->frame), this_face_id);        \
        x_get_char_face_and_encoding (XFRAME (w->frame), c,               \
!                                     this_face_id, char2b + n, 1, 1);    \
        }                                                                       
  \
                                                                          \
      /* Make glyph_strings for each glyph sequence that is drawable by   \



reply via email to

[Prev in Thread] Current Thread [Next in Thread]