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: Fri, 08 Aug 2014 10:45:32 +0200

> As to a version of Emacs Trunk built this morning (August 7, 2014), it is no 
longer possible to set the frame size using pixelwise immediately following a call 
of `make-frame`, or when launching Emacs.

Can you tell me the date of the last build where this worked for you?

> This no longer works on OSX 10.6.8:
>
>      (let ((frame (make-frame)))
>        (set-frame-size frame 1894 1054 t))

This should work, indeed.  Does it work correctly by evaluating just

(set-frame-size frame 1894 1054 t)

interactively?

> The following function should be able to work on startup of Emacs to modify 
the initial frame, however it does not work on OSX 10.6.8:
>
>      (let ((frame (selected-frame)))
>        (cond
>          ((eq system-type 'darwin)
>            (setq ns-auto-hide-menu-bar t)
>            (set-frame-position frame 0 0) ;; must come after 
`ns-auto-hide-menu-bar`
>            (cond
>              ((and
>                  (= 1920 (display-pixel-width))
>                  (= 1080 (display-pixel-height)))
>                (set-frame-size frame 1894 1054 t))
>              ((and
>                  (= 1920 (display-pixel-width))
>                  (= 1200 (display-pixel-height)))
>                (set-frame-size frame 1894 1174 t))
>              ((and
>                  (= 1280 (display-pixel-width))
>                  (= 800 (display-pixel-height)))
>                (set-frame-size frame 1254 774 t))) )
>          ((eq system-type 'windows-nt)
>            ;; (w32-send-sys-command #xf030)
>            (set-frame-position frame 0 0)
>            (cond
>              ((and
>                  (= 1920 (display-pixel-width))
>                  (= 1003 (display-pixel-height)))
>                (set-frame-size frame 1876 940 t))
>              ((and
>                  (= 1920 (display-pixel-width))
>                  (= 1123 (display-pixel-height)))
>                (set-frame-size frame 1876 1052 t))
>              ((and
>                  (= 1280 (display-pixel-width))
>                  (= 723 (display-pixel-height)))
>                (set-frame-size frame 1250 670 t)))  )))

I hope it continues to work for you on Windows.  Here setting the
initial size works as expected on Windows.  I don't have OSX to test it.
BTW, does "maximizing" your frame on OSX work?

martin





reply via email to

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