From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#5566: 23.1.92; man page header ugly on narrow terminals Date: Fri, 12 Feb 2010 21:24:16 +0200 Organization: JURTA Message-ID: <87mxzexo53.fsf@mail.jurta.org> References: <87tytn621v.fsf@jidanni.org> <20100211222648.GJ13019@belanna.comodo.priv.at> <20100212112353.GT4484@riva.ucam.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266004426 8541 80.91.229.12 (12 Feb 2010 19:53:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Feb 2010 19:53:46 +0000 (UTC) Cc: 5566@debbugs.gnu.org, libwww-facebook-api-perl@packages.debian.org, gregor herrmann , jidanni@jidanni.org To: Colin Watson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 12 20:53:42 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ng1aA-0005pk-8x for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Feb 2010 20:53:42 +0100 Original-Received: from localhost ([127.0.0.1]:54843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ng1a4-0007rk-O0 for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Feb 2010 14:53:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ng1ZB-0007W6-DH for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2010 14:52:41 -0500 Original-Received: from [140.186.70.92] (port=55572 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ng1Z5-0007UA-AY for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2010 14:52:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ng1Z3-0006Jm-3T for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2010 14:52:35 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59604) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ng1Z1-0006Jc-QR for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2010 14:52:33 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ng1YY-0003hB-Lx; Fri, 12 Feb 2010 14:52:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Feb 2010 19:52:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5566 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5566-submit@debbugs.gnu.org id=B5566.126600430614181 (code B ref 5566); Fri, 12 Feb 2010 19:52:02 +0000 Original-Received: (at 5566) by debbugs.gnu.org; 12 Feb 2010 19:51:46 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ng1YG-0003gc-LA for submit@debbugs.gnu.org; Fri, 12 Feb 2010 14:51:46 -0500 Original-Received: from smtp-out4.starman.ee ([85.253.0.6] helo=mx2.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ng1YA-0003fo-Hi for 5566@debbugs.gnu.org; Fri, 12 Feb 2010 14:51:40 -0500 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.93.172.cable.starman.ee [82.131.93.172]) by mx2.starman.ee (Postfix) with ESMTP id 7B5513F40E2; Fri, 12 Feb 2010 21:51:27 +0200 (EET) In-Reply-To: <20100212112353.GT4484@riva.ucam.org> (Colin Watson's message of "Fri, 12 Feb 2010 11:23:54 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 12 Feb 2010 14:52:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35071 Archived-At: >> Looks indeed ugly, but I fail to see what the >> libwww-facebook-api-perl package could do about it?! > > Likewise, I agree that it's ugly, but I'm not convinced that man-db (or > groff, which is what's really responsible here) can do anything about > it. If the header line just plain doesn't fit, it doesn't fit. > > No doubt it would be possible to fix this by extending the .TH macro to > be able to declare some kind of fallback for use when the page width is > too short for the normal display, but, aside from the fact that I have > no idea where to start (this would be a groff upstream kind of thing), > I'm not sure that the substantial effort involved is worth it. I'm sure > it doesn't actually cause any significant confusion. > > Regarding emacs' odd ^H display, which I think is the meat of Dan's bug > report, this would appear to be essentially a bug in emacs. grotty is > rendering the just-won't-fit text by way of backspacing over the first > part of the header and overstriking the middle part; it's within its > rights to do that. I assume that whatever (lack of) terminal emulation > is used by M-x man isn't smart enough to handle this; perhaps it > special-cases the overstriking used for bold and underlining, and can't > cope with overstriking one character over a completely different > character? I think this is not an Emacs bug. I can reproduce it in xterm. When xterm is narrowed to the 50-character width, running the shell command `man HTML::TokeParser::Simple::Token::ProcessInstruction` displays garbage like ^H^H^H^H^H^H^H^HHTML::TokeParser::Simple::Token::ProcessInstruction(3pm)ion(3pm) where some random letters are highlighted in bold (where the character before ^H coincide with the character after ^H). What we can do in Emacs is simply to remove all ^H but we can't do the broken header line more readable. -- Juri Linkov http://www.jurta.org/emacs/