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: Is there a way to control where frames get created? Date: Sun, 30 Sep 2018 09:57:48 +0200 Message-ID: <5BB081FC.8030704@gmx.at> References: <20180929183701.0b49b97d@jabberwock.cb.piermont.com> 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 1538294206 597 195.159.176.226 (30 Sep 2018 07:56:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 30 Sep 2018 07:56:46 +0000 (UTC) To: "Perry E. Metzger" , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 30 09:56:42 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 1g6Wan-0008WQ-Qy for ged-emacs-devel@m.gmane.org; Sun, 30 Sep 2018 09:56:41 +0200 Original-Received: from localhost ([::1]:54154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6Wct-0006Cw-1J for ged-emacs-devel@m.gmane.org; Sun, 30 Sep 2018 03:58:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6WcG-0006Cf-CF for emacs-devel@gnu.org; Sun, 30 Sep 2018 03:58:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6WcA-0006yl-VR for emacs-devel@gnu.org; Sun, 30 Sep 2018 03:58:10 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:33013) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g6WcA-0006vQ-Ll for emacs-devel@gnu.org; Sun, 30 Sep 2018 03:58:06 -0400 Original-Received: from [192.168.1.101] ([213.162.73.174]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MUZKF-1gGFku2Vvf-00RDwS; Sun, 30 Sep 2018 09:57:47 +0200 Original-Received: from [192.168.1.101] ([213.162.73.174]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MUZKF-1gGFku2Vvf-00RDwS; Sun, 30 Sep 2018 09:57:47 +0200 In-Reply-To: <20180929183701.0b49b97d@jabberwock.cb.piermont.com> X-Provags-ID: V03:K1:ldSrf95TYBBoLcuj+2S0H2M+I2i6MQsDpuafJRjTZJPmhO5EqBx 8hUKgYLqdoAz1n234LuYey22BmETFWh1GT96E1KFMxjhBvtAXRsrYq7RQF7cW0drTNLOFhX vWqHQHKmpbYnTVTZwpmiH9wz3Pugh0/dAj06nGj4ldMRBhZ79EqusJxwvnk+8922sBJTJUm J6qzLvp4Kc6j2joNijLQQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:Joebk5HtqJI=:MuRKBHPJW31ll1DGx3ffib 9Xq0PzfCR/vuNtzKwlGodbIwfWbfzzK0pgU2YRJoo5bko0WCZRIgLFu0w6y9JC9PZXSyc2tcK K87sInIN8h6OwEVsMX3Htfv6wJW7tgVD3TG9z9bGLH3fzNWyVH+wuMFChy2ExwP1ugXqqAfMj xw3G37Mawjt0/AigaEvGq+BfDh9aIx9dVtf0rmBBoJzDGjajtaeESSnTURZ+K8ul5CySIo2NB XI0nOkSxFmDdcZkRgjDU4uYlHf3pRqnVPzybX5vLON58wjzDhNVPCFAcTbDCNUSNBiZXGdmsy zKg2ngM89rMrBwONF52LGjFM7ADSWOc7WfrhK4bgUXZSqCZHyl238G0fOPKhY3IjnH+Bx30/J iNkmZ44d7lR1ZBm65sBtWJ51pS44JTWEWKgrbJQWuxIhRUyvx9Qf3JPZWMKZLbGHKWUUI6Tb8 Gn7ZmcW6U4/EzDwo6fRfbZMM8ErZ8CRUGnK28uOYdT85yfxt0VKgSAcT7onxGBRMD6M6Xq+l6 Ak2hjEWB6dAienaMh/yvQBm3lPrKf6yI2ASOKr29lxqwpb2CHB2+K/uY64IElfh82lMOSKKVy BU7ggGxikv8kaXYSEPrOVsgrt95xvLaWNEe0qZKHwInSQJewD8GSMgb58P7PRS6zxl7ZVNuy4 jdfA/+Y87HjyTgoFD1SAB7Jyif1uFk7WHZSOvfBPekj4/gLDqOi8c61d/3uqKh+OlKDUg939+ aqJaJiYCNOdTTblDjJQaOWyJjvVP7WA6u39ePb2JivzJnTVGKDJjYGHAI0rfb9jP+NC40feJ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.19 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:230163 Archived-At: > I'd like to rig things up so that make-frame-command creates its new > frame adjacent to the existing frame if that's geometrically > possible on the GUI display. To do that, I'd need to both be able to > find out where the existing frame is, and to tell make-frame-command > where to create the new frame. > > Are there any hooks that make this possible? Any advice on how I might > go about doing it? To put a frame right on the right of the selected one use (make-frame `((left . ,(+ (car (frame-position)) (frame-outer-width))) (top . ,(cdr (frame-position))))) martin