unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Keith David Bershatsky <esq@lawlist.com>
To: 18215@debbugs.gnu.org
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	[thread overview]
Message-ID: <m2tx5lcv5t.wl%esq@lawlist.com> (raw)
In-Reply-To: <m2wqakgn3d.wl%esq@lawlist.com>

[-- Attachment #1: Type: text/plain, Size: 213 bytes --]

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

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


[-- Attachment #2: Type: message/rfc822, Size: 3607 bytes --]

From: Keith David Bershatsky <esq@lawlist.com>
To: martin rudalics <rudalics@gmx.at>
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
Message-ID: <m24mxnknho.wl%esq@lawlist.com>

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

  parent reply	other threads:[~2014-08-09 19:36 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-07 18:40 bug#18215: 24.4.50; OSX 10.6.8; set-frame-size by pixelwise does not work following `make-fame` Keith David Bershatsky
2014-08-08  8:45 ` martin rudalics
2014-08-09 19:29 ` Keith David Bershatsky
2014-08-10  9:19   ` martin rudalics
2014-08-09 19:36 ` Keith David Bershatsky [this message]
2014-08-09 19:37 ` bug#18215: Fwd: " Keith David Bershatsky
2014-08-09 20:00 ` Keith David Bershatsky
2014-08-10 16:51 ` Keith David Bershatsky
2014-08-11  7:40   ` martin rudalics
2014-08-12  2:47 ` Keith David Bershatsky
2014-08-12 13:03   ` martin rudalics
2014-08-13  4:43 ` Keith David Bershatsky
2014-08-13  6:23   ` martin rudalics
2014-08-13 10:33     ` Jan D.
2014-08-13 12:21       ` martin rudalics
2014-08-13  4:49 ` Keith David Bershatsky
2014-08-14  3:44 ` Keith David Bershatsky
2014-08-15 15:52   ` martin rudalics
2014-08-16 23:35 ` Keith David Bershatsky
2014-08-17 10:12   ` martin rudalics
2014-08-17 18:29 ` Keith David Bershatsky
2014-08-18  8:31   ` martin rudalics
2017-09-02 17:44     ` bug#18215: [PATCH] Set frame size to actual requested size (bug#18215) Alan Third

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2tx5lcv5t.wl%esq@lawlist.com \
    --to=esq@lawlist.com \
    --cc=18215@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).