From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#5721: Feature request: Function that returns absolute coordinates Date: Fri, 02 Jul 2010 11:10:16 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <4B9E4521.9030909@yahoo.co.jp> <4C2C8C02.1010906@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1278037799 27691 80.91.229.12 (2 Jul 2010 02:29:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Jul 2010 02:29:59 +0000 (UTC) To: 5721@debbugs.gnu.org, Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 02 04:29:57 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OUW0q-0003dE-HV for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Jul 2010 04:29:56 +0200 Original-Received: from localhost ([127.0.0.1]:46867 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUW0q-000110-0B for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Jul 2010 22:29:56 -0400 Original-Received: from [140.186.70.92] (port=41675 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUW0U-0000sF-Tq for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2010 22:29:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUW0S-0000uO-Fo for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2010 22:29:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50838) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUW0S-0000uK-EV for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2010 22:29:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OUViY-0008PA-GA; Thu, 01 Jul 2010 22:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Jul 2010 02:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5721 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5721-submit@debbugs.gnu.org id=B5721.127803662732299 (code B ref 5721); Fri, 02 Jul 2010 02:11:02 +0000 Original-Received: (at 5721) by debbugs.gnu.org; 2 Jul 2010 02:10:27 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUVhy-0008Ou-PS for submit@debbugs.gnu.org; Thu, 01 Jul 2010 22:10:26 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUVhv-0008Ol-Go for 5721@debbugs.gnu.org; Thu, 01 Jul 2010 22:10:25 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 2FCE0C0560; Fri, 2 Jul 2010 11:10:17 +0900 (JST) In-Reply-To: <4C2C8C02.1010906@swipnet.se> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 =?UTF-8?Q?(Shij=C5=8D)?= APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 01 Jul 2010 22:11:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38192 Archived-At: >>>>> On Thu, 01 Jul 2010 14:37:22 +0200, Jan Dj=E4rv = said: > I added functions window-absolute-pixel-edges and > window-inside-absolute-pixel-edges. I tested on X and Nextstep > (OSX), but they probably do the wrong thing on w32. I don't have > w32 available. What do you think about the following point? >>>>> On Tue, 01 Jun 2010 10:16:08 +0900, YAMAMOTO Mitsuharu said: > I'd rather suggest introducing some conversion functions between > relative and absolute coordinate systems. Newer versions of Mac OS > X provides "Resolution Independence" that allows users to specify a > scale factor: > http://developer.apple.com/mac/library/documentation/UserExperience/Con= ceptual/HiDPIOverview/HiDPIConcepts/HiDPIConcepts.html > With the scale factor, 1 pixel in the relative coordinate system no > longer always correspond to 1 pixel in the absolute one. Thus one > cannot determine the corresponding absolute coordinates only from > `inside-left' and `inside-top'. (Maybe "pixel" above should be "unit".) One can argue that the new API can return enough information to deal with the scale factor by computing width and height in both relative and absolute coordinate systems. But I guess many programmers just tends to add some offsets for the conversion between these coordinate systems. This might cause rewrite of elisp programs when GTK+ supports resolution independence in future. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp