From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#598: 23.0.60; frame size issue (--geometry or default-frame-alist) when using customized default face Date: Mon, 03 Nov 2008 11:00:17 -0500 Message-ID: <87wsfkkdf2.fsf@cyd.mit.edu> Reply-To: Chong Yidong , 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 1225728650 3939 80.91.229.12 (3 Nov 2008 16:10:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Nov 2008 16:10:50 +0000 (UTC) Cc: 598@emacsbugs.donarmstrong.com To: "Tim Van Holder" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 03 17:11:51 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 1Kx21i-00055k-Mq for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Nov 2008 17:11:38 +0100 Original-Received: from localhost ([127.0.0.1]:55770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kx20b-0000tb-PT for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Nov 2008 11:10:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kx20K-0000jK-Oc for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2008 11:10:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kx20F-0000gI-UU for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2008 11:10:12 -0500 Original-Received: from [199.232.76.173] (port=60166 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kx20F-0000gB-Pi for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2008 11:10:07 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55324) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kx20F-0006pQ-D3 for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2008 11:10:07 -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 mA3GA4bI024245; Mon, 3 Nov 2008 08:10:05 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mA3G59Pi023197; Mon, 3 Nov 2008 08:05:09 -0800 X-Loop: don@donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 03 Nov 2008 16:05:09 +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.122572801321532 (code B ref 598); Mon, 03 Nov 2008 16:05:09 +0000 Original-Received: (at 598) by emacsbugs.donarmstrong.com; 3 Nov 2008 16:00:13 +0000 Original-Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA3G099Y021517 for <598@emacsbugs.donarmstrong.com>; Mon, 3 Nov 2008 08:00:10 -0800 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id C6E2C57E1B7; Mon, 3 Nov 2008 11:00:17 -0500 (EST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 03 Nov 2008 11:10:12 -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:22127 Archived-At: "Tim Van Holder" writes: > Unfortunately, even after a maintainer-clean + make bootstrap, the > issue is not resolved for me. In fact, the very first run of the new > emacs resulted in a frame that was 168x61 instead of 132x57 (is that > 132x60->132x57 as a result of menu/toolbars considered a bug or a > feature?). Does the following patch improve matters? *** trunk/src/xfns.c.~1.727.~ 2008-10-28 11:24:26.000000000 -0400 --- trunk/src/xfns.c 2008-11-03 10:33:55.000000000 -0500 *************** *** 3099,3104 **** --- 3099,3118 ---- x_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING); } + DEFUN ("x-wm-set-size-hint", Fx_wm_set_size_hint, Sx_wm_set_size_hint, + 0, 1, 0, + doc: /* Send the size hints for frame FRAME to the window manager. */) + (frame) + Lisp_Object frame; + { + struct frame *f; + if (NILP (frame)) + frame = selected_frame; + f = XFRAME (frame); + BLOCK_INPUT; + x_wm_set_size_hint (f, 0, 0); + UNBLOCK_INPUT; + } DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, 1, 1, 0, *************** *** 5944,5949 **** --- 5958,5964 ---- defsubr (&Sx_display_visual_class); defsubr (&Sx_display_backing_store); defsubr (&Sx_display_save_under); + defsubr (&Sx_wm_set_size_hint); defsubr (&Sx_create_frame); defsubr (&Sx_open_connection); defsubr (&Sx_close_connection); *** trunk/lisp/term/x-win.el.~1.235.~ 2008-08-30 19:54:06.000000000 -0400 --- trunk/lisp/term/x-win.el 2008-11-03 10:33:09.000000000 -0500 *************** *** 1540,1545 **** --- 1540,1548 ---- ;; Don't let Emacs suspend under X. (add-hook 'suspend-hook 'x-win-suspend-error) + ;; Set wm hints after initialization + (add-hook 'after-init-hook 'x-wm-set-size-hint) + ;; Turn off window-splitting optimization; X is usually fast enough ;; that this is only annoying. (setq split-window-keep-point t)