From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.bugs Subject: bug#21100: 25.0.50; quit-restore-window should also retore width, not just height Date: Tue, 21 Jul 2015 14:32:54 +0100 Message-ID: References: <55AE27E7.6030505@gmx.at> <55AE3F51.7030204@gmx.at> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1437485671 7340 80.91.229.3 (21 Jul 2015 13:34:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jul 2015 13:34:31 +0000 (UTC) Cc: 21100@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 21 15:34:21 2015 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 1ZHXga-0006Bf-6J for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Jul 2015 15:34:20 +0200 Original-Received: from localhost ([::1]:59413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHXgZ-0001GM-87 for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Jul 2015 09:34:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHXgT-0001FH-19 for bug-gnu-emacs@gnu.org; Tue, 21 Jul 2015 09:34:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHXgM-0007wt-PX for bug-gnu-emacs@gnu.org; Tue, 21 Jul 2015 09:34:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHXgM-0007wL-Le for bug-gnu-emacs@gnu.org; Tue, 21 Jul 2015 09:34:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZHXgL-0003DQ-VG for bug-gnu-emacs@gnu.org; Tue, 21 Jul 2015 09:34:06 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Jul 2015 13:34:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21100 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21100-submit@debbugs.gnu.org id=B21100.143748558812294 (code B ref 21100); Tue, 21 Jul 2015 13:34:05 +0000 Original-Received: (at 21100) by debbugs.gnu.org; 21 Jul 2015 13:33:08 +0000 Original-Received: from localhost ([127.0.0.1]:55095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHXfP-0003CD-6E for submit@debbugs.gnu.org; Tue, 21 Jul 2015 09:33:07 -0400 Original-Received: from mail-la0-f42.google.com ([209.85.215.42]:36793) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHXfJ-0003Bo-6Q for 21100@debbugs.gnu.org; Tue, 21 Jul 2015 09:33:02 -0400 Original-Received: by lagw2 with SMTP id w2so117769414lag.3 for <21100@debbugs.gnu.org>; Tue, 21 Jul 2015 06:32:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=g02kUMk+7ZqV4vlz4ddiOfY/F34r6arpyro3P+3/MiY=; b=Bqqgrb9ho6eWZGVU39yvoC/iqgE36wphUaXjNm06LaSliwWXUB/B0ll1+mjjDO9eJe 4fKtpbIKcPMSjdTv2lYVZMGqtqnKn1gBKrYzLOpWfeWDhK4VtpzPYWiOerNNEhVC0qP4 oPOwbbTHWset91QqPgOokW921YchAb1P6pynQxSnFgxYv2oaGYS153YQ5ROlgZzPzBUt ueMR7YYYZ+SxDdd5fXcvDudLi+2Z+HfUPJ83eFqBk8ygo1gpGkR2a8HYSLSi0FJzZWXv 3fFK0sz9GJjprLwadUzNYQcBbZ0A5zs3Geen/NlmdrzEDstfqukVXczdLllDrpYtzfaK EN7A== X-Received: by 10.152.19.67 with SMTP id c3mr33082522lae.4.1437485574914; Tue, 21 Jul 2015 06:32:54 -0700 (PDT) Original-Received: by 10.25.134.139 with HTTP; Tue, 21 Jul 2015 06:32:54 -0700 (PDT) In-Reply-To: <55AE3F51.7030204@gmx.at> X-Google-Sender-Auth: boV0X_d5lMl4xiWKKElyDbn_Kek X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:105053 Archived-At: >>> So what did you do to accomplish that resize? >> >> Try doing (set-face-attribute 'default nil :height 290) > > That's no recipe, at least not with emacs -Q. With emacs -Q this just > makes my frame much larger than my display. Please try to give me a > recipe with emacs -Q. Something's at work here which I don't understand > yet. This was from emacs -Q. On my machine (running Ubuntu), with a maximized frame, increasing the font-size doesn't make the frame larger. Maybe it's a difference in the OS (I think on Windows if you increase font-size the frame does get enlarged). The point is that the combination of font-size and frame-size has to be such that two windows do not fit side-by-side. In this situation, Emacs usually creates temp windows below the current window (instead of to the right). Here's a new recipe to verify what I'm explaining now. 0. Start emacs -Q 1. Resize the frame so that it is less than 30 columns wide, and at least 30 lines tall. 2. Type `C-h f point RET'. 3. The temp window is created below. Now here is an updated recipe for the original behavior I was describing (the fact that windows are vertically expanded to fit the help buffer). 0. Start emacs -Q 1. Resize the frame so that it is less than 30 columns wide, and at least 30 lines tall. 2. Type `C-- C-5 C-x C-2', to create a tiny window below. 2. Type `C-h f point RET'. 3. The temp buffer is displayed in the window you had created, and the windows size is increased to half the frame. 4. If you hit q on that help window, it will return to the original height of 5 lines. >> If the frame is large enough to fit two windows side-by-side, then the >> help buffer will always be created in a new window to the right. > > This contradicts your scenario where you say that the help buffer reuses > an already existing window. This sentence was part of the explanation leading up to the next one. The next sentence is the one that describes the behavior I get. Sorry if I wasn't clear. >> However, if the font size is large enough that two windows do NOT fit >> side by side in the frame, then the window is created below. In this >> scenario, you get the behavior I described (i.e., if there's already a >> window below the current one, it is reused by the help buffer and it >> is expanded if necessary). > > It's just that I don't know _why_ a reused window would be expanded. > Can you point me to where in the code this expansion takes place? Some edebugging shows me it is done by `display-buffer-use-some-window', and indeed I see a `window-resize' in there.