From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#22723: 25.0.91; temp-buffer-resize-mode disables shrink-window Date: Thu, 18 Feb 2016 11:51:45 +0100 Message-ID: <56C5A241.6060804@gmx.at> References: <83io1nunlh.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1455792803 29850 80.91.229.3 (18 Feb 2016 10:53:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Feb 2016 10:53:23 +0000 (UTC) To: Eli Zaretskii , 22723@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 18 11:53:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1aWMCu-0005Ig-Gk for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Feb 2016 11:53:12 +0100 Original-Received: from localhost ([::1]:39926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWMCt-0005lw-TZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Feb 2016 05:53:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWMCp-0005ll-Dv for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2016 05:53:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWMCk-0004mX-CT for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2016 05:53:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWMCk-0004mT-8h for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2016 05:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aWMCj-0003he-V9 for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2016 05:53:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Feb 2016 10:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22723 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22723-submit@debbugs.gnu.org id=B22723.145579272314022 (code B ref 22723); Thu, 18 Feb 2016 10:53:01 +0000 Original-Received: (at 22723) by debbugs.gnu.org; 18 Feb 2016 10:52:03 +0000 Original-Received: from localhost ([127.0.0.1]:60218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aWMBn-0003e6-N5 for submit@debbugs.gnu.org; Thu, 18 Feb 2016 05:52:03 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:59274) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aWMBm-0003dM-Lc for 22723@debbugs.gnu.org; Thu, 18 Feb 2016 05:52:03 -0500 Original-Received: from [192.168.1.101] ([212.95.7.107]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LuP19-1ZnR2x1oD1-011mVC; Thu, 18 Feb 2016 11:51:56 +0100 In-Reply-To: <83io1nunlh.fsf@gnu.org> X-Provags-ID: V03:K0:/vMSh8l9+D5eLogCV6Uidt0yG2VV7CNjyKcCammCMcTNuhD+Hkp IiQKZOIC7XkbPEybJTHVNVZuNLDciStfpICSdZYyjhtby2NC8ukpm+w5Tg4TQOj5b9Kruof RpQ6hrxddzbGe/f7bpnW3+Uc3bCHIxD087NykNwqcViTwRTQs3b+SSXDZaqcl3qFen5bVLJ kMXj0KAasmu9Tvfege4CQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:dWcZtvQp+L0=:2RqNI/6chQi+uDg49ZAGrK lPhhHFCwDD1rYO5NZ2XLcKT1voyPUP9ykAQOngOgqaJheF9e2dQzJTc+Z0uitPzfhQaSVmYgX D3vH0sTTEiT83JCnqlADHAGycc6Pe17Ew/ptGle1uDUF88fTzzxUymwBF2TmV6VJIM9wui7sw tD5peuidxugP39a767xXg73ptMzcQ4nK3+zpVfDVb9SmJnCYD0V4nKCRks0f1gMDGV7zReDwS aiVRff3QPdkTDQF1QCLxcSEslneTdOJq1SjoNfo77CdFI5EaYIE7RttkiPNv0nhpagwgxDLXA DE+HXqY2Y+VlkLQOsOGP8PD1mLUee0MV1+XbhiV509E+EnQLbn71j/nB2qelElHjQXgHa+K8k VwMOPcVl1iApU+XZHBVL+7MR/w+2EObX4lANLEN5Nppj/u0s8PlqwpnitqMRtfCER/servcgl peEgiCt9nIoXMcjUJEvx6se+/gMp5FoNcut/11szORWSL2+5vROudS1qa8f7xHx1WI+Y23FN+ haKjei2JYC9MbCTDFvOprtHObYGiK18i3vWq4EPL8MRbQxwVPs+hMC3KOzPkCaSPC2Mec+76A JSLJtRSbOPmPo7a0UUh/CNn5ITBvLfIpDEmLZk/pD8n1Lynn9OB8kdpGR6QXIHgztti8x2HFt 2BM5afioHdFmfc9A0kHtcWutkdySPtwnc19ncDAZ8ejhrxQGQUR2uil0/rSH2hqV/8Tl/++hM sQ5SU21B3PFSypPud3i610L0n6EAHuEpDltStE1y1ec8ojxSO8ey8Vk75aipAO8wtPH/QMVL X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113235 Archived-At: > To reproduce: > > emacs -Q > M-x temp-buffer-resize-mode RET > C-h f shrink-window RET > M-x shrink-window RET > > Result: nothing happens. > > I realize that this is the result of temp-buffer-resize-mode taking > control on the dimensions of the *Help* window, but for me this is an > unintended consequence: I did want *Help* buffer resize itself when it= > displays a new topic, but I certainly didn't expect to lose the > ability to resize my other windows. Moreover, doing nothing silently,= > without any error message, sounds sub-optimal UI to me. > > ("Fixing" this is easy: just switch to the window displaying *Help* > and invoke shrink-window or enlarge-window from there -- from that > moment on the resizing commands will work from other windows as well.)= > > If the issue is not some unintended bug, then how about overriding > this behavior when the commands are invoked interactively? Failing > even that, can we at least have a prefix argument to override that > explicitly? Some time ago I changed the behavior of =E2=80=98enlarge-window=E2=80=99 = and =E2=80=98shrink-window=E2=80=99 to not report an error when the window co= uld not be resized as requested but to resize the window as much as allowed instead. This was not a very good idea because according to the Emacs manual these functions _are_ supposed to report an error in the described case. I hopefully fixed that now. The =E2=80=98temp-buffer-resize-mode=E2=80=99 bug you report here is just= an indirect consequence of that earlier bug. This issue should now have been fixed as well. Please have a look. I also fixed a bug with =E2=80=98adjust-window-trailing-edge=E2=80=99 cau= sing it to not report an error when there was no resizable window below (or on the right) of the edge to adjust. Please check this as well. Thanks, martin