bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18215: 24.4.50; OSX 10.6.8; set-frame-size by pixelwise does not wor


From: martin rudalics
Subject: bug#18215: 24.4.50; OSX 10.6.8; set-frame-size by pixelwise does not work following `make-fame`.
Date: Sun, 17 Aug 2014 12:12:46 +0200

> The following `window--dump-frame` printout was based on an UN-patched
> version of Emacs Trunk built on August 15, 2014 using the following
> settings.  The frame fills the entire screen, and is what I consider
> to be perfect.
>
>      (setq frame-resize-pixelwise t)
>
>      (set-face-attribute 'default (selected-frame) :font 
"-*-Courier-normal-normal-normal-*-18-*-*-*-m-0-iso10646-1")
>
>      (menu-bar-mode -1)
>
>      (tool-bar-mode -1)
>
>      (add-to-list 'default-frame-alist '(left-fringe . 11))
>
>      (add-to-list 'default-frame-alist '(right-fringe . 0))
>
>      (add-to-list 'default-frame-alist '(vertical-scroll-bars . nil))
>
>      (setq ns-auto-hide-menu-bar t)
>
>      (set-frame-position (selected-frame) 0 0)
>
>      (set-frame-size (selected-frame) 1905 1054 t)
>
> frame pixel: 1920 x 1058   cols/lines: 174 x 52   units: 11 x 20
> frame text pixel: 1905 x 1054   cols/lines: 173 x 52
> tool: 0  scroll: 0/0  fringe: 11  border: 2  right: 0  bottom: 0

Just for checking: If you change the following two forms

(add-to-list 'default-frame-alist '(left-fringe . 11))
(set-frame-size (selected-frame) 1905 1054 t)

to say

(add-to-list 'default-frame-alist '(left-fringe . 17))
(set-frame-size (selected-frame) 1899 1054 t)

do you still get the same value for the frame pixel width, namely 1920?

> The following `window--dump-frame` printout was based on a PATCHED
> (nsterm.m 08/15/2014) version of Emacs Trunk built on August 15, 2014
> using the following settings, and then manually typing `M-x
> toggle-frame-maximzed` after startup.  The width is now perfect (i.e.,
> 1920).  The height is almost perfect -- i.e., 1054 -- it looks like
> about 2 pixels to the top of the screen are not filled, and about 2
> pixels to the bottom of the screen are not filled.
>
>      (setq frame-resize-pixelwise t)
>
>      (set-face-attribute 'default (selected-frame) :font 
"-*-Courier-normal-normal-normal-*-18-*-*-*-m-0-iso10646-1")
>
>      (menu-bar-mode -1)
>
>      (tool-bar-mode -1)
>
>      (add-to-list 'default-frame-alist '(left-fringe . 11))
>
>      (add-to-list 'default-frame-alist '(right-fringe . 0))
>
>      (add-to-list 'default-frame-alist '(vertical-scroll-bars . nil))
>
>      (setq ns-auto-hide-menu-bar t)
>
> frame pixel: 1920 x 1054   cols/lines: 174 x 52   units: 11 x 20
> frame text pixel: 1905 x 1050   cols/lines: 173 x 52
> tool: 0  scroll: 0/0  fringe: 11  border: 2  right: 0  bottom: 0

I don't understand how these get calculated:

(* 11 174) gets me 1914.  Add 4 pixels for the internal border gets me
1918.  Where do those two pixels missing to 1920 go to or come from?

(* 20 52) gets me 1040.  Add 4 pixels for the internal border gets me
1044.  10 pixels missing to 1054 for what?

Do you have any means to trigger maximization from the window manager
via some sort of maximize button?

BTW, can you run Emacs under GDB?

martin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]