/[emacs]/emacs/src/xfaces.c
ViewVC logotype

Diff of /emacs/src/xfaces.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.249 by kfstorm, Fri Feb 8 23:49:51 2002 UTC revision 1.250 by rms, Wed Feb 13 16:21:07 2002 UTC
# Line 3687  Value is a vector of face attributes.  * Line 3687  Value is a vector of face attributes.  *
3687    else    else
3688      lface = global_lface;      lface = global_lface;
3689    
3690      /* Changing a named face means that all realized faces depending on
3691         that face are invalid.  Since we cannot tell which realized faces
3692         depend on the face, make sure they are all removed.  This is done
3693         by incrementing face_change_count.  The next call to
3694         init_iterator will then free realized faces.  */
3695      ++face_change_count;
3696      ++windows_or_buffers_changed;
3697    
3698    xassert (LFACEP (lface));    xassert (LFACEP (lface));
3699    check_lface (lface);    check_lface (lface);
3700    return lface;    return lface;
# Line 3754  Value is TO.  */) Line 3762  Value is TO.  */)
3762    bcopy (XVECTOR (lface)->contents, XVECTOR (copy)->contents,    bcopy (XVECTOR (lface)->contents, XVECTOR (copy)->contents,
3763           LFACE_VECTOR_SIZE * sizeof (Lisp_Object));           LFACE_VECTOR_SIZE * sizeof (Lisp_Object));
3764    
3765      /* Changing a named face means that all realized faces depending on
3766         that face are invalid.  Since we cannot tell which realized faces
3767         depend on the face, make sure they are all removed.  This is done
3768         by incrementing face_change_count.  The next call to
3769         init_iterator will then free realized faces.  */
3770      ++face_change_count;
3771      ++windows_or_buffers_changed;
3772    
3773    return to;    return to;
3774  }  }
3775    
# Line 4264  update_face_from_frame_parameter (f, par Line 4280  update_face_from_frame_parameter (f, par
4280    if (NILP (f->face_alist))    if (NILP (f->face_alist))
4281      return;      return;
4282    
4283      /* Changing a named face means that all realized faces depending on
4284         that face are invalid.  Since we cannot tell which realized faces
4285         depend on the face, make sure they are all removed.  This is done
4286         by incrementing face_change_count.  The next call to
4287         init_iterator will then free realized faces.  */
4288      ++face_change_count;
4289      ++windows_or_buffers_changed;
4290    
4291    if (EQ (param, Qforeground_color))    if (EQ (param, Qforeground_color))
4292      {      {
4293        lface = lface_from_face_name (f, Qdefault, 1);        lface = lface_from_face_name (f, Qdefault, 1);

Legend:
Removed from v.1.249  
changed lines
  Added in v.1.250

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26