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: Sat, 06 Apr 2024 18:59:45 -0700 Message-ID: <87r0fhq5vy.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> 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="7433"; 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 Sun Apr 07 04:12:20 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 1rtI15-0001ho-1i for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Apr 2024 04:12:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rtI0k-0002IK-3p; Sat, 06 Apr 2024 22:11: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 1rtI0i-0002I9-Ef for bug-gnu-emacs@gnu.org; Sat, 06 Apr 2024 22:11: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 1rtI0h-0003zS-J5 for bug-gnu-emacs@gnu.org; Sat, 06 Apr 2024 22:11:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rtI0n-0008LE-S2 for bug-gnu-emacs@gnu.org; Sat, 06 Apr 2024 22:12:01 -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 02:12:01 +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.171245588031886 (code B ref 70213); Sun, 07 Apr 2024 02:12:01 +0000 Original-Received: (at 70213) by debbugs.gnu.org; 7 Apr 2024 02:11:20 +0000 Original-Received: from localhost ([127.0.0.1]:41326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtI07-0008IE-SQ for submit@debbugs.gnu.org; Sat, 06 Apr 2024 22:11:20 -0400 Original-Received: from out-170.mta0.migadu.com ([91.218.175.170]:48008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtI03-0008HF-5g for 70213@debbugs.gnu.org; Sat, 06 Apr 2024 22:11:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breatheoutbreathe.in; s=key1; t=1712455862; 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=p10nqdPPjMt0dS4GmdJm6H+jR6tOXsg0og7sMtVC7+g=; b=Stbv+/b7EZE6bAqRmYjwF6JkOygix0NyhVcHUEjwpZFutInyj11kejfmLzEBx+JHzujc+n KMsDfO3Z+GuvNs53eeDgETYW2RwKQPKSlxro4+h7QjhuPmt6/ihe0utZqUhTtHJ7PrgpL8 8X27TFGXjMUiOtcxdkOqJjHienQhdiY= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-reply-to: <87ttke9u4c.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:282833 Archived-At: Stephen Berman writes: > Ah, ok. I somehow overlooked the fit-window-to-buffer part in your OP, > although it is in the bug Subject line -- though with my post-Jan 6 > build from master, that's only problematic with > fit-window-to-buffer-horizontally set to t, as in your above recipe. > But with fit-window-to-buffer-horizontally set to t, I see that the > window displaying *info* is not quite fitted to the buffer (e.g. in the > initial dir node the line "In Emacs, you can click mouse button 2 on a > menu item or cross reference" wraps after the third "e" in "reference" > (column 70)), even if the frame is wide enough to display the entire > buffer. I see this both with and without your patch; but with > fit-window-to-buffer-horizontally set to nil, then there is no line > wrapping (as long as the frame is wide enough). This seems to be a bug > in the use of fit-window-to-buffer-horizontally. Thank you for being gracious about my confusing report :) 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? Joseph