From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Display-relative coordinates Date: Thu, 28 Jul 2016 13:20:57 -0700 (PDT) Message-ID: <3c6ba762-f120-4189-833a-60ebcbcc1e65@default> References: <831t2dsu3y.fsf@gnu.org> <579A580B.9010507@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1469737349 21745 80.91.229.3 (28 Jul 2016 20:22:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2016 20:22:29 +0000 (UTC) To: martin rudalics , Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 28 22:22:17 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bSros-00032F-Ls for ged-emacs-devel@m.gmane.org; Thu, 28 Jul 2016 22:22:14 +0200 Original-Received: from localhost ([::1]:55495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSrom-0002XP-Hf for ged-emacs-devel@m.gmane.org; Thu, 28 Jul 2016 16:22:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSrnw-0002VH-Th for emacs-devel@gnu.org; Thu, 28 Jul 2016 16:21:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSrnu-0001eX-VO for emacs-devel@gnu.org; Thu, 28 Jul 2016 16:21:15 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:47749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSrnp-0001dW-V6; Thu, 28 Jul 2016 16:21:10 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u6SKL5Rn029089 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 Jul 2016 20:21:06 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u6SKL5NR015651 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 Jul 2016 20:21:05 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u6SKKx14013502; Thu, 28 Jul 2016 20:21:05 GMT In-Reply-To: <579A580B.9010507@gmx.at> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:206215 Archived-At: > > What are the problems you see with the above (except that 'tp' is a > > void variable)? It looks OK to me, modulo the kludges in > > top-fudge-pixels (why not use frame-geometry, which exists for that > > purpose?). >=20 > FWIW =E2=80=98window-inside-absolute-pixel-edges=E2=80=99 didn't work on = Windows before > Emacs 25. On Emacs 25 =E2=80=98window-absolute-pixel-position=E2=80=99 i= s all that's > needed. I see. See my reply to Eli too, however. In the example I gave using an Emacs 25 build (not very recent) it returned good results, but `posn-at-point' seemed to be off. Anyway, I'm glad to see `window-absolute-pixel-position' and `frame-geometr= y'. It would still be useful, I think, to have a function that returns directly the screen-relative pixel coordinates (i.e., even though that can be got using `window-absolute-pixel-position' and `frame-geometry'.)