emacs-diffs
[Top][All Lists]
Advanced

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

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


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/src/xfaces.c [lexbind]
Date: Tue, 06 Jul 2004 07:17:17 -0400

Index: emacs/src/xfaces.c
diff -c emacs/src/xfaces.c:1.255.2.7 emacs/src/xfaces.c:1.255.2.8
*** emacs/src/xfaces.c:1.255.2.7        Tue Apr 27 14:11:02 2004
--- emacs/src/xfaces.c  Tue Jul  6 09:14:41 2004
***************
*** 3857,3863 ****
  DEFUN ("internal-copy-lisp-face", Finternal_copy_lisp_face,
         Sinternal_copy_lisp_face, 4, 4, 0,
         doc: /* Copy face FROM to TO.
! If FRAME it t, copy the global face definition of FROM to the
  global face definition of TO.  Otherwise, copy the frame-local
  definition of FROM on FRAME to the frame-local definition of TO
  on NEW-FRAME, or FRAME if NEW-FRAME is nil.
--- 3857,3863 ----
  DEFUN ("internal-copy-lisp-face", Finternal_copy_lisp_face,
         Sinternal_copy_lisp_face, 4, 4, 0,
         doc: /* Copy face FROM to TO.
! If FRAME is t, copy the global face definition of FROM to the
  global face definition of TO.  Otherwise, copy the frame-local
  definition of FROM on FRAME to the frame-local definition of TO
  on NEW-FRAME, or FRAME if NEW-FRAME is nil.
***************
*** 4684,4691 ****
         doc: /* Return face attribute KEYWORD of face SYMBOL.
  If SYMBOL does not name a valid Lisp face or KEYWORD isn't a valid
  face attribute name, signal an error.
! If the optional argument FRAME is given, report on face FACE in that
! frame.  If FRAME is t, report on the defaults for face FACE (for new
  frames).  If FRAME is omitted or nil, use the selected frame.  */)
       (symbol, keyword, frame)
       Lisp_Object symbol, keyword, frame;
--- 4684,4691 ----
         doc: /* Return face attribute KEYWORD of face SYMBOL.
  If SYMBOL does not name a valid Lisp face or KEYWORD isn't a valid
  face attribute name, signal an error.
! If the optional argument FRAME is given, report on face SYMBOL in that
! frame.  If FRAME is t, report on the defaults for face SYMBOL (for new
  frames).  If FRAME is omitted or nil, use the selected frame.  */)
       (symbol, keyword, frame)
       Lisp_Object symbol, keyword, frame;
***************
*** 5235,5244 ****
   \(1) different in appearance than the default face, and
   \(2) `close in spirit' to what the attributes specify, if not exact.
  
! Point (2) implies that a `:weight black' attribute will be satisified
  by any terminal that can display bold, and a `:foreground "yellow"' as
  long as the terminal can display a yellowish color, but `:slant italic'
! will _not_ be satisified by the tty display code's automatic
  substitution of a `dim' face for italic.  */)
       (attributes, frame)
       Lisp_Object attributes, frame;
--- 5235,5244 ----
   \(1) different in appearance than the default face, and
   \(2) `close in spirit' to what the attributes specify, if not exact.
  
! Point (2) implies that a `:weight black' attribute will be satisfied
  by any terminal that can display bold, and a `:foreground "yellow"' as
  long as the terminal can display a yellowish color, but `:slant italic'
! will _not_ be satisfied by the tty display code's automatic
  substitution of a `dim' face for italic.  */)
       (attributes, frame)
       Lisp_Object attributes, frame;
***************
*** 5446,5453 ****
  }
  
  
! /* Free all realized faces in face cache C, including basic faces.  C
!    may be null.  If faces are freed, make sure the frame's current
     matrix is marked invalid, so that a display caused by an expose
     event doesn't try to use faces we destroyed.  */
  
--- 5446,5453 ----
  }
  
  
! /* Free all realized faces in face cache C, including basic faces.
!    C may be null.  If faces are freed, make sure the frame's current
     matrix is marked invalid, so that a display caused by an expose
     event doesn't try to use faces we destroyed.  */
  
***************
*** 7297,7320 ****
    /* Look at properties from overlays.  */
    {
      int next_overlay;
-     int len;
- 
-     /* First try with room for 40 overlays.  */
-     len = 40;
-     overlay_vec = (Lisp_Object *) alloca (len * sizeof (Lisp_Object));
-     noverlays = overlays_at (pos, 0, &overlay_vec, &len,
-                            &next_overlay, NULL, 0);
- 
-     /* If there are more than 40, make enough space for all, and try
-        again.  */
-     if (noverlays > len)
-       {
-       len = noverlays;
-       overlay_vec = (Lisp_Object *) alloca (len * sizeof (Lisp_Object));
-       noverlays = overlays_at (pos, 0, &overlay_vec, &len,
-                                &next_overlay, NULL, 0);
-       }
  
      if (next_overlay < endpos)
        endpos = next_overlay;
    }
--- 7297,7304 ----
    /* Look at properties from overlays.  */
    {
      int next_overlay;
  
+     GET_OVERLAYS_AT (pos, overlay_vec, noverlays, &next_overlay, 0);
      if (next_overlay < endpos)
        endpos = next_overlay;
    }




reply via email to

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