From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#1785: bug#1547: face-font-rescale-alist has no effect Date: Sat, 18 Apr 2009 14:14:52 -0400 Message-ID: References: <87bpquiot3.fsf@cyd.mit.edu> Reply-To: Stefan Monnier , 1785@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1240079054 10447 80.91.229.12 (18 Apr 2009 18:24:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Apr 2009 18:24:14 +0000 (UTC) Cc: 1785@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 18 20:25:32 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LvFEJ-0003Pi-AG for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Apr 2009 20:25:31 +0200 Original-Received: from localhost ([127.0.0.1]:56616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvFCu-0007ol-92 for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Apr 2009 14:24:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LvFCp-0007oZ-Q2 for bug-gnu-emacs@gnu.org; Sat, 18 Apr 2009 14:23:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LvFCl-0007nq-6e for bug-gnu-emacs@gnu.org; Sat, 18 Apr 2009 14:23:59 -0400 Original-Received: from [199.232.76.173] (port=49205 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvFCl-0007nn-1K for bug-gnu-emacs@gnu.org; Sat, 18 Apr 2009 14:23:55 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44187) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LvFCk-0005Th-BA for bug-gnu-emacs@gnu.org; Sat, 18 Apr 2009 14:23:54 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3IINpR7019011; Sat, 18 Apr 2009 11:23:52 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3IIK4Od017743; Sat, 18 Apr 2009 11:20:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 18 Apr 2009 18:20:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1785 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1785-submit@emacsbugs.donarmstrong.com id=B1785.124007850016407 (code B ref 1785); Sat, 18 Apr 2009 18:20:04 +0000 Original-Received: (at 1785) by emacsbugs.donarmstrong.com; 18 Apr 2009 18:15:00 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3IIEvDV016399 for <1785@emacsbugs.donarmstrong.com>; Sat, 18 Apr 2009 11:14:58 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai8FAAu16UlLd+7D/2dsb2JhbACBTstdg30GhSg X-IronPort-AV: E=Sophos;i="4.40,210,1238990400"; d="scan'208";a="37263487" Original-Received: from 75-119-238-195.dsl.teksavvy.com (HELO pastel.home) ([75.119.238.195]) by ironport2-out.teksavvy.com with ESMTP; 18 Apr 2009 14:14:52 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 0DBED7EFC; Sat, 18 Apr 2009 14:14:52 -0400 (EDT) In-Reply-To: <87bpquiot3.fsf@cyd.mit.edu> (Chong Yidong's message of "Sat, 18 Apr 2009 00:11:20 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 18 Apr 2009 14:23:59 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27331 Archived-At: >> > What I currently don't understand is that the font rescaling doesn't >> > work for the default font in the above case even after >> > (clear-face-cache t). I'm now investigating the reason. >> >> I think the problem here is that the opened font objects are already >> stored in the LFACE_FONT entry of the default face. Note that >> >> M-: (set-face-attribute 'default nil :font (font-spec)) RET >> >> successfully refreshes the face with the correct rescaling. > Until a better solution comes along, I propose dealing with this > situation with the following hack in startup.el: check to see if the > init file changed face-font-rescale-alist, and reload the default face > if necessary. Can't we fix it right and make clear-face-cache refresh the default face as well? If the right fix is really too much trouble, then I guess your workaround is OK, but then it needs to come with a heavy dose of comments explaining why it's there and how to get rid of it. Stefan