From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: How to create a small child-frame which only show two lines Date: Tue, 12 Dec 2017 11:48:17 -0500 Message-ID: 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> <83bmj3syia.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1513097317 18558 195.159.176.226 (12 Dec 2017 16:48:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2017 16:48:37 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 12 17:48:32 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 1eOnjK-0004Vd-3U for ged-emacs-devel@m.gmane.org; Tue, 12 Dec 2017 17:48:30 +0100 Original-Received: from localhost ([::1]:59359 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOnjR-0001em-5g for ged-emacs-devel@m.gmane.org; Tue, 12 Dec 2017 11:48:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOnjH-0001eU-WA for emacs-devel@gnu.org; Tue, 12 Dec 2017 11:48:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOnjE-0000n3-Pa for emacs-devel@gnu.org; Tue, 12 Dec 2017 11:48:27 -0500 Original-Received: from [195.159.176.226] (port=42261 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOnjE-0000md-IS for emacs-devel@gnu.org; Tue, 12 Dec 2017 11:48:24 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eOnj4-0003rX-VV for emacs-devel@gnu.org; Tue, 12 Dec 2017 17:48:14 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 12 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:EUDbSOnRQscNbGI1utn/IjqmifA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:220931 Archived-At: > 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. What if there's no position "down one line" (e.g. the next line is too short or there's no next line)? Stefan