From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#119: marked as done (modify-frame-parameters in Emacs 23 for fonts) Date: Thu, 01 Jan 2009 02:20:04 +0000 Message-ID: References: <495C2629.40504@gnu.org> <000201c8978c$69739fe0$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1230776405-5475-2" X-Trace: ger.gmane.org 1230776632 18820 80.91.229.12 (1 Jan 2009 02:23:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Jan 2009 02:23:52 +0000 (UTC) To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 01 03:24:59 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 1LIDF2-0002Se-EM for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Jan 2009 03:24:57 +0100 Original-Received: from localhost ([127.0.0.1]:47660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LIDDk-0007Ut-Fl for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Dec 2008 21:23:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LIDDf-0007Uk-4w for bug-gnu-emacs@gnu.org; Wed, 31 Dec 2008 21:23:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LIDDd-0007UY-GC for bug-gnu-emacs@gnu.org; Wed, 31 Dec 2008 21:23:29 -0500 Original-Received: from [199.232.76.173] (port=40187 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LIDDd-0007UV-AQ for bug-gnu-emacs@gnu.org; Wed, 31 Dec 2008 21:23:29 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38691) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LIDDY-00039y-PV; Wed, 31 Dec 2008 21:23:25 -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 n012NMnd006635; Wed, 31 Dec 2008 18:23:22 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n012K5I9005620; Wed, 31 Dec 2008 18:20:05 -0800 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 119 X-Emacs-PR-Package: emacs,w32 X-Emacs-PR-Keywords: fixed X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:23627 Archived-At: This is a multi-part message in MIME format... ------------=_1230776405-5475-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Thu, 01 Jan 2009 10:10:49 +0800 with message-id <495C2629.40504@gnu.org> and subject line Re: bug#1562: 23.0.60; modify-frame-parameters in Emacs 23= for fonts has caused the Emacs bug report #1562, regarding modify-frame-parameters in Emacs 23 for fonts to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 1562: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D1562 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1230776405-5475-2 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Status: No, score=1.0 required=4.0 tests=AWL,FOURLA,UNPARSEABLE_RELAY autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 6 Apr 2008 03:04:50 +0000 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 m3634kNJ020066 for ; Sat, 5 Apr 2008 20:04:47 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvACAPfa90fO+J/WdGdsb2JhbACBXI94ASpWlxs X-IronPort-AV: E=Sophos;i="4.25,610,1199682000"; d="scan'208";a="17882536" Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 05 Apr 2008 23:04:40 -0400 Received: from pastel.home ([206.248.159.214]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id MHK17240 for ; Sat, 05 Apr 2008 23:04:40 -0400 Received: by pastel.home (Postfix, from userid 20848) id EDB4D8898; Sat, 5 Apr 2008 23:04:39 -0400 (EDT) Resent-Message-ID: Resent-To: submit@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-Date: Sat, 05 Apr 2008 23:04:39 -0400 X-Original-To: monnier@iro.umontreal.ca Received: from pinpin.iro.umontreal.ca (pinpin.iro.umontreal.ca [132.204.24.52]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id EA3E92CFA0D for ; Sat, 5 Apr 2008 22:18:14 -0400 (EDT) Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by pinpin.iro.umontreal.ca (Postfix) with ESMTP id 2268F3B8AA7 for ; Sat, 5 Apr 2008 22:18:08 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JiKSN-0003a9-RQ for monnier@iro.umontreal.ca; Sat, 05 Apr 2008 22:18:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JiKS4-0003Xh-5B for emacs-devel@gnu.org; Sat, 05 Apr 2008 22:17:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JiKS2-0003Vh-QM for emacs-devel@gnu.org; Sat, 05 Apr 2008 22:17:47 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JiKS2-0003VY-N6 for emacs-devel@gnu.org; Sat, 05 Apr 2008 22:17:46 -0400 Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JiKS2-0008Mf-Ba for emacs-devel@gnu.org; Sat, 05 Apr 2008 22:17:46 -0400 Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m362HhkO022617 for ; Sat, 5 Apr 2008 21:17:43 -0500 Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m360qkFn021960 for ; Sat, 5 Apr 2008 20:17:43 -0600 Received: from inet-141-146-46-1.oracle.com by acsmt351.oracle.com with ESMTP id 3640497161207448262; Sat, 05 Apr 2008 19:17:42 -0700 Received: from dradamslap1 (/141.144.64.62) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 05 Apr 2008 19:17:42 -0700 From: "Drew Adams" To: Date: Sat, 5 Apr 2008 19:17:49 -0700 Message-ID: <000201c8978c$69739fe0$0200a8c0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: AciXjGkUccqyuRqdSruVv1GJrJHlAA== X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 Subject: modify-frame-parameters in Emacs 23 for fonts 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: , Sender: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org Errors-To: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-1.94, requis 5, BAYES_00 -2.60, RECEIVED_FROM_NOUNK 0.66, SPF_HELO_PASS -0.00) X-DIRO-MailScanner-From: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org I'm using this: GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-04-04 on LENNART-69DE564. (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'?) I couldn't find anything that helps me understand this in the manuals. I haven't tried to dig through any code. Can someone light my lantern about this? I looked in NEWS also, and saw something about a font backend (I didn't follow the threads here about that). But I couldn't find anything in the Elisp or Emacs manuals about "backend" or "back?end", except for version-control back ends. A NEWS entry also says this: "the configure option `--disable-font-backend' (also available as a run-time option)." But I can't find any such option (variable) with `backend' or `back-end' in its name (except for `vc-handled-backends'). I see, in both NEWS and in my frames, a parameter named `font-backend', but I have no idea what it is. For me, its value is (font-backend uniscribe gdi), FWIW. Finding the function `fontp' mentioned in NEWS (but not in the Elisp manual, alas), I also tried that in place of `x-list-fonts'. But it too does not indicate that "-outline-lucida console-normal-roman-normal-mono-15-*-*-*-*-*-fontset-startup" is a legitimate font. I see font terms in NEWS that I don't see explained in the manual: font-entity object, font-spec object, font property value. I also see functions mentioned, such as `font-font', that my Emacs does not recognize. Are they perhaps only for X? This whole area is a murky one, for me. Do others feel that this stuff is explained well enough - in either the manuals or NEWS? Am I the only dummy about this? Is this is a hidden subject for some secret club? ;-) If not, how about some explanation? ------------=_1230776405-5475-2 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 1562-done) by emacsbugs.donarmstrong.com; 1 Jan 2009 02:11:23 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.184]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n012BKcR004153 for <1562-done@emacsbugs.donarmstrong.com>; Wed, 31 Dec 2008 18:11:21 -0800 Received: by ti-out-0910.google.com with SMTP id b6so4309282tic.1 for <1562-done@emacsbugs.donarmstrong.com>; Wed, 31 Dec 2008 18:11:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=CvHqsLzbsL2hduBS49iImII6pD7D564x83sCi+5i6W8=; b=D4R6L2MyHRCsb5GKZXfvABcM1mRbSzC5oalPaYX9dvErv6E0wQ9WKfVx/xOmokSNHC v9nPrBLkn71rnFPAOr5/n2ZtP3xoj7CXpjRXbB4gf885q7BU+8uJeb5mRUU5YR4lewWI oQS0GRZQQdTbtDNjA6THiUxPbiYUguQlkSZdE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=U9XztnTF9r1e7ieZU7VEmlm9xPxRvsLCluZBdu4pfwTpzC21Go7wBM+Dn7dYreKczW 5xeGPbO/MGSdpqNnT8Y2SW2sxscApkb0r2ym554uhJdRp73QkB5KoETErOtqDBFG8wh/ TKg23f2Sy4tZjSL/Zn8YBGjoGlgiML1ZMF8EM= Received: by 10.110.41.17 with SMTP id o17mr2385081tio.12.1230775879537; Wed, 31 Dec 2008 18:11:19 -0800 (PST) Received: from ?192.168.249.27? ([118.101.235.115]) by mx.google.com with ESMTPS id w12sm5583910tib.33.2008.12.31.18.11.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 31 Dec 2008 18:11:18 -0800 (PST) Sender: Jason Rumney Message-ID: <495C2629.40504@gnu.org> Date: Thu, 01 Jan 2009 10:10:49 +0800 From: Jason Rumney User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Drew Adams CC: 1562-done@emacsbugs.donarmstrong.com Subject: Re: bug#1562: 23.0.60; modify-frame-parameters in Emacs 23 for fonts References: <001e01c95d55$595d9b80$0200a8c0@us.oracle.com> <49451CBD.50108@gnu.org> <000a01c95e11$99e69410$0200a8c0@us.oracle.com> In-Reply-To: <000a01c95e11$99e69410$0200a8c0@us.oracle.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Drew Adams wrote: > After loading, (frame-parameter nil 'font) gives > "-outline-Lucida Console-normal-normal-normal-mono-14-*-*-*-c-*-iso8859-1" > > Then do `C-u 5 M-x enlarge-font'. (frame-parameter nil 'font) gives > "-outline-Lucida Console-normal-normal-normal-mono-19-*-*-*-c-*-iso8859-1" > which is correct. > > Then do `C-u -5 M-x enlarge-font'. (frame-parameter nil 'font) gives > "-outline-Lucida Console-normal-normal-normal-mono-14-*-*-*-c-*-fontset-auto1" > which is NOT correct. > I have fixed this now, x_new_font in w32term.c had not been updated in line with xterm.c. ------------=_1230776405-5475-2--