From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How to create a small child-frame which only show two lines Date: Tue, 12 Dec 2017 18:26:53 +0200 Message-ID: <83bmj3syia.fsf@gnu.org> References: <32764281.548.1602e496fa6.Coremail.tumashu@163.com> <5A290998.6030900@gmx.at> <5A2A6572.4060700@gmx.at> <65440769.c307.16036041a32.Coremail.tumashu@163.com> <5A2BBC7E.9020400@gmx.at> <65b6adf3.bf1.16042f29094.Coremail.tumashu@163.com> <5A2E28CF.6010405@gmx.at> <17dd098a.99e0.16044b145db.Coremail.tumashu@163.com> <831sk1th9j.fsf@gnu.org> <374ded8a.cd7.160482d4667.Coremail.tumashu@163.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1513096060 31371 195.159.176.226 (12 Dec 2017 16:27:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2017 16:27:40 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org To: tumashu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 12 17:27:34 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOnP3-0007r1-J6 for ged-emacs-devel@m.gmane.org; Tue, 12 Dec 2017 17:27:33 +0100 Original-Received: from localhost ([::1]:59253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOnPA-0004J6-Lf for ged-emacs-devel@m.gmane.org; Tue, 12 Dec 2017 11:27:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOnOd-0004IO-8V for emacs-devel@gnu.org; Tue, 12 Dec 2017 11:27:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOnOZ-0000F6-A2 for emacs-devel@gnu.org; Tue, 12 Dec 2017 11:27:07 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOnOZ-0000Ex-6s; Tue, 12 Dec 2017 11:27:03 -0500 Original-Received: from [176.228.60.248] (port=4924 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eOnOY-0001QG-Mn; Tue, 12 Dec 2017 11:27:03 -0500 In-reply-to: <374ded8a.cd7.160482d4667.Coremail.tumashu@163.com> (message from tumashu on Tue, 12 Dec 2017 08:43:34 +0800 (CST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:220930 Archived-At: > Date: Tue, 12 Dec 2017 08:43:34 +0800 (CST) > From: tumashu > Cc: "martin rudalics" , > "emacs-devel@gnu.org" > > I need this function to get the pixel position, so I can put a tooltip in this position to show > some information. vertical-motion seem to not have the feature. Perhaps there is a misunderstanding. AFAIU, you can determine the left-top pixel position at point, but you wanted the left-bottom position instead, is that right? If so, my suggestion was to call vertical-motion to move down one line, then take the left-top position at that place. Doesn't that give you what you want?