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: Window change functions Date: Sat, 05 Jan 2019 11:18:28 +0100 Message-ID: <5C308474.7030106@gmx.at> References: <5C21FB4B.7030005@gmx.at> <5C249D21.7070508@gmx.at> <83k1jv6k11.fsf@gnu.org> 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 1546683445 4754 195.159.176.226 (5 Jan 2019 10:17:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 5 Jan 2019 10:17:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 05 11:17:21 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from listsout.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfj17-00018f-16 for ged-emacs-devel@m.gmane.org; Sat, 05 Jan 2019 11:17:21 +0100 Original-Received: from localhost ([127.0.0.1]:36652 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfj3D-0002sT-8P for ged-emacs-devel@m.gmane.org; Sat, 05 Jan 2019 05:19:31 -0500 Original-Received: from eggsout.gnu.org ([209.51.188.92]:58670 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfj2I-0002sK-IT for emacs-devel@gnu.org; Sat, 05 Jan 2019 05:18:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfj2H-0006WS-Ib for emacs-devel@gnu.org; Sat, 05 Jan 2019 05:18:34 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:52217) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfj2H-0006Us-9Y; Sat, 05 Jan 2019 05:18:33 -0500 Original-Received: from [192.168.1.101] ([46.125.249.122]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LlleO-1hEmnt3IUC-00ZLZH; Sat, 05 Jan 2019 11:18:29 +0100 In-Reply-To: X-Provags-ID: V03:K1:4ufNM18tfdynu6MUlH8BQL3SrESX4aKV9iDxMtY8BC6ofMccsjl EP6+4oGsJb+ngBGRp/VnYkf/jlPYhwb6YLCtgmyTv83i3T0Y5ohy40/aqqo764XxG4y+J60 bM0csUYzwpb4Bd0NA0vY+aM8YD397y+cL6OxQel/3ub6jpH2o18cDydJswnm+1JsEdWMnlO 4Gj9ILZKhAePV1hHn0G/A== X-UI-Out-Filterresults: notjunk:1;V03:K0:PXKb83wllKw=:19iQbpc+x/sBXtwC6VdBrB CeBXUZzFQmBQt0ei5OmCHxYhB3f+zDc8m2p3fc/C2Os+bVU+tTEIjJgxTI+Yjr8PlqmCW3zWu 02NpgHSArq/fkWA1NVysfb2ULAxUp2DP8JJForTOinDEz8RuAfD4EePxp1xYwrm8CwFble5dL eYbC7BnofnmlOPGze7MDtpJiJcGLndf5s4oHvPTKqqsQ6u//mwAsFW/p67hoXXst6fZUcumXj zGiB+XDwyocble59vi8+LgiYeVaYdyI9xVQtzW7nsJanJYqZclljrxlhke0BU3Sz/FLFTD/Am tV7IR+UQM21Q6vAtYwjGBMZznEWeqrEVtaKO7u5jMnieKvVLCy+RNexLerGKbiqCkoQnzHY8o ukIPRoi71vrPxLGI7LiIdLvVyAFKozZDPmkI/AGUsK0CWYFuqYVKqdZh0W5rcAmLQ29i9xQe1 TUACY2E8PWQTTQKn5hhG2KxGj5XI3PxDIchf9A8xlsTa366czHHxQd1kZ6rpm09pkAAoo3JWn gOB0+RdJQAQ09g66eVl0zxm67ur26so9o6+R01s4MFNyVnIJpVspLR3DeHBmx92anfluDmukb gLCG0+6+xrcbAm6329TxIAXnMsHcBrqa9Z2gMytVaoAMtzKZdp/s5Pwhn8t2ZiqtbDmTmx3Kg lY2kT3/TmNrNpQCTjD76wSWhO9/T/SajWohH1jf6oLobzICMb5lb28OThcvbfrxMHo5czDKol V4d9/qsi5VsXqQNJYk10R6O9mO6Ncdvu14ESi4Dz4UId/MoFRlym5SVrvnoak/h4uWYerXrI X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.20 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:232195 Archived-At: > For example, I have a window-size-change-functions which I use to > re-balance windows (using balance-window-area) after a frame resize. Have you ever tried without that? Resizing a frame should resize windows proportionally which, if windows were balanced before the resizing, should leave them balanced afterwards. > It doesn't care about the exact window sizes when it's called, so having > correct window sizes when it's called is not necessary. OTOH redisplay > will need to happen right after it was run, because it changes > window sizes. So the best time to run it is right before redisplay. Not really. The run_window_change_functions calls in redisplay come right after do_pending_window_change calls. So the former should in the fastest possible way pick up any changes caused by the latter. martin