From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian Newsgroups: gmane.emacs.devel Subject: Re: frame.el: call before-make-frame-hook earlier in make-frame Date: Mon, 3 Aug 2015 11:16:33 +0200 Message-ID: <20150803091633.GA35259@csr-pc9.zib.de> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1438593595 8306 80.91.229.3 (3 Aug 2015 09:19:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Aug 2015 09:19:55 +0000 (UTC) To: emacs-devel@gnu.org, martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 03 11:19:45 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 1ZMBuL-0004H5-Nz for ged-emacs-devel@m.gmane.org; Mon, 03 Aug 2015 11:19:45 +0200 Original-Received: from localhost ([::1]:58213 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMBuK-0005ED-Pr for ged-emacs-devel@m.gmane.org; Mon, 03 Aug 2015 05:19:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMBrN-0007dB-Tw for emacs-devel@gnu.org; Mon, 03 Aug 2015 05:16:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMBrK-0003yX-6j for emacs-devel@gnu.org; Mon, 03 Aug 2015 05:16:41 -0400 Original-Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:38252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMBrK-0003xU-0N for emacs-devel@gnu.org; Mon, 03 Aug 2015 05:16:38 -0400 Original-Received: by wibxm9 with SMTP id xm9so105306528wib.1 for ; Mon, 03 Aug 2015 02:16:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=bN+lXDBC1hs/oJd9A4l/KWbJwIouYJbo4dmbkxKWvUA=; b=R1CbhD3o4vDtcfT/eo6Zg31evf49Ga+YasPt3oTqYzzLGpBP4oDDW8OX3n2yOXpLIG mavBS+rs3KrPhOWKPA5ggZ9KM+IN+vajyFzHjpVqE5fswX4iGySSxXwJXFlZ5TJcELgV rzwR3iDeu/UWOJH/eHKJ7AR8hMGYr2tssVaiQppIKwpm+p5yeeDguOHIWCpANZ9tiLcg aJij2i3xENS+/LGFdCfQ2vmuzOM8BunsvNh4jmsFrdyQ8Uefw8auh336yhGA9TiM1Q2t 0O4L1ZwQk93UeL+tFiaZr9vShwEsZ3gRlWRFNqebUkKA4LZ+f6XoyGfHdwmmIkun5b67 tGzg== X-Received: by 10.180.81.103 with SMTP id z7mr29648957wix.21.1438593396907; Mon, 03 Aug 2015 02:16:36 -0700 (PDT) Original-Received: from localhost (csr-pc9.zib.de. [130.73.78.129]) by smtp.gmail.com with ESMTPSA id gw7sm12531168wib.15.2015.08.03.02.16.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Aug 2015 02:16:35 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20150731103825.GB78288@csr-pc9.zib.de> User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22c 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:188323 Archived-At: > > > That is a viable solution, but it has the drawback that you have to override a > > > default key-binding (C-x 5 2) with your own make-frame function and that you do > > > not benefit from the nice things that 'make-frame-command' additionally does for > > > you a) at the moment (setting the focus to the new frame etc) > > > > Here `make-frame-command' does only > > > > (interactive) > > (if (display-graphic-p) > > (make-frame) > > (select-frame (make-frame)))) 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? Thanks, Florian