From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: How do I position a child-frame below the point? Date: Sun, 07 Jan 2018 17:09:04 +0100 Message-ID: <5A524620.5050702@gmx.at> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1515341283 21683 195.159.176.226 (7 Jan 2018 16:08:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 Jan 2018 16:08:03 +0000 (UTC) To: Aaron Jensen , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 07 17:07:59 2018 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 1eYDUD-0004no-BL for ged-emacs-devel@m.gmane.org; Sun, 07 Jan 2018 17:07:49 +0100 Original-Received: from localhost ([::1]:57599 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYDWC-0001w3-Oa for ged-emacs-devel@m.gmane.org; Sun, 07 Jan 2018 11:09:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYDVY-0001Zt-Ak for emacs-devel@gnu.org; Sun, 07 Jan 2018 11:09:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYDVX-00041u-0P for emacs-devel@gnu.org; Sun, 07 Jan 2018 11:09:12 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:50859) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYDVW-00041I-MG for emacs-devel@gnu.org; Sun, 07 Jan 2018 11:09:10 -0500 Original-Received: from [192.168.1.100] ([212.95.5.154]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MM0bQ-1eX8eG3Z2i-007nB7; Sun, 07 Jan 2018 17:09:08 +0100 In-Reply-To: X-Provags-ID: V03:K0:FeLE7PbOqHJQo8krjpI49iEBm6jZpFY/7LCszlyzgSQd8IbLxMF efjj2Fw1nA/S+90q4yPi6JL9p+2bRkpXZnQCJpdvPzLZnfSpqd9jp1PZYVqNcM/F22kuFaW ZqgB/0crjfcVwDaF8QazQhHG0o+3BGHcG1tVdtGTckpbkkfU4UBv/2s5JHAnMQtG33+yP2+ YEaPNsuCfXO7g+djwx6Eg== X-UI-Out-Filterresults: notjunk:1;V01:K0:N3pZPW/utdE=:AsVZUi8mueSKkjzJHa9HQr 17gfTv/Ar7Pk9CoVNdf6HU46SgAcFkFzJrJN7VdKvU8Bg3ySujE9+jUGB5z31DkOjdq5Zu9Ux S6S89d5DxbC4I4dtao8Kw8oxeq1UJd53pqQubMJq2RneEqATcIg9ST2fgbcLYjI5HsqQw2uYA 2LdfWcJC+LU/bfIdSqlI6EOO+u8CqlD3285TFoYNrmL2r0bWDMf0kH3cM4zP11eknVyMtMBmj 1CDPeFpq6df5cLf60BDgoOpV0Bga0NXe25tovIRDYR8BK2wumSQ7MG102Z/+Z9nTq8RCbgMlr uXj2ED049z+Gv53xkXeMN9Y3iUP03zSv4Y/0CTZHfvaIoi/fmR/1ESH3KvBiRDYyy8dbxxyT2 W4U1gN28kjK7itMP6wZavRXoKrqxLFnMTdhrGNlPOnK5QbbYwfm18seUQEOOneRJpTFeHVQnO n3k3VnYEHk+k8TnWZAV+m7URZLnILvd4Kbj21ugsuXk6Lh+aRxRVi9/C2ZhHOLDqqwijgcXOc uVWMwcsFQs9GzwaqHzfGsoCLXKZNhLSe5Qu4bp5jKu1kfttcENSz0wKeppBLhsBgabJ3lnqAP +UMklgRR2jpq0TNRFqkl0WWQ0UzpMZzpQipLX0OfcJWVs65ysYc1MXigFW3fEJCD2cSOYSKGA G77qr3QPfzOuzF07eOJTYpPQKZB/DZn5rjZjVaCvl/EFbPS+MNTzyElwkXKW1j1mLBweYZNuN ajpTAh2C9uUL/XRhnm/5+QppX4DNnAoqzYeJ1Zl6MUvB6FdLukE6mkMN/2AYhnHFPDpMEITx X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.20 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:221673 Archived-At: > Question #1: I'm trying to create a new child-frame and position it > below the point in the parent frame. If I don't use a child-frame, this > isn't hard: > > (defun make-peek-frame () > (interactive) > (let* ((current-frame (selected-frame)) > (abs-pixel-pos (save-excursion > (beginning-of-thing 'symbol) > (window-absolute-pixel-position))) `window-absolute-pixel-position' is a function I wrote so on systems where child frames are not available (or do not behave well) normal frames can be used instead. If you look at its code you will see that `pos-visible-in-window-p' does all the work, so that's the function to use. Thereafter you have to translate window coordinates to native frame coordinates using `window-inside-pixel-edges' IIRC. Our documentation of this is still unsatisfactory. > Question #3: > > How do I hide the point? I've tried (cursor-type . nil) as above, but it > shows up as a block nonetheless. I do wonder if evil is doing that, > however... Which "evil"? The window manager? martin