From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: frame.el: call before-make-frame-hook earlier in make-frame Date: Mon, 03 Aug 2015 17:57:22 +0300 Message-ID: <83d1z4v2r1.fsf@gnu.org> References: <20150730110041.GE23175@csr-pc9.zib.de> <55BB1F2C.8070205@gmx.at> <20150731074034.GA78288@csr-pc9.zib.de> <55BB462C.5000401@gmx.at> <20150731103825.GB78288@csr-pc9.zib.de> <20150803091633.GA35259@csr-pc9.zib.de> <55BF4566.8060507@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1438613887 6519 80.91.229.3 (3 Aug 2015 14:58:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Aug 2015 14:58:07 +0000 (UTC) Cc: floriansbriefe@gmail.com, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 03 16:57:59 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZMHBe-0004gH-Mj for ged-emacs-devel@m.gmane.org; Mon, 03 Aug 2015 16:57:58 +0200 Original-Received: from localhost ([::1]:59493 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMHBd-0003uI-V1 for ged-emacs-devel@m.gmane.org; Mon, 03 Aug 2015 10:57:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMHBN-0003u4-EL for emacs-devel@gnu.org; Mon, 03 Aug 2015 10:57:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMHBJ-0004Bz-8z for emacs-devel@gnu.org; Mon, 03 Aug 2015 10:57:41 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:48553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMHBJ-0004Bk-1Q for emacs-devel@gnu.org; Mon, 03 Aug 2015 10:57:37 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NSI00H00HJ0WA00@mtaout26.012.net.il> for emacs-devel@gnu.org; Mon, 03 Aug 2015 18:00:58 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NSI0082BHPMQMA0@mtaout26.012.net.il>; Mon, 03 Aug 2015 18:00:58 +0300 (IDT) In-reply-to: <55BF4566.8060507@gmx.at> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:188340 Archived-At: > Date: Mon, 03 Aug 2015 12:41:42 +0200 > From: martin rudalics > > > So, according to your advice I wrote my own 'make-frame-command' function that > > is now bound to the normal 'C-x 5 2' key-sequence and calls make-frame with > > dynamic parameters to place the window under the mouse cursor. That works quite > > ok. But this is not the only way I create additional frames. The other way I > > open new frames is by using emacsclient. How could I let emacsclient create the > > new frame using my own version of make-frame-command? > > My knowledge of emacsclient is very limited. And the fairly recent > introduction of `gui-method' has limited my knowledge of how frames are > created even more. Hopefully someone else can give you an advice on how > to do what you want. emacsclient supports --eval, perhaps that could serve as a starting point.