From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Van Holder Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#598: 23.0.60; frame size issue (--geometry or default-frame-alist) when using customized default face Date: Wed, 23 Jul 2008 10:18:02 +0200 Message-ID: <87k5fdvwsl.fsf@leeloo.anubex.internal> Reply-To: Tim Van Holder , 598@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 1216801698 13093 80.91.229.12 (23 Jul 2008 08:28:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Jul 2008 08:28:18 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 23 10:29:07 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 1KLZib-0005Rn-VS for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Jul 2008 10:29:06 +0200 Original-Received: from localhost ([127.0.0.1]:52434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLZhi-0005Tx-KV for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Jul 2008 04:28:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLZh3-0005CJ-Kw for bug-gnu-emacs@gnu.org; Wed, 23 Jul 2008 04:27:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLZh2-0005Bc-Ip for bug-gnu-emacs@gnu.org; Wed, 23 Jul 2008 04:27:28 -0400 Original-Received: from [199.232.76.173] (port=59593 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLZh2-0005BQ-7u for bug-gnu-emacs@gnu.org; Wed, 23 Jul 2008 04:27:28 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48965) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KLZgx-0004WT-Bs for bug-gnu-emacs@gnu.org; Wed, 23 Jul 2008 04:27:23 -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 m6N8RIJb022297; Wed, 23 Jul 2008 01:27:19 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m6N8P56Y021289; Wed, 23 Jul 2008 01:25:05 -0700 X-Loop: don@donarmstrong.com Resent-From: Tim Van Holder Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 23 Jul 2008 08:25:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 598 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121680110019946 (code B ref -1); Wed, 23 Jul 2008 08:25:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 23 Jul 2008 08:18:20 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6N8IG4D019940 for ; Wed, 23 Jul 2008 01:18:17 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:43767) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KLZXQ-0001ZF-9X for emacs-pretest-bug@gnu.org; Wed, 23 Jul 2008 04:17:32 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KLZY3-0002fT-Tz for emacs-pretest-bug@gnu.org; Wed, 23 Jul 2008 04:18:15 -0400 Original-Received: from 179.75-78-194.adsl-static.isp.belgacom.be ([194.78.75.179]:34321 helo=mail.anubex.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KLZY3-0002f2-Cg for emacs-pretest-bug@gnu.org; Wed, 23 Jul 2008 04:18:11 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.anubex.com (Postfix) with ESMTP id 8270CD911B7; Wed, 23 Jul 2008 10:18:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at anubex.com Original-Received: from mail.anubex.com ([127.0.0.1]) by localhost (mail.anubex.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qHfxXcv-APGq; Wed, 23 Jul 2008 10:18:03 +0200 (CEST) Original-Received: from leeloo.anubex.internal (177.75-78-194.adsl-static.isp.belgacom.be [194.78.75.177]) by mail.anubex.com (Postfix) with ESMTPS id E3B0D6E899; Wed, 23 Jul 2008 10:18:02 +0200 (CEST) Original-Received: from tim by leeloo.anubex.internal with local (Exim 4.63) (envelope-from ) id 1KLZXu-00042O-Gm; Wed, 23 Jul 2008 10:18:02 +0200 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 23 Jul 2008 04:27:28 -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:18789 gmane.emacs.pretest.bugs:22754 Archived-At: For a few weeks now (starting around the time of the fix for #47, which may or may not be relevant), emacs no longer comes up with the correct frame size. I have it set (to 132x60) in default-frame-alist, but emacs end up with varying frame sizes instead - while there seem to be a few that it favors, I can't see any real pattern in it. The same happens if I remove the width/height settings from default-frame-alist and use --geometry instead. "emacs -Q --geometry 132x60" does seem to work 100% of the time. I tried erasing the font/foundry customization, but that made no difference; changing the font height, however, did. Emacs seems to default to a height of 116 while I have mine set to 135 (since with the font I prefer to use (Terminus), 116 is too small to read comfortably). So it looks like the frame size is being computed based on the wrong font sizing. A few things I noticed while testing this: - customizing the size of the default font causes emacs to repain its frame, and quite often this messes up the scrollbars (which I have set to appear on the right). Sometimes there is a black border to their right, sometimes they disappear. In either case, manually sizing the frame makes them redraw in their correct place. - after saving the default face with the font and foundry items unchecked (i.e. uncustomized), and restarting emacs, it shows the font and foundry as customized (using Bitstream Vera Sans Mono) - the 'foundry' setting was also added fairly recently; how do I find out a font's foundry so that I can set it correctly when customizing a face? Is there perhaps a font picker available in emacs that would allow me to customize a face more effectively?