From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Aaron Jensen Newsgroups: gmane.emacs.devel Subject: How do I position a child-frame below the point? Date: Fri, 05 Jan 2018 23:29:54 -0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515223691 6344 195.159.176.226 (6 Jan 2018 07:28:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Jan 2018 07:28:11 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 06 08:28:07 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 1eXitf-00014T-Ni for ged-emacs-devel@m.gmane.org; Sat, 06 Jan 2018 08:28:03 +0100 Original-Received: from localhost ([::1]:52610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXivf-0000zU-0B for ged-emacs-devel@m.gmane.org; Sat, 06 Jan 2018 02:30:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXivY-0000z5-Pg for emacs-devel@gnu.org; Sat, 06 Jan 2018 02:30:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXivV-0002f8-M1 for emacs-devel@gnu.org; Sat, 06 Jan 2018 02:30:00 -0500 Original-Received: from mail-pg0-x234.google.com ([2607:f8b0:400e:c05::234]:40959) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eXivV-0002eg-Fj for emacs-devel@gnu.org; Sat, 06 Jan 2018 02:29:57 -0500 Original-Received: by mail-pg0-x234.google.com with SMTP id q12so2886956pgt.7 for ; Fri, 05 Jan 2018 23:29:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=SKZgXxDPa4q4bfXzkGKlSQWi2xDUqHHgG14gdcE/sfs=; b=jkOtC1p6EGiQuO9dS/SanBHHryrjFz436L7QR5YRMJPUkGzmmqkxNuj7VkgKlBtQH4 AxbQulwthCwTP70RgPpSRHxUHzUwy1CQM4XAmgPpWXz7U2ZLMHdMa+LHo8WGz1nzerjX iEjad8HcFsjLzq+ZB1C/EeTdpDVyH+frUY4ydx4Jeb0EHIfCmjYq/svddmN0TWJSrmeI uFWLQNMIu55a8lil6DqPlq02iQtrUJLQB5N7t6aVKtjaPN1lLe4gi0v2HjHhw9Bpvgic SwEV/cXFvdhz8TZHqT/+ExS9DrkB2YuduNAWq9c7Na+P4FERSxngIlEbxPYA0v5n6Pv6 JFig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=SKZgXxDPa4q4bfXzkGKlSQWi2xDUqHHgG14gdcE/sfs=; b=r58onIBte+BVX7yT4fUPukLUD/vU2e2FQmHyPFDGzqmZqkWaXEmi8/J0aUBvv3K9KR iC1kDLX6LRxMjbFcQXi2gerPUxhTGY8wuQaadOJyoUeOiVW6yyu0Glxx8sN1qgAbqyJe 0A7vq7YgSBTrjyXeV3SiD9X9N0GixSl32UvTdbp2f2FTiW9uChg9Nh2yaKtsIX52/kG+ iZ94R4j94Jl0dHNBJjZR6WG8Kio0Eu0X+DDznYdMKX+VEqWPGY0bukgK/u9o9xqeY7UY gDksFziD6eVUiwx05VqPNaQa1s7OZLcnd7I7K/LYQo6CpgNeKDCBwsLvhyPY7v18dEaJ Jc9w== X-Gm-Message-State: AKGB3mIFcjn63jGQJDlpNmfmcaHSLIxJY11HiQSy4CpjZMkOjdeXliCP drcJb3ebzesUEXAGBFo1vzl+og7B X-Google-Smtp-Source: ACJfBou95NmEr66+jXfe6tmsV1Zq00mbn5qfgsYlgvVkpycLay+/3x3xgXKzLTtrS6ZMJjnoaNQCMA== X-Received: by 10.99.4.198 with SMTP id 189mr350593pge.210.1515223796079; Fri, 05 Jan 2018 23:29:56 -0800 (PST) Original-Received: from aaron-mbt.local (c-76-28-156-232.hsd1.wa.comcast.net. [76.28.156.232]) by smtp.gmail.com with ESMTPSA id j3sm13744783pgp.74.2018.01.05.23.29.55 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Jan 2018 23:29:55 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::234 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:221636 Archived-At: Hi, I have a few questions about child-frames. 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))) (x (car abs-pixel-pos)) (y (+ (cdr abs-pixel-pos) (frame-char-height))) (buffer (get-buffer-create "*Child Frame*")) (peek-frame (make-frame `( (unsplittable . t) (name . "*Peek Frame*") (width . 80) (visibility . nil) (cursor-type . nil) (height . 15))))) (set-frame-position peek-frame x y) (with-selected-frame peek-frame (set-window-buffer (car (window-list)) buffer) (with-current-buffer buffer (let ((inhibit-read-only t)) (erase-buffer) (insert "HELLO WORLD")) (setq-local mode-line-format nil) (recenter-top-bottom 0) (read-only-mode)) (raise-frame peek-frame)) (select-frame current-frame))) However, if I try this with a child-frame then I'm in frame local coordinates and I have no idea how to get the appropriate frame local coordinates for the current point. Question #2: How do I raise the child frame on macOS without selecting it? I only want to display it above the current frame, I don't want it to have focus. 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... Thanks, Aaron