From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame Date: Wed, 09 Sep 2015 19:11:18 +0200 Message-ID: <55F06836.9060209@gmx.at> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070200050104020005070205" X-Trace: ger.gmane.org 1441818750 2687 80.91.229.3 (9 Sep 2015 17:12:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Sep 2015 17:12:30 +0000 (UTC) Cc: 21415@debbugs.gnu.org To: Keith David Bershatsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 09 19:12:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZZiuq-0001jB-4i for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Sep 2015 19:12:12 +0200 Original-Received: from localhost ([::1]:44109 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZiup-0002oH-LI for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Sep 2015 13:12:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZium-0002ny-6c for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2015 13:12:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZiug-0008KR-DB for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2015 13:12:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZiug-0008Jx-Af for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2015 13:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZZiuf-0001wn-MG for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2015 13:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Sep 2015 17:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21415 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21415-submit@debbugs.gnu.org id=B21415.14418186907440 (code B ref 21415); Wed, 09 Sep 2015 17:12:01 +0000 Original-Received: (at 21415) by debbugs.gnu.org; 9 Sep 2015 17:11:30 +0000 Original-Received: from localhost ([127.0.0.1]:54108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZiu9-0001vv-OV for submit@debbugs.gnu.org; Wed, 09 Sep 2015 13:11:30 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:58177) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZiu7-0001vn-9Z for 21415@debbugs.gnu.org; Wed, 09 Sep 2015 13:11:27 -0400 Original-Received: from [93.82.8.91] ([93.82.8.91]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Lx8ZJ-1YYFN61Shd-016f1N; Wed, 09 Sep 2015 19:11:25 +0200 In-Reply-To: X-Provags-ID: V03:K0:OChFOC3lnJswThX4sEDnJTuKqK3JPL2kRVGXxn/LLzzpeVKMglP B5Fjoi9l9FxLfpbIfvze5Dq21nOErVNTKClT6B4qkBF2jN4uqSwn8EZwU7lMwntBs1rM6O3 3nMzqCBxYXZNP3xfsEurnZUBnN4vCuhwNrlYBil4Vr2UeyXMLf6KcQRSPEWLqY/8qKtJhYu AyOkhBASW4TSkgY4nEH+w== X-UI-Out-Filterresults: notjunk:1;V01:K0:bleo5xarPYU=:+5/0fJ+RYEwO/ZJOPwxp7L oKbsXehApNr1oVA5V5f2nkzttA7RmgVLXpSyRIQMo8UaxW3j98Igrwhx36Y43ZQXFDbBQ1tNm 8RCojVyZeUfLJfQiPjjnyXRBRKZE8idj+CyxZHEJN5H0DBtkQrsVUlh9I/0zJG5L/PXrqiVe8 w8Kc9L1SAN/4Zyf09eqOAzdvxH0hUK2mH+O4rvF4Mahksm3UwFb4HGrxNufPfPbPDEdLkTppg 4TL7FeIR4qOuElpn/fNREJGupuSU/3Tz7hJJiXslOAAYOVHiA4xZgky8jEg5spxEy9/l3wia8 xSGErNCgCWTnoV5Jh5Ah281W0U5SXBlOKqs0D6SLwvh3/eIrnuZE0MQhkvmlYAWvdzdJXmHpB klY4chOEujpOC6BgtS2KX/8YUvxDyVxQLmKKZMkblkwVjhakgIES94Uh6jEInHnL3qRIJzxGL 2b+jh47k7dludAx1SFtBkaEqxEY0nZoYFsV0LDpvRjtVC50WV4OC89upeyGb1dkPwk7Sjwwgh c4CplFTQ9yacTYFSx/Drf+f1QsAyg6anlIb4K/FZj2VEDkwQ/CW0ub26tc31WvYxEb/xvD8Uq ry8uTGjhaUyyryakjKoW+2qQLZ4B5mdJ7kiD2kNngiCNK1KwCkaMZTO+Ua5vrk4FNY70IzgQu LAP4+tyRczKk+xDd7Z5bbeST7ElO6CAoW4Uss7P3N2zUA5AHJVHQGgMm1pJDr1WrneroXxVr8 F7K6A/qgyhqmh4Ly X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:106312 Archived-At: This is a multi-part message in MIME format. --------------070200050104020005070205 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > Step 1: M-x toggle-frame-maximized > > Step 2 [evaluate]: (set-face-attribute 'default nil :font "-*-Courier-normal-normal-normal-*-18-*-*-*-m-0-iso10646-1") > > RESULT: The frame substantially increases in size, going from maximized to extending well beyond the right edge of the screen. That's bad. Please try the attached patch (completely untested, might crash your Emacs). martin --------------070200050104020005070205 Content-Type: text/plain; charset=windows-1252; name="nsterm.m.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="nsterm.m.diff" diff --git a/src/nsterm.m b/src/nsterm.m index e90c3d7..196c30b 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -7612,8 +7612,9 @@ x_new_font (struct frame *f, Lisp_Object font_object, int fontset) /* Now make the frame display the given font. */ if (FRAME_NS_WINDOW (f) != 0 && ! [view isFullscreen]) - x_set_window_size (f, false, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f), - FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), true); + adjust_frame_size (f, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f), + FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), 3, + false, Qfont); return font_object; } --------------070200050104020005070205--