unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: bug-gnu-emacs@gnu.org, ihs_4664@yahoo.com, rms@gnu.org
Subject: Re: info mode header line missing title
Date: Sun, 05 Sep 2004 23:38:22 +0300	[thread overview]
Message-ID: <874qmcwdcx.fsf@mail.jurta.org> (raw)
In-Reply-To: <jefz5yt95c.fsf@sykes.suse.de> (Andreas Schwab's message of "Sat, 04 Sep 2004 16:13:03 +0200")

Andreas Schwab <schwab@suse.de> writes:
> "Eli Zaretskii" <eliz@gnu.org> writes:
>> Please show some statistics to back up this assertion.  In my
>> experience, a large percent of Info nodes have long names so that the
>> header line overflows the 79-character limit.
>
> I can confirm this.  On my system more than 50% of the Info nodes would
> overflow the limit if the node name would be included in the header line.
> Without it, only about 10% remain.
>
> $ zgrep -h '^File: .*Node:' *.gz | wc -l
> 16965
> $ zgrep -h '^File: .*Node:' *.gz | sed -n 's/^[^,]*, *//; /.\{80,\}/p' | wc -l
> 9133

This query is not quite right.  The proposed format was without the
"Node: " prefix.  So more proper query is:

  $ zgrep -h '^File: .*Node:' *.gz | sed -n 's/^[^,]*, *Node: //; /.\{80,\}/p' | wc -l
                                                        ======

It gives on my system 32% of nodes whose headers would be longer than
80 characters, against 8% of header lines without the node name at all.

But fourfold increase is no good.  So I propose another improvement:
to replace prefixes "Next: ", "Prev: " and "Up: " with 1-character
arrow glyphs representing their meanings ("<" - prev,  ">" - next,
"^" - up).  With this change the header line:

Save Keyboard Macro,  Next: Edit Keyboard Macro,  Prev: Keyboard Macro Query,  Up: Keyboard Macros

would be displayed as:

Save Keyboard Macro >Edit Keyboard Macro <Keyboard Macro Query ^Keyboard Macros

On my estimations this gives the same percent of nodes (on my system 9%)
as for currently truncated header lines without the node name.
The query to prove it is:

$ zgrep -h '^File: .*Node:' *.gz | sed -n 's/^[^,]*, *Node: //; /.\{99,\}/p' | wc -l

since the length of the saved text ", Next:, Prev:, Up:" is 19 characters.

-- 
Juri Linkov
http://www.jurta.org/emacs/

  parent reply	other threads:[~2004-09-05 20:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.657.1093861497.1998.bug-gnu-emacs@gnu.org>
2004-08-30 18:53 ` info mode header line missing title Kevin Rodgers
2004-09-02 16:59   ` Juri Linkov
2004-09-03 17:24     ` Richard Stallman
2004-09-03 20:54       ` Juri Linkov
2004-09-04 11:34         ` Eli Zaretskii
2004-09-04 14:13           ` Andreas Schwab
2004-09-05  5:12             ` Richard Stallman
2004-09-05 20:38             ` Juri Linkov [this message]
2004-09-07  3:43               ` Richard Stallman
2004-09-07  4:32                 ` Juri Linkov
2004-09-08  0:21                   ` Richard Stallman
     [not found]                   ` <mailman.1906.1094603231.1998.bug-gnu-emacs@gnu.org>
2004-09-08 15:56                     ` Kevin Rodgers
2004-08-30 10:19 joseph

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874qmcwdcx.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=ihs_4664@yahoo.com \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).