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: Fri, 08 Aug 2014 10:45:32 +0200 Message-ID: <53E48E2C.7090905@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 1407487648 12218 80.91.229.3 (8 Aug 2014 08:47:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2014 08:47:28 +0000 (UTC) To: Keith David Bershatsky , 18215@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 08 10:47: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 1XFfpY-0007Zt-OQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Aug 2014 10:47:20 +0200 Original-Received: from localhost ([::1]:49891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFfpY-0001hX-Cm for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Aug 2014 04:47:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFfpN-0001gR-Vx for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2014 04:47:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XFfpG-0000qU-FM for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2014 04:47:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFfpG-0000qQ-CN for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2014 04:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XFfpF-0004xZ-SF for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2014 04:47: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: Fri, 08 Aug 2014 08:47:01 +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.140748758219015 (code B ref 18215); Fri, 08 Aug 2014 08:47:01 +0000 Original-Received: (at 18215) by debbugs.gnu.org; 8 Aug 2014 08:46:22 +0000 Original-Received: from localhost ([127.0.0.1]:34607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFfoc-0004wd-0c for submit@debbugs.gnu.org; Fri, 08 Aug 2014 04:46:22 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:61655) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFfoY-0004wO-TN for 18215@debbugs.gnu.org; Fri, 08 Aug 2014 04:46:19 -0400 Original-Received: from [88.117.86.84] ([88.117.86.84]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MbPPQ-1Wx2Sz2SrE-00IkKN; Fri, 08 Aug 2014 10:46:09 +0200 In-Reply-To: X-Provags-ID: V03:K0:YnlDDnUR+hWvf8lqGPxg4Zp+IZeSakCjxE32kVR87ZiXGPsx8Qq zPkc1KmxZamrQY2rZSjUepsoNHAcEC4VZsOl7dh423aqMzOFpSZu7fbJx0CEHkC55Fo3wri /dzwZSGg29mg05VOcjE1O4kQ2INBCcm7FpLa/kL6zIgRRvcPYon3pbgpTbfWnDRmsOiQLPu va6N5eVI55q+3YtWm54tg== 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:92296 Archived-At: > 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