From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: IRIE Shinsuke Newsgroups: gmane.emacs.bugs Subject: bug#5721: Feature request: Function that returns absolute coordinates Date: Mon, 31 May 2010 19:28:07 +0900 Message-ID: <20100531192807.ee3a9101.irieshinsuke@yahoo.co.jp> References: <4B9E4521.9030909@yahoo.co.jp> <4BB239F2.3040708@swipnet.se> Reply-To: irieshinsuke@yahoo.co.jp NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1275303470 7963 80.91.229.12 (31 May 2010 10:57:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 31 May 2010 10:57:50 +0000 (UTC) Cc: 5721@debbugs.gnu.org To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 31 12:57:48 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 1OJ2gm-0002lb-5n for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 May 2010 12:57:48 +0200 Original-Received: from localhost ([127.0.0.1]:33542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJ2gl-0002SZ-Cg for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 May 2010 06:57:47 -0400 Original-Received: from [140.186.70.92] (port=54726 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJ2gf-0002NW-BX for bug-gnu-emacs@gnu.org; Mon, 31 May 2010 06:57:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJ2gc-0006De-OW for bug-gnu-emacs@gnu.org; Mon, 31 May 2010 06:57:41 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38067) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJ2gc-0006DO-Kx for bug-gnu-emacs@gnu.org; Mon, 31 May 2010 06:57:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OJ2Ew-0001GY-4k; Mon, 31 May 2010 06:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: IRIE Shinsuke Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 May 2010 10:29: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.12753017014859 (code B ref 5721); Mon, 31 May 2010 10:29:02 +0000 Original-Received: (at 5721) by debbugs.gnu.org; 31 May 2010 10:28:21 +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 1OJ2EH-0001GK-Cr for submit@debbugs.gnu.org; Mon, 31 May 2010 06:28:21 -0400 Original-Received: from mail-pz0-f174.google.com ([209.85.222.174]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJ2ED-0001GE-IS for 5721@debbugs.gnu.org; Mon, 31 May 2010 06:28:18 -0400 Original-Received: by pzk4 with SMTP id 4so585851pzk.7 for <5721@debbugs.gnu.org>; Mon, 31 May 2010 03:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:message-id:in-reply-to:references:reply-to:x-mailer :mime-version:content-type:content-transfer-encoding; bh=TSrRIAeYg3CosjFe9cX1LUbjnpTacQACMF8JZZL2a9g=; b=nXxyZMmrNBaPoKaMP6bbz3c0j305bfwvEIwzwwwJ4ZX4qMjUktmFII8BqXCsdGgIrY JoPElaPjSFQYgcp6kPhHNrJAwyh3XtuEdypveabFahAIsRwwWPNZ0k3cKfWhenYBfs1C taEJGKgbwTzi4fvzucc/192K3je0JjjDgYvHc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :reply-to:x-mailer:mime-version:content-type :content-transfer-encoding; b=LiG0UB0fJCQXIMimXUmSPPeTvJ2KsdUin9b3DQ779Ib7jTlPA9/9IZ3KtwYsRtXusx WXywY37ZfZocYCjNP3vmIY8EnQqEqSii6Xp/bH8Uhnzq3pUCQdnimefBv3sN6XH41Lj/ 1RaHXRGf0YpRvtLPTGdYaYqQ9nQ5yrkUXS3V4= Original-Received: by 10.141.90.14 with SMTP id s14mr3084045rvl.263.1275301694169; Mon, 31 May 2010 03:28:14 -0700 (PDT) Original-Received: from tama (EM114-51-61-250.pool.e-mobile.ne.jp [114.51.61.250]) by mx.google.com with ESMTPS id d14sm4149409rva.6.2010.05.31.03.28.10 (version=SSLv3 cipher=RC4-MD5); Mon, 31 May 2010 03:28:12 -0700 (PDT) In-Reply-To: <4BB239F2.3040708@swipnet.se> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.0; i486-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 31 May 2010 06:29: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:37436 Archived-At: 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... IRIE Shinsuke