From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Default face problem Date: Mon, 01 May 2006 14:49:23 +0200 Message-ID: References: <87odyhc495.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146487902 11179 80.91.229.2 (1 May 2006 12:51:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 May 2006 12:51:42 +0000 (UTC) Cc: wilde@sha-bang.de, jyavner@member.fsf.org, Kenichi Handa , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 01 14:51:39 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FaXsD-0004gt-GJ for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 14:51:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FaXsD-0002mH-1A for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 08:51:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FaXrx-0002lA-TH for emacs-devel@gnu.org; Mon, 01 May 2006 08:51:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FaXrw-0002ka-Tb for emacs-devel@gnu.org; Mon, 01 May 2006 08:51:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FaXrw-0002kU-Qj for emacs-devel@gnu.org; Mon, 01 May 2006 08:51:16 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FaXvj-0000dT-3O; Mon, 01 May 2006 08:55:11 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepb.post.tele.dk (Postfix) with SMTP id E1BA2A5001B; Mon, 1 May 2006 14:51:08 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: <87odyhc495.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 01 May 2006 08:35:36 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53721 Archived-At: Stefan Monnier writes: >> if (frame->default_face->font != frame->default_font) >> frame->default_font = frame->default_face->font; > > Which is equivalent to just > > frame->default_font = frame->default_face->font; Touche :-) IIRC, setting the frame default font is a little more trick than a mere assignment, so I should have written: if (frame->default_face->font != frame->default_font) set_frame_default_font(frame, frame->default_face->font; -- Kim F. Storm http://www.cua.dk