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 16:06:57 -0700 Message-ID: <87v84s3h7g.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> <87zfu43jo7.fsf@breatheoutbreathe.in> <87y19ool7e.fsf@gmx.net> Reply-To: Joseph Turner Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12627"; 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 01:08:23 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 1rtbcc-00033e-U1 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Apr 2024 01:08:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rtbcE-0002tT-3L; Sun, 07 Apr 2024 19:07:58 -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 1rtbcC-0002tA-0Z for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2024 19:07: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 1rtbcB-00033z-P0 for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2024 19:07:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rtbcI-0007r1-IC for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2024 19:08: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 23:08: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.171253126530091 (code B ref 70213); Sun, 07 Apr 2024 23:08:02 +0000 Original-Received: (at 70213) by debbugs.gnu.org; 7 Apr 2024 23:07:45 +0000 Original-Received: from localhost ([127.0.0.1]:44968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtbc0-0007pG-NU for submit@debbugs.gnu.org; Sun, 07 Apr 2024 19:07:45 -0400 Original-Received: from out-175.mta1.migadu.com ([2001:41d0:203:375::af]:10327) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtbbx-0007op-4G for 70213@debbugs.gnu.org; Sun, 07 Apr 2024 19:07:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breatheoutbreathe.in; s=key1; t=1712531247; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rvfT/MCpcISyFtFJU1x6ypWjeT9pl09qz2azrj3JjzU=; b=U6HYRFqI7KWOfcmNb21IzKWAnhuMNeHfOLSc+rjlTVx/s5vTi0VqqW6i1Ex7/qIMa2L8St g7XHvWClzv7NB/NQuYHKzwq6yCr3bSczTXvHNBLF8D8NcV7A6g/fENzIGXXDq91wfVBdvi wJeOIZf9Kl1s3hdOGzsw0jiBI+udNks= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-reply-to: <87y19ool7e.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:282900 Archived-At: Stephen Berman writes: > On Sun, 07 Apr 2024 15:13:07 -0700 Joseph Turner wrote: > >> 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. R= ight? >>>>>> >>>>>>> For an unsplit window, (window-width) returns 80 (with emacs -Q); d= oes >>>>>>> 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. > > Ah, ok, so that overrides the Emacs default frame parameters for X. So > I guess that's why you get different results with > fit-window-to-buffer-horizontally set to t than I do. =F0=9F=91=8D