From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#119: modify-frame-parameters in Emacs 23 for fonts Date: Fri, 28 Nov 2008 13:38:29 -0800 Message-ID: <00ab01c951a1$a7a235e0$0200a8c0@us.oracle.com> References: <001c01c8f8b4$594cb460$c2b22382@us.oracle.com> Reply-To: Drew Adams , 119@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1227909033 5954 80.91.229.12 (28 Nov 2008 21:50:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Nov 2008 21:50:33 +0000 (UTC) To: <119@emacsbugs.donarmstrong.com> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 28 22:51:35 2008 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 1L6BFO-0002MP-G1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Nov 2008 22:51:34 +0100 Original-Received: from localhost ([127.0.0.1]:40519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6BEE-0002cM-J8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Nov 2008 16:50:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L6BE8-0002c5-D7 for bug-gnu-emacs@gnu.org; Fri, 28 Nov 2008 16:50:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L6BE7-0002bl-Qh for bug-gnu-emacs@gnu.org; Fri, 28 Nov 2008 16:50:15 -0500 Original-Received: from [199.232.76.173] (port=33180 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6BE7-0002bi-Hs for bug-gnu-emacs@gnu.org; Fri, 28 Nov 2008 16:50:15 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55160) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L6BE6-00008l-VU for bug-gnu-emacs@gnu.org; Fri, 28 Nov 2008 16:50:15 -0500 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 mASLoBAA028419; Fri, 28 Nov 2008 13:50:12 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mASLj3gJ026356; Fri, 28 Nov 2008 13:45:03 -0800 X-Loop: don@donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 28 Nov 2008 21:45:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 119 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: fixed Original-Received: via spool by 119-submit@emacsbugs.donarmstrong.com id=B119.122790831525049 (code B ref 119); Fri, 28 Nov 2008 21:45:03 +0000 Original-Received: (at 119) by emacsbugs.donarmstrong.com; 28 Nov 2008 21:38:35 +0000 Original-Received: from rgminet12.oracle.com (rcsinet12.oracle.com [148.87.113.124]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mASLcWR9025041 for <119@emacsbugs.donarmstrong.com>; Fri, 28 Nov 2008 13:38:33 -0800 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mASLcELs012779 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <119@emacsbugs.donarmstrong.com>; Fri, 28 Nov 2008 21:38:15 GMT Original-Received: from acsmt702.oracle.com (acsmt702.oracle.com [141.146.40.80]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mASLcS2l028195 for <119@emacsbugs.donarmstrong.com>; Fri, 28 Nov 2008 21:38:29 GMT Original-Received: from dradamslap1 (/24.23.165.218) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 28 Nov 2008 13:38:21 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <001c01c8f8b4$594cb460$c2b22382@us.oracle.com> Thread-Index: Acj4tFi2CqS0Is7gTcKwPtn/G8EAMxY7NoRg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt702.oracle.com [141.146.40.80] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A01020A.493064CF.00AA:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 28 Nov 2008 16:50:15 -0500 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:22747 Archived-At: This bug seems still not to be fixed, and I cannot even find it listed in the bugs database: http://emacsbugs.donarmstrong.com/cgi-bin/pkgreport.cgi?pkg=emacs. What is that status of this bug? Is there some other bugs page where this appears? AFAICT, this bug persists; it was not fixed by merging the font-backend. Marking it as fixed seems to have been premature. Thx - Drew > From: Drew Adams Sent: Thursday, August 07, 2008 10:38 AM > This bug is marked fixed, but it has not been fixed. > Jason marked it as fixed on 2008-05-08, with this note: > > I've marked this as fixed, since the bug reported will > be fixed when font-backend is merged. > I will not close it at this time though, as valid points > about documentation were raised. > > Then, on 2008-06-12, I received a mail saying that it was > closed. In any case, it is *not* fixed - I see the same > thing in this recent build: > > GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) > of 2008-08-01 on LENNART-69DE564 > Windowing system distributor `Microsoft Corp.', version 5.1.2600 > configured using `configure --with-gcc (3.4) --no-opt --cflags > -Ic:/g/include -fno-crossjumping' > > There are two things that might be the problem: > > (1) `modify-frame-parameters' changes the `font' parameter behind your > back from the value you provide `modify-frame-parameters': > > (modify-frame-parameters frame > (list (cons 'font "-outline-Lucida Console-normal-normal-\ > normal-mono-15-*-*-*-c-*-iso8859-1"))) > > The `font' frame parameter is then: > > "-outline-Lucida Console-normal-normal-normal-mono-15-\ > *-*-*-c-*-fontset-auto8" > > IOW, iso8859-1 gets replaced by fontset-auto8. > > (2) `x-list-fonts' returns nil when passed such a font (i.e. with > fontset-auto8). > > This breaks my code. Though the frame and the font appear normal, > `x-list-fonts' does not recognize such a font. My code changes the > font name to use a different size (e.g. changes 15 to 14), but it > checks that `x-list-fonts' recognizes the font name before trying to > use it. And `x-list-fonts' does not recognize the name (with > "fontset-auto8") that `modify-frame-parameters' establishes behind the > scene. > > The font that I provide to `modify-frame-parameters' is recognized by > `x-list-fonts', and it has the same appearance, but it never appears > as the frame parameter in this context because > `modify-frame-parameters' substitutes a different name. > > > Below is the pertinent part of the original bug report. The symptom is > the same, but the font that `modify-frame-parameters' substitutes is > slightly different. > > Back in April, it substituted: > "-outline-lucida console-normal-roman-normal-mono-15-\ > *-*-*-*-*-fontset-startup" > > Now it substitutes: > "-outline-Lucida Console-normal-normal-normal-mono-15-\ > *-*-*-c-*-fontset-auto8" > > Neither is recognized by `x-list-fonts'. > > --------8<---------2008-04-05 report ------------------- > > (frame-parameter nil 'font) -> > "-*-Lucida Console-normal-r-*-*-14-*-96-96-c-*-iso8859-1" > > (modify-frame-parameters > nil > (list > (cons > 'font > "-*-Lucida Console-normal-r-*-*-15-*-96-96-c-*-iso8859-1"))) > > (frame-parameter nil 'font) -> > "-outline-lucida > console-normal-roman-normal-mono-15-*-*-*-*-*-fontset-startup" > > What's that about? In Emacs 20, 21, and 22, the result is > just the font I > specified. > > I have code that zooms frames (font size). I change just the > point size in the > font spec, using `x-decompose-font-name' and > `x-compose-font-name'. I check that > the result is a legitimate font using `x-list-fonts'. If not, > I increase or > decrease the increment until I find the font that works with > the closest size. > > [Yes, I know there are other ways to adjust font size, but > I've found that this > method is flexible for users and provides certain benefits.] > > My code no longer works without change, because after one call to > `modify-frame-parameters' the font is no longer something > recognized by > `x-list-fonts'. I can comment out the part that iterates > until it finds a size > that works (recognized by `x-list-fonts'). That works, but > I'm still curious > about this. (Is there perhaps a bug in `x-list-fonts' or in > `modify-frame-parameters'?) > > > > > >