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

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

bug#18215: Fwd: Re: bug#18215: 24.4.50; OSX 10.6.8; set-frame-size by pi


From: Keith David Bershatsky
Subject: bug#18215: Fwd: Re: bug#18215: 24.4.50; OSX 10.6.8; set-frame-size by pixelwise does not work following `make-fame`.
Date: Sat, 09 Aug 2014 12:36:30 -0700
User-agent: / () / () APEL/10.8 Emacs/24.4.50 (x86_64-apple-darwin10.8.0) MULE/6.0 (HANACHIRUSATO)

The following is a copy of a message that should have been sent to 
`18215@debbugs.gnu.org`, but which was inadvertently omitted.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

--- Begin Message --- Subject: Re: 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 08:30:27 -0700 User-agent: / () / () APEL/10.8 Emacs/24.4.50 (x86_64-apple-darwin10.8.0) MULE/6.0 (HANACHIRUSATO)
The version of Emacs Trunk built on June 1, 2014 works well -- i.e., the two 
examples in the current bug report work as expected.

GNU Emacs 24.4.50.1 (x86_64-apple-darwin10.8.0, NS appkit-1038.36 Version 
10.6.8 (Build 10K549)) of 2014-06-01 on MP.local

I did not test any builds between the dates of June 2, 2014 through August 6, 
2014.

Yes, `(set-frame-size (selected-frame) 1894 1054 t)`, works well with the 
August 7 and 8, 2014 build when it is evaluated all by itself.

`M-x toggle-frame-maximized` works well with the August 7 and 8, 2014 build.

Keith

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

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

--- End Message ---

reply via email to

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