emacs-devel
[Top][All Lists]
Advanced

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

Re: recent emacs font problems?


From: Richard Stallman
Subject: Re: recent emacs font problems?
Date: Wed, 28 May 2003 09:55:18 -0400

    Is this the right fix (not properly tested) ?

    --- /build/emacs/src/xfaces.c.~1.277.~      Wed May 28 06:00:50 2003
    +++ /build/emacs/src/xfaces.c       Wed May 28 06:10:40 2003
    @@ -6584,9 +6584,7 @@
           frame_font = Fassq (Qfont, f->param_alist);
           xassert (CONSP (frame_font) && STRINGP (XCDR (frame_font)));
           frame_font = XCDR (frame_font);
    -      /* Specify 0 for FORCE_P here, so that we don't override
    -    a :family attribute specified for `default' for new frames.  */
    -      set_lface_from_font_name (f, lface, frame_font, 0, 1);
    +      set_lface_from_font_name (f, lface, frame_font, 1, 1);
         }
     #endif /* HAVE_WINDOW_SYSTEM */

That is not correct.  It would bring back a bug I fixed recently.  I
think it was the following bug.


Date: Thu, 15 May 2003 09:59:01 +0200 (CEST)
From: Klaus Straubinger <address@hidden>
To: address@hidden

If the font family of the default face is changed with
(set-face-attribute 'default nil :family "fixed")
then this does not change the face's font for subsequent frames, as can
be seen with the evaluation of (face-font 'default) in the first frame
and in a second, created with C-x 5 2, respectively.

I found that that call to set_lface_from_font_name was
clobbering the family that had come from the new-frame default.




reply via email to

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