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: Tue, 01 Jun 2010 10:16:08 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <4B9E4521.9030909@yahoo.co.jp> <4BB239F2.3040708@swipnet.se> <20100531192807.ee3a9101.irieshinsuke@yahoo.co.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1275355670 28906 80.91.229.12 (1 Jun 2010 01:27:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Jun 2010 01:27:50 +0000 (UTC) Cc: 5721@debbugs.gnu.org To: irieshinsuke@yahoo.co.jp Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 01 03:27:49 2010 connect(): No such file or directory 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 1OJGGi-00046v-Ii for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Jun 2010 03:27:48 +0200 Original-Received: from localhost ([127.0.0.1]:59282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJGGh-00057y-IN for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 May 2010 21:27:47 -0400 Original-Received: from [140.186.70.92] (port=50046 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJGGc-00056C-K1 for bug-gnu-emacs@gnu.org; Mon, 31 May 2010 21:27:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJGGa-0001ro-RH for bug-gnu-emacs@gnu.org; Mon, 31 May 2010 21:27:42 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52541) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJGGa-0001ri-Oj for bug-gnu-emacs@gnu.org; Mon, 31 May 2010 21:27:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OJG6H-0001Wn-W6; Mon, 31 May 2010 21:17: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: Tue, 01 Jun 2010 01:17:01 +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.12753549745861 (code B ref 5721); Tue, 01 Jun 2010 01:17:01 +0000 Original-Received: (at 5721) by debbugs.gnu.org; 1 Jun 2010 01:16:14 +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 1OJG5W-0001WU-8b for submit@debbugs.gnu.org; Mon, 31 May 2010 21:16:14 -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 1OJG5U-0001WP-7x for 5721@debbugs.gnu.org; Mon, 31 May 2010 21:16:13 -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 2EF30C0557; Tue, 1 Jun 2010 10:16:08 +0900 (JST) In-Reply-To: <20100531192807.ee3a9101.irieshinsuke@yahoo.co.jp> 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: Mon, 31 May 2010 21:17:01 -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:37467 Archived-At: >>>>> On Mon, 31 May 2010 19:28:07 +0900, IRIE Shinsuke said: > Sorry, I forgot to reply to your question. >> I can understand posn-absolute-x-y and window-absolute-pixel-edges, but can >> you add some details on what posn-at-absolute-x-y should do? > Umm... I suggest the new frame parameters like `inside-left' and > `inside-top', which show the top left coordinates of an X window > corresponding to `window-id'. See below: > A------------------------+ > | File Edit Options ... | `left' => horizontal position of A > +B----------------------++ `top' => vertical position of A > || || `inside-left'=> horizontal position of B > || || `inside-top' => vertical position of B > || || > ||-U:**- *scratch* (lisp|| > ||______________________|| > +------------------------+ >> I'd rather not introduce another position format that looks like the old, but >> where pixels are absolute rather than relative. > I believe Emacs should provide some ways to obtain absolute coordinates. > Recently I created ibus.el, which is an IBus client for Emacs, but it > requires the external program to calculate the absolute coordinates of > candidate window... 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/Conceptual/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'. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp