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 Subject: bug#598: 23.0.60; frame size issue (--geometry or default-frame-alist) when using customized default face Date: Wed, 1 Oct 2008 10:12:37 +0200 Message-ID: References: <87bpy5yyim.fsf@cyd.mit.edu> Reply-To: Tim Van Holder , 598@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_82964_6625722.1222848757526" X-Trace: ger.gmane.org 1222849842 11615 80.91.229.12 (1 Oct 2008 08:30:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2008 08:30:42 +0000 (UTC) Cc: 598@emacsbugs.donarmstrong.com To: "Chong Yidong" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 01 10:31:37 2008 connect(): Connection refused 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 1Kkx7O-0004QH-2R for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Oct 2008 10:31:34 +0200 Original-Received: from localhost ([127.0.0.1]:54951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kkx6L-0002ZG-5D for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Oct 2008 04:30:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kkx62-0002MM-5H for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2008 04:30:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kkx60-0002Ir-BB for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2008 04:30:09 -0400 Original-Received: from [199.232.76.173] (port=47516 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kkx60-0002IY-6q for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2008 04:30:08 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53546) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kkx5y-0006Qg-Cu for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2008 04:30:08 -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 m918TtZf004803; Wed, 1 Oct 2008 01:29:56 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m918K3i4002385; Wed, 1 Oct 2008 01:20:03 -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, 01 Oct 2008 08:20:03 +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 598-submit@emacsbugs.donarmstrong.com id=B598.12228487671015 (code B ref 598); Wed, 01 Oct 2008 08:20:03 +0000 Original-Received: (at 598) by emacsbugs.donarmstrong.com; 1 Oct 2008 08:12:47 +0000 Original-Received: from mail-gx0-f19.google.com (mail-gx0-f19.google.com [209.85.217.19]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m918Cg0Q001009 for <598@emacsbugs.donarmstrong.com>; Wed, 1 Oct 2008 01:12:44 -0700 Original-Received: by gxk12 with SMTP id 12so13679377gxk.1 for <598@emacsbugs.donarmstrong.com>; Wed, 01 Oct 2008 01:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=JPDAR1hz5j+jVFaoYa570N5t41V9+BY7HLXabdIO/XA=; b=s98x1ZtzauO90PsCGutwLj9HxeQ45FZCHdMHhsxgCOeEz2kjntvHwopVYvVfI3fVab BHuW++oHxtzMe3l4i8buSFEZZz10VtJJHQFQtzS7qIG/oA8VCY/1fCaPGckuFvX9EPsV qNgZmDqWYwZAXiNxaMENfl4piJkV5QrKCQ4s4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=HnrCe9WFDRUFFECCVAC6LYw+T4iUpuyd8Jt2NC/3G1JWVJtbC7zOgXMLz8K1xRRLcW 69Q1B8C1zFlzRtek+Wksmj01MTI7j2ztCsSk1QXVrGAzLtShAJDwbk4x35pRh0MllkBP aLhey0WEctElCTt91N8GYr2MhbVNliIeLB77o= Original-Received: by 10.151.114.6 with SMTP id r6mr545725ybm.19.1222848757557; Wed, 01 Oct 2008 01:12:37 -0700 (PDT) Original-Received: by 10.151.12.15 with HTTP; Wed, 1 Oct 2008 01:12:37 -0700 (PDT) In-Reply-To: <87bpy5yyim.fsf@cyd.mit.edu> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 01 Oct 2008 04:30:09 -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:20943 Archived-At: ------=_Part_82964_6625722.1222848757526 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wed, Oct 1, 2008 at 2:01 AM, Chong Yidong wrote: > Thanks for the backtrace. > > Could you go to the third breakpoint, i.e. > > Fset_frame_size (frame=147078268, cols=896, rows=384) > > and check the following variables? > > n > n > n > n (until f is assigned) > p f->new_text_lines > p f->new_text_cols > > Also, could you send me the minimal .emacs and .Xresources required to > reproduce this bug for you? > > Thanks. gdb log attached. Note: 'f' was not available inside Fset_frame_size (due to optimization perhaps), so I got the info inside x_set_window_size() instead. My recipe: - set aside .emacs (I have no .Xresources) - run emacs (-> gets me an 80x37 frame) - run emacs --geometry 132x60 ( gets me an 132x57 frame) => these are explained by menu/toolbars, if I disable those, X reports the window as 132x60; while this bothers me a little, if it just means I have to ask for 132x63, that would be fine I guess - customize-face default, set font to terminus (foundry xos4), and height to 135 - run emacs --geometry 132x60 -> erratic results Checking now, it looks like it's the terminus font causing the current troubles, a few other fonts I've checked (e.g. adobe courier) seem to end up at 132x57 reliably. This puzzles me, as I am sure I originally reproduced it by changing only the font height and keeping the font itself unchanged. I'm also getting max-specpdl-size exceeded on C-x 5 2, so I cannot check the previously observed behaviour that even when the initial frame is erratically sized, subsequent frames are fine. ------=_Part_82964_6625722.1222848757526 Content-Type: text/plain; name=emacs598-gdb2.txt Content-Transfer-Encoding: base64 X-Attachment-Id: f_flrneime0 Content-Disposition: attachment; filename=emacs598-gdb2.txt dGltQGxlZWxvbzp+L2dudS9idWlsZC9saW51eC9lbWFjcy9zcmMkIGdkYiBlbWFjcwpHTlUgZ2Ri IDYuNC45MC1kZWJpYW4KQ29weXJpZ2h0IChDKSAyMDA2IEZyZWUgU29mdHdhcmUgRm91bmRhdGlv biwgSW5jLgpHREIgaXMgZnJlZSBzb2Z0d2FyZSwgY292ZXJlZCBieSB0aGUgR05VIEdlbmVyYWwg UHVibGljIExpY2Vuc2UsIGFuZCB5b3UgYXJlCndlbGNvbWUgdG8gY2hhbmdlIGl0IGFuZC9vciBk aXN0cmlidXRlIGNvcGllcyBvZiBpdCB1bmRlciBjZXJ0YWluIGNvbmRpdGlvbnMuClR5cGUgInNo b3cgY29weWluZyIgdG8gc2VlIH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