From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.bugs Subject: bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame Date: Sun, 20 Sep 2015 11:27:43 +0200 Message-ID: References: <55F5B9DF.5020001@gmx.at> <55F6860D.9060503@gmx.at> <55F6CE22.1070502@gmx.at> <55F705E6.1000609@gmx.at> <55F7D6F6.90801@gmx.at> <55FDDEE6.8070408@gmx.at> <55FE71D2.7050401@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11434d2084825005202a60a3 X-Trace: ger.gmane.org 1442741303 2764 80.91.229.3 (20 Sep 2015 09:28:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Sep 2015 09:28:23 +0000 (UTC) Cc: Keith David Bershatsky , 21415@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 20 11:28:14 2015 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 1Zdaup-0007Eg-Bh for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Sep 2015 11:28:11 +0200 Original-Received: from localhost ([::1]:50832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zdauo-0005LU-GY for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Sep 2015 05:28:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zdauk-0005LA-F8 for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2015 05:28:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zdauh-0001od-3i for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2015 05:28:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zdaug-0001oZ-VZ for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2015 05:28:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zdaug-0001Wi-F5 for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2015 05:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Anders Lindgren Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Sep 2015 09:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21415 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21415-submit@debbugs.gnu.org id=B21415.14427412675848 (code B ref 21415); Sun, 20 Sep 2015 09:28:02 +0000 Original-Received: (at 21415) by debbugs.gnu.org; 20 Sep 2015 09:27:47 +0000 Original-Received: from localhost ([127.0.0.1]:38124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZdauQ-0001WF-Px for submit@debbugs.gnu.org; Sun, 20 Sep 2015 05:27:47 -0400 Original-Received: from mail-vk0-f47.google.com ([209.85.213.47]:34473) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZdauO-0001W7-9A for 21415@debbugs.gnu.org; Sun, 20 Sep 2015 05:27:45 -0400 Original-Received: by vkhf67 with SMTP id f67so50617491vkh.1 for <21415@debbugs.gnu.org>; Sun, 20 Sep 2015 02:27:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=N3VKRhaofvrSC6Nk14YrpSa5c2Djq6N5/SchxqyvfnM=; b=ahODEOTabHke2Wqfa1W4c2nM6kqi4NHIljkeYY6sMd3EQ9pKT4wye7PhfsM3uZmY4a O+NjMfFE4CFUdcJD//luAVjaDWQs314NwrQ6UMidEj6kPI1CWj0KgJM6wR2bUw358Ptm mM0U0gKEurdY+PWeLiPLoun45dhPg8XdQRTAGB3FHXkByGLv0Hpv3zMLV9dMw9/m+nTG rxkDOIIKVQwZJM0/MoERRi/ig3EQq5i5cHQZU2nDZbCmr/tfkZHwU1VzStVRohrrL5R0 36tYwgP0nILRorkBbvPWDK+hBAXTabTjbPqzama2mid1173eY2Ghl748wAzYP/PIu++r BWDQ== X-Received: by 10.31.174.135 with SMTP id x129mr8697655vke.26.1442741263556; Sun, 20 Sep 2015 02:27:43 -0700 (PDT) Original-Received: by 10.31.139.21 with HTTP; Sun, 20 Sep 2015 02:27:43 -0700 (PDT) In-Reply-To: <55FE71D2.7050401@gmx.at> 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: 208.118.235.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:106725 Archived-At: --001a11434d2084825005202a60a3 Content-Type: text/plain; charset=UTF-8 Martin, I just hope I didn't confuse you with the "screen coordinates" stuff. From an Emacs users point of view (and from the point of view of elisp) the UPPER LEFT corner is 0x0 -- as it is on every other system. The fact that OS X see everything from the lower left corner is handled by internally by "nsterm.m". Hence, there is no need to mention this in the manual. "Flipping" mean that the coordinate system is mirrored, in some way. I guess it could be used to set the upper left as the origin, but I'm not that into OS X to tell you how that is done and what other consequences that would have for the Emacs code base. Unfortunately, I have no idea why it worked in 24.5 and why it didn't in 25. There has been a lot of changes along the way, so one would have to inspect each one to see what changed, and why. / Anders On Sun, Sep 20, 2015 at 10:44 AM, martin rudalics wrote: > > I've attached the patch, sorry for posting it in the mail. > > Thank you. Keith please try it. If it fixes all remaining issues I'll > try to commit everything we have now next week. > > > You can read more about "screen coordinates" here: > > > > > https://developer.apple.com/library/ios/documentation/General/Conceptual/Devpedia-CocoaApp/CoordinateSystem.html > > Thanks. I'm slightly confused, at least - I have no idea what flipping > means. Can you have a short look at the section "Frame Geometry" in the > Elisp manual? Maybe I should mention something about this issue there. > > And do you have any idea why this apparently worked in Emacs 24.5 and > doesn't work with present master/trunk? > > martin > --001a11434d2084825005202a60a3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Martin,

I just hope I didn't confus= e you with the "screen coordinates" stuff. From an Emacs users po= int of view (and from the point of view of elisp) the UPPER LEFT corner is = 0x0 -- as it is on every other system. The fact that OS X see everything fr= om the lower left corner is handled by internally by "nsterm.m". = Hence, there is no need to mention this in the manual.

=
"Flipping" mean that the coordinate system is mirrored, in s= ome way. I guess it could be used to set the upper left as the origin, but = I'm not that into OS X to tell you how that is done and what other cons= equences that would have for the Emacs code base.

= Unfortunately, I have no idea why it worked in 24.5 and why it didn't i= n 25. There has been a lot of changes along the way, so one would have to i= nspect each one to see what changed, and why.

/ An= ders

O= n Sun, Sep 20, 2015 at 10:44 AM, martin rudalics <rudalics@gmx.at> wrote:
> I'v= e attached the patch, sorry for posting it in the mail.

Thank you.=C2=A0 Keith please try it.=C2=A0 If it fixes all remaining issue= s I'll
try to commit everything we have now next week.

> You can read more about "screen coordinates" here:
>
> https://developer.apple.com/library/ios/documentation/Gene= ral/Conceptual/Devpedia-CocoaApp/CoordinateSystem.html

Thanks.=C2=A0 I'm slightly confused, at least - I have no idea what fli= pping
means.=C2=A0 Can you have a short look at the section "Frame Geometry&= quot; in the
Elisp manual?=C2=A0 Maybe I should mention something about this issue there= .

And do you have any idea why this apparently worked in Emacs 24.5 and
doesn't work with present master/trunk?

martin

--001a11434d2084825005202a60a3--