From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joseph Turner via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70213: Info-mode side window fit-window-to-buffer issue Date: Sun, 07 Apr 2024 15:13:07 -0700 Message-ID: <87zfu43jo7.fsf@breatheoutbreathe.in> References: <875xww2ncc.fsf@breatheoutbreathe.in> <86h6gg56vg.fsf@gnu.org> <871q7j3l4b.fsf@breatheoutbreathe.in> <87jzlbddt3.fsf@gmx.net> <87msq71n2a.fsf@breatheoutbreathe.in> <87sezzfo22.fsf@gmx.net> <87sezzs20t.fsf@breatheoutbreathe.in> <87y19qaff3.fsf@gmx.net> <877chaqtd4.fsf@breatheoutbreathe.in> <87ttke9u4c.fsf@gmx.net> <87r0fhq5vy.fsf@breatheoutbreathe.in> <87v84tplir.fsf@gmx.net> <87v84tt63k.fsf@breatheoutbreathe.in> <878r1potsi.fsf@gmx.net> <87cyr1szqq.fsf@breatheoutbreathe.in> <8734rwq4ka.fsf@gmx.net> Reply-To: Joseph Turner Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21323"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70213@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 08 00:15:17 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rtanB-0005H6-EC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Apr 2024 00:15:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rtamw-0008IT-J9; Sun, 07 Apr 2024 18:14:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rtamt-0008Hu-Mj for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2024 18:14:56 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rtamt-0003MP-Bc for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2024 18:14:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rtan0-0003EW-Ba for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2024 18:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Joseph Turner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Apr 2024 22:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70213 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 70213-submit@debbugs.gnu.org id=B70213.171252806812234 (code B ref 70213); Sun, 07 Apr 2024 22:15:02 +0000 Original-Received: (at 70213) by debbugs.gnu.org; 7 Apr 2024 22:14:28 +0000 Original-Received: from localhost ([127.0.0.1]:44943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtamR-0003BF-L3 for submit@debbugs.gnu.org; Sun, 07 Apr 2024 18:14:28 -0400 Original-Received: from out-184.mta0.migadu.com ([2001:41d0:1004:224b::b8]:13999) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtamP-0003AF-CY for 70213@debbugs.gnu.org; Sun, 07 Apr 2024 18:14:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breatheoutbreathe.in; s=key1; t=1712528051; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VTgo1V+EAcRyfL8eey12SH9ySkTEEBdXeFkuV6Ceabc=; b=Br/MiqWoFb+8S5SipUVROuqnmLx9nOCctS6bfLY2BkPjsFBmFYMgpr5xYWnMlOpZBdohHs IHXdDzAeJMVNlODW7KGi+XHfyEzWlyR5nfTAu96E0xnhiHA3ljfDFEIb19EyLm/SOshg5H gd6p4DgjYjbxIFuiJ3nV0q5WrVdDqfw= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-reply-to: <8734rwq4ka.fsf@gmx.net> X-Migadu-Flow: FLOW_OUT X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:282898 Archived-At: Stephen Berman writes: > On Sun, 07 Apr 2024 13:07:06 -0700 Joseph Turner wrote: > >> Stephen Berman writes: >> >>> On Sun, 07 Apr 2024 10:47:58 -0700 Joseph Turner >>> wrote: >>> >>>> Stephen Berman writes: >>>> >>>>> On Sat, 06 Apr 2024 18:59:45 -0700 Joseph Turner >>>>> wrote: >>>>> >>>>>> On my machine, the following snippet: >>>>>> >>>>>> (progn >>>>>> (setq fit-window-to-buffer-horizontally t) >>>>>> >>>>>> (setq display-buffer-alist >>>>>> '(((derived-mode . Info-mode) >>>>>> display-buffer-in-side-window >>>>>> (side . right) >>>>>> (window-width . fit-window-to-buffer)))) >>>>>> >>>>>> (info) >>>>>> (window-width)) >>>>>> >>>>>> without the patch evaluates to 6 >>>>>> >>>>>> with the patch evaluates to 71 >>>>>> >>>>>> What happens on your machine? >>>>> >>>>> without the patch: 6 >>>>> with the patch: 70 >>>> >>>> This indicates that the patch fixes the bug on your machine also. Right? >>>> >>>>> For an unsplit window, (window-width) returns 80 (with emacs -Q); does >>>>> it also for you? I'm building on GNU/Linux with Gtk3. >>>> >>>> Sorry, an unsplit window where? Please clarify the instructions :) >>>> >>>> Thanks! >>> >>> Sorry for being unclear; what I meant is the return value of >>> (window-width) evaluated immediately after starting emacs -Q, so the >>> frame consists of a single window. >> >> 138 on my machine. > > I've never heard of that for -Q. I though 80, which is what I get, was > standard, at least under X, and that's what the Emacs user manual says > (info "(emacs) Window Size X"): "The default frame width is 80 > characters and the default height is between 35 and 40 lines, depending > on the OS and the window manager." What graphical display system are > you using? I am using EXWM, and I ran emacs -Q as a subprocess inside of the main Emacs process. The emacs -Q instance ended up being full screen. Joseph