From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: frame.el: call before-make-frame-hook earlier in make-frame Date: Fri, 31 Jul 2015 09:09:32 +0200 Message-ID: <55BB1F2C.8070205@gmx.at> References: <20150730110041.GE23175@csr-pc9.zib.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1438326598 13503 80.91.229.3 (31 Jul 2015 07:09:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jul 2015 07:09:58 +0000 (UTC) To: Florian , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 31 09:09:49 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 1ZL4Rx-00049y-4C for ged-emacs-devel@m.gmane.org; Fri, 31 Jul 2015 09:09:49 +0200 Original-Received: from localhost ([::1]:43384 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZL4Rv-0005VV-Nb for ged-emacs-devel@m.gmane.org; Fri, 31 Jul 2015 03:09:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZL4Rs-0005TG-KC for emacs-devel@gnu.org; Fri, 31 Jul 2015 03:09:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZL4Ro-0001PD-HA for emacs-devel@gnu.org; Fri, 31 Jul 2015 03:09:44 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:59397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZL4Ro-0001Oi-8J for emacs-devel@gnu.org; Fri, 31 Jul 2015 03:09:40 -0400 Original-Received: from [188.22.40.99] ([188.22.40.99]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0Lrek1-1YtWbW1rTR-013Lyi; Fri, 31 Jul 2015 09:09:39 +0200 In-Reply-To: <20150730110041.GE23175@csr-pc9.zib.de> X-Provags-ID: V03:K0:wPcXOW6lpxgmX/UbrkK1D/bOfFNkNFsp//5y6ew0hTgthnBejUw zhfKKu9ON8wr0dFaTn/gifZ8VkMYqVAeNwogNYFciITpK3GzN62ghiBc9Gn2R2Ul+OyyahR tifcq7VmP90QGy2Qizb4N9gdmP+oGSGAsKd2NkgzaaYRctZjAVInJ2vPmBfgARP2SMzZt65 IUuL0E8gU/uldblcCwDpg== X-UI-Out-Filterresults: notjunk:1;V01:K0:x6mjjLikfvI=:AfOp4nNZvZ7ebKENoeB2co HiwUDEyKZTcsj0lpYiTlZQASB+pzZWHhcdT4FOYQwBAeJ5Y/qUAExD9VlcgoS+/hnmoIwrU8B eKFMuTh3bBP4flvpS1iUoO1TWUF/hY2aaR5MFpeP6nNolm7qk1ELcltBvK6aG8oG91zuwCHlh X5damctEC2v0Fu24DzOrLCqogmEuwZ64aO0PTYfxDLiAPHDhvFaBZxS9Kin1PHPQLPNL+q0zE OzP16ZFiMZttjgM/RvlqnK5K9rDiUf76mEeFTTtE7wRvzdV5va6flfWsljQmohEcGAncutOr8 qKkRKkZOyNyLjAePcWvWcRckMmNBO0S4sZgJ1bwpxqaLstso0W43Y4u6jSCAmi/B1hhIZEryc qfmuFXx9ETYtXctVhHZP01y2XC1K7qI15LcM7cZB8dsFYs92stL05grMRQ9ai/vywfJvyuik1 PrmUulxSY7qIXakmgVwdSpEc5uj0fJrB8sFBlAPMd+7ws7Amf0FRSr6hxDe21uFhWnbufFcSs uozcdBnhPRJImZ0BrOAu9UNZ2pV9n67PyIb2VWoG9fvVl57FoOq4NhyUsq9LfaWcYw2KNHoQ5 BKK0PkI83O8CVS548ruP5cjZo7iE4pUiMjuyG0EAtVZ4Lhm6xNHWEFZ7tTZ2vQqGYRzcIqyHD R9HHouxX9aUQYjCjBX+f223M7LIM+Kdys2j/Twr0toE59J48Ocsd7i1U5TXvx3myJOTY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.19 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:188224 Archived-At: > I would like to propose to call the before-make-frame-hook in the function > make-frame *before* retrieving the parameters of the new frame > (window-system-default-frame-alist and default-frame-alist) and not after. > > That way, one could dynamically set these variables inside the hook, e.g. to > create the new frame under the current position of the mouse cursor. We could easily do that. But encouraging users to set a variable called `default-frame-alist' in a hook is probably a very bad advice. Where would you change the default value back after you're done with making the frame? In `after-make-frame-functions'? Creating a frame under the mouse cursor should be done by a special function that calls `make-frame' with the mouse position passed via the `left' and `top' PARAMETERS thus _overriding_ any default parameters. Please tell us if and why such a function would not be practicable for you. Thanks, martin