From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23169: 24.5; Inconsistent text reflow in man pages depending on window configuration Date: Thu, 31 Mar 2016 19:48:47 +0300 Message-ID: <83egaqvbio.fsf@gnu.org> References: <87bn5ug55o.fsf@fimbulvetr.bsc.es> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1459443027 1327 80.91.229.3 (31 Mar 2016 16:50:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2016 16:50:27 +0000 (UTC) Cc: 23169@debbugs.gnu.org To: =?UTF-8?Q?Llu=C3=ADs?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 31 18:50: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 1alfnP-0002au-E4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Mar 2016 18:50:11 +0200 Original-Received: from localhost ([::1]:33406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alfnP-0005r9-0J for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Mar 2016 12:50:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alfnK-0005m4-Es for bug-gnu-emacs@gnu.org; Thu, 31 Mar 2016 12:50:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alfnG-0004aD-DH for bug-gnu-emacs@gnu.org; Thu, 31 Mar 2016 12:50:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alfnG-0004Zv-Ao for bug-gnu-emacs@gnu.org; Thu, 31 Mar 2016 12:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1alfnG-0004qu-2c for bug-gnu-emacs@gnu.org; Thu, 31 Mar 2016 12:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Mar 2016 16:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23169 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23169-submit@debbugs.gnu.org id=B23169.145944295018587 (code B ref 23169); Thu, 31 Mar 2016 16:50:02 +0000 Original-Received: (at 23169) by debbugs.gnu.org; 31 Mar 2016 16:49:10 +0000 Original-Received: from localhost ([127.0.0.1]:46445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1alfmP-0004pj-Ql for submit@debbugs.gnu.org; Thu, 31 Mar 2016 12:49:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42395) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1alfmO-0004pU-9R for 23169@debbugs.gnu.org; Thu, 31 Mar 2016 12:49:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alfmF-0004FS-Bg for 23169@debbugs.gnu.org; Thu, 31 Mar 2016 12:49:03 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38251) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alfmF-0004FO-86; Thu, 31 Mar 2016 12:48:59 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1869 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1alfmE-0007HB-J3; Thu, 31 Mar 2016 12:48:59 -0400 In-reply-to: <87bn5ug55o.fsf@fimbulvetr.bsc.es> (message from =?UTF-8?Q?Llu=C3=ADs?= on Thu, 31 Mar 2016 15:15:15 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:115811 Archived-At: > From: Lluís > Date: Thu, 31 Mar 2016 15:15:15 +0200 > > Before the man process is started, "Man-start-calling" calculates the "COLUMNS" > envvar using "window-width" before splitting windows. The window split happens > later once the process finishes, and the buffer is shown through > "Man-notify-when-ready". > > Assuming the buffer is going to be shown on a vertical split, the text will go > beyond the window limits if there was no other window in the frame (or if a new > window is used), or will be reflowed with the proper width if an existing window > is reused. > > Manually calling "Man-update-manpage" fixes it, but it's annoying. Simply adding > a call to "Man-update-manpage" in "Man-notify-when-ready" would fix it > ("(with-current-buffer man-buffer (Man-update-manpage))" in the "friendly" case > for me). > > As a bonus, this fix also reflows the text when an existing buffer is reused. Maybe I'm missing something, but won't your suggestion effectively replace the background rendering of man pages with fully synchronous one? The usual way to fix these problems is to set Man-width to a non-nil value, as appropriate for your frame/window dimensions. Would that solve the problem for you?