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#18215: 24.4.50; OSX 10.6.8; set-frame-size by pixelwise does not work following `make-fame`. Date: Sun, 10 Aug 2014 11:19:28 +0200 Message-ID: <53E73920.7070305@gmx.at> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1407662429 30587 80.91.229.3 (10 Aug 2014 09:20:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Aug 2014 09:20:29 +0000 (UTC) Cc: 18215@debbugs.gnu.org To: Keith David Bershatsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 10 11:20:21 2014 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 1XGPIa-0003gQ-NI for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Aug 2014 11:20:20 +0200 Original-Received: from localhost ([::1]:58715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGPIa-0003Rj-4N for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Aug 2014 05:20:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGPIQ-0003Qj-B8 for bug-gnu-emacs@gnu.org; Sun, 10 Aug 2014 05:20:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGPII-00008R-OO for bug-gnu-emacs@gnu.org; Sun, 10 Aug 2014 05:20:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGPII-000084-Ka for bug-gnu-emacs@gnu.org; Sun, 10 Aug 2014 05:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XGPII-0001PV-7k for bug-gnu-emacs@gnu.org; Sun, 10 Aug 2014 05:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Aug 2014 09:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18215 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18215-submit@debbugs.gnu.org id=B18215.14076623835391 (code B ref 18215); Sun, 10 Aug 2014 09:20:02 +0000 Original-Received: (at 18215) by debbugs.gnu.org; 10 Aug 2014 09:19:43 +0000 Original-Received: from localhost ([127.0.0.1]:36956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XGPHy-0001Os-EV for submit@debbugs.gnu.org; Sun, 10 Aug 2014 05:19:42 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:56328) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XGPHv-0001Of-Vv for 18215@debbugs.gnu.org; Sun, 10 Aug 2014 05:19:40 -0400 Original-Received: from [194.118.142.223] ([194.118.142.223]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MFR2O-1XArNG0I7w-00EL0W; Sun, 10 Aug 2014 11:19:30 +0200 In-Reply-To: X-Provags-ID: V03:K0:DD865jIEAnHOGMmc0ZPy4r5RGmF/qXDqICDSYTYGEcoxYTghVxF UNdv628SwNYDF7yuGbxyyBGrvH3xWe8eAArLOxCwDyucpuBFpEJklPs647qfF1l7XnLizmI V8EPsQVDVu+VnVOtZ7tBnz1echnoKno/CuAe7uQ9GIh3lKqP3euSDDqCgga1yH7hOCIC24+ X8YAfjuSMDqqiVN+gx0HA== X-UI-Out-Filterresults: notjunk:1; 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: 140.186.70.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:92368 Archived-At: Thanks for the dumps. As I expected, the difference of 6 pixels is explained by the different values for the fringes, namely ... > Here is the `(window--dump-frame)` printout for the June 1, 2014 Emacs Trunk build: > > frame pixel: 1920 x 1058 cols/lines: 174 x 52 units: 11 x 20 > frame text pixel: 1894 x 1054 cols/lines: 172 x 52 > tool: 0 scroll: 0 fringe: 22 border: 2 right: 0 bottom: 0 ... 22 pixels for the June build, and ... > Here is the `(window--dump-frame)` printout for the August 8, 2014 patched Emacs Trunk build: > > frame pixel: 1914 x 1058 cols/lines: 175 x 52 units: 11 x 20 > frame text pixel: 1894 x 1054 cols/lines: 172 x 52 > tool: 0 scroll: 0/0 fringe: 16 border: 2 right: 0 bottom: 0 .... 16 pixels for the August build. The reason for this is that the June build still rounds the fringe widths to the next multiple of the frame's character width which is listed as 11 in your dump (compare "units: 11 x 20") while the August build does not round any more. Basically, you should be able to fix this problem in a more generic way either by maximizing the frame instead of calculating its sizes by hand or by making the calculations use terms like those used in `window--dump-frame' where you should see how the "pixel size" of a frame relates to its "text size". In addition, you would have to platform-wise include the sizes of the outer borders and the frame decorations used by the respective window manager. I plan to provide these values within Emacs but since I do no have access to all platforms this might still take some time. > Both of the printouts were made using the settings contained in the initial bug report. It's not entirely clear to me how the values reported here relate to the values of > (setq-default left-fringe-width 10) > > (setq-default right-fringe-width 0) you report later. Do your fringes appear as if they had this width (10 pixels for the left and 0 pixels for the right) or do they look as in the dump (8 pixels on the left and the right, I presume)? martin