From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: How do I position a child-frame below the point? Date: Sun, 7 Jan 2018 13:26:13 +0000 Message-ID: <20180107132613.GA46221@breton.holly.idiocy.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1515331506 24853 195.159.176.226 (7 Jan 2018 13:25:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 Jan 2018 13:25:06 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) Cc: emacs-devel@gnu.org To: Aaron Jensen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 07 14:25:02 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 1eYAwf-00067f-Ce for ged-emacs-devel@m.gmane.org; Sun, 07 Jan 2018 14:25:01 +0100 Original-Received: from localhost ([::1]:53244 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYAye-0000As-Tw for ged-emacs-devel@m.gmane.org; Sun, 07 Jan 2018 08:27:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYAxv-0000Ad-1A for emacs-devel@gnu.org; Sun, 07 Jan 2018 08:26:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYAxu-0002Oo-AJ for emacs-devel@gnu.org; Sun, 07 Jan 2018 08:26:19 -0500 Original-Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]:39727) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYAxu-0002O5-2c for emacs-devel@gnu.org; Sun, 07 Jan 2018 08:26:18 -0500 Original-Received: by mail-wr0-x22f.google.com with SMTP id z48so2498595wrz.6 for ; Sun, 07 Jan 2018 05:26:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=YB4TkKagKNfpmZU11uF36Civ9CfzpATg9UddBaGtPS0=; b=hFuxt58ZpaNKerfGnPVNUybgEoh8RPaHEE3u65+fl9LtK3QTqslbdxFfrax5Zvy42E LEZ5BBa5xbBZ5koomHwF7Qua7peaoS0u4ESxSHQx3ZzHmVK/yGtsmb4FX05ldj8bY8JS ivVdSFdyI7/ufKXKIdXHjVe/7xyyrQ4953H/jIOQGNM76TNWfEug5/wT5RZFkNqdHmSw NeVQGqDHoZ73q7/h2e/J7MSvnTn1nehNaKrxEMVM15OGv/3VwIU2+43nItKkJjwgMxnY AR/hZWA7SzQaOAYTR9oNLNJPxtkM4gqdqpGlwEJkbLrAJpqj4dudKJj/BubX031csmQ5 TeIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=YB4TkKagKNfpmZU11uF36Civ9CfzpATg9UddBaGtPS0=; b=matF+GJZCk9cuR9zB8xFis3vWPga+2mPSqU37yd71XgP1+wTussPlfnmO0UkdzaWFZ pG7fG5x4/QEFxlAVsLQOX97/96sj4TGHCLneJvadE8OWKn1ovRvpafwrOgxzxlTRtuXw XUx5xOij0rCYga450cJIeRYDmK0iPcTZkw7yYoR3o5/VJeg/rMeawoNO0rJo7OTlTjoh ld0KhMsX+9k+NFSpZ/0+7F+lTOle0qDeCAd/UC+RUFlSVU9bfWId5qst74ewCorG/xRJ TIJ4GXyJvXgh93GMy9xBJ7CJof0Y7yEA/vWDVPAIFgDaSY9GNsZH/56DeEEM4vWSIXt9 lsQw== X-Gm-Message-State: AKGB3mLnNzuZpDSmj6O24wYyvrneRCYurWUUOd+7WQFRODJ69pM4T9VS viUMVhaDcO0kqFMDJjliTqc= X-Google-Smtp-Source: ACJfBosTIOnOg8uOo0MnXgx81sqRxyTDbNH4M3e8+/GqU0d8LVuvEsT/4fbh9qWGaWJWgbsp7TyaDw== X-Received: by 10.223.135.10 with SMTP id a10mr7678411wra.121.1515331576686; Sun, 07 Jan 2018 05:26:16 -0800 (PST) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-0c9f-d078-0073-e913.holly.idiocy.org. [2001:8b0:3f8:8129:c9f:d078:73:e913]) by smtp.gmail.com with ESMTPSA id j96sm11463871wrj.93.2018.01.07.05.26.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Jan 2018 05:26:15 -0800 (PST) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22f 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:221664 Archived-At: On Fri, Jan 05, 2018 at 11:29:54PM -0800, Aaron Jensen wrote: > 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: > 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. Could you get the parent frame’s coordinates and subtract them? (frame-position (frame-parent child)) > 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. You can turn on no-focus-on-map, but iirc that doesn’t work on macOS. no-accept-focus does work, but means you can never select that frame. Alternatively you could try changing the z-group to above, although it could cause trouble when switching to a different application, I suppose. -- Alan Third