From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andrea Cardaci Newsgroups: gmane.emacs.devel Subject: Re: Zoom: a window management minor mode -- best practices and questions Date: Thu, 3 May 2018 11:46:42 +0200 Message-ID: References: <83muxioten.fsf@gnu.org> <83lgd1q3zp.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1525352317 31784 195.159.176.226 (3 May 2018 12:58:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 3 May 2018 12:58:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 03 14:58:33 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 1fEDoZ-00083z-28 for ged-emacs-devel@m.gmane.org; Thu, 03 May 2018 14:58:27 +0200 Original-Received: from localhost ([::1]:56175 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEDqf-0006Qb-Vu for ged-emacs-devel@m.gmane.org; Thu, 03 May 2018 09:00:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEAp7-0007KG-C1 for emacs-devel@gnu.org; Thu, 03 May 2018 05:46:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fEAp6-0007su-K7 for emacs-devel@gnu.org; Thu, 03 May 2018 05:46:49 -0400 Original-Received: from mail-qk0-x231.google.com ([2607:f8b0:400d:c09::231]:36970) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fEAp2-0007sA-EQ; Thu, 03 May 2018 05:46:44 -0400 Original-Received: by mail-qk0-x231.google.com with SMTP id d74so13408581qkg.4; Thu, 03 May 2018 02:46:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=f5TJc8ky7p+PPET+XNMXd6uaCUENKNNepHx1/2sDMqM=; b=nv5KlJpQuvftV+hLZunNAVjS13aJeeQjSZMNsf+96O1gnDJQ7SNrGoUBa1IkEAB7Ip /iOUmJLkFs/xODXztkG4YwRV8oeAQPAMrKkF8a6fYDLkQYBT3W59B2MOzSzGHn9ETQtX DJdipvrxCcUC4pQcW5Kbmhdg0IW/5DTSDM4RdN+4ZxiNLXDRRgtoKlZNSKEHIURCRkji PIRjypZUUiq+auNbZAhTqsmYUNM+bFdnHoXWL1uf6tOhvynK4IgjJbcZOcCkYuFTXRrv mrI7bk8PQXnXi8opjevqxPa13Lj5hFjbzVgfyLQOnEyW5oYxzDYZaO4VFfZJtTghNv3J zLDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=f5TJc8ky7p+PPET+XNMXd6uaCUENKNNepHx1/2sDMqM=; b=ucMEUBkagLtTaykET9RclCFfxYd0KCinjrUc0wtzkoy3yZsB08MxSJIiggsnnpDMS3 1U0786fZY33Z05XYXJEKOaBJEiDc7eNUyjllxBPT4c940IyGCvLJUVxoX0hmaJZz4H92 pUp4z3LTYl7HDkHmCePu6XsLEilmtKtHeKxB/XCG2cR+ClPf8FOEq7zoApLFgIyFxDfb 7BxeEkWFGrw5XTswP/vZR/RDWTBm2Cm6Ox1Ku58nJFmIaHjmX0FXMV3hQHhYoadwvdmk ++2bjT6Tz8ceTviU8d4BP3yfgFBI6VUuC6bck4Dfz6aNoWCqrIYgAw8Y0GCUeY8CEKgu zQ7Q== X-Gm-Message-State: ALQs6tDAJp53CNQxTaX+nvQKmycGnbuVXjgSp9rufNajdrSICnRGDDNk 4kFEEfYbeWwOxskUOeNDxpktUYHBJhlq60bHyfenqBbb0KI= X-Google-Smtp-Source: AB8JxZpPatvxJV/0u0ioDHb8WmCF6+6bc0Xcvk2OCAE6jVr9+yj44aHbZPguYlorqj2+JCD10NAXCLiQOdNNBUcCbo4= X-Received: by 10.55.203.193 with SMTP id u62mr16538382qkl.83.1525340803504; Thu, 03 May 2018 02:46:43 -0700 (PDT) Original-Received: by 10.200.63.210 with HTTP; Thu, 3 May 2018 02:46:42 -0700 (PDT) In-Reply-To: <83lgd1q3zp.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::231 X-Mailman-Approved-At: Thu, 03 May 2018 09:00:29 -0400 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:225047 Archived-At: > If you mean that the selected window is resized as result of creating > a new window, then yes, "window is resized" takes care of this. (What > about deleting a window, btw?) Yes I mean that and the same applies when a window is deleted. > No, because pre-redisplay-functions are run _before_ anything > significant in redisplay, so your chances to confuse redisplay are > nil. Got it, thanks. > Well, as you said, the main purpose of Zoom is to prevent resizing of > the selected window due to Emacs's own considerations. My > interpretation of this was that you want to control the size of the > selected window, and disallow anything else changing it. So if you > change the size at select-window time, and the size is not allowed to > change after that, you have reached your purpose, right? Hm maybe, but not only that, the reason why I use `balance-windows` before resizing the selected window is ensure some consistency in the sizes of other windows too.