Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jim Blandy <jimb@red-bean.com>
Cc: gdb@sources.redhat.com
Subject: Re: Formatting of packet descriptions in GDB manual
Date: Sat, 12 Nov 2005 22:53:00 -0000	[thread overview]
Message-ID: <u4q6h32bk.fsf@gnu.org> (raw)
In-Reply-To: <8f2776cb0511120047y50b3a273pe17ddd5c53342be1@mail.gmail.com> (message from Jim Blandy on Sat, 12 Nov 2005 00:47:03 -0800)

> Date: Sat, 12 Nov 2005 00:47:03 -0800
> From: Jim Blandy <jimb@red-bean.com>
> Cc: gdb@sources.redhat.com
> 
> On 11/11/05, Eli Zaretskii <eliz@gnu.org> wrote:
> > In general, I'd say that whoever wrote that section didn't know that
> > @var{} typesets correctly even if it is inside @code.  Thus, if I'd
> > work to fix that section, I'd first modify "@table @r" into
> > "@table @code", and then remove all the @code's in the @item's.
> 
> I tried that first --- but notice that each @item has explanatory text
> after the packet, like "--- remove hardware breakpoint".

This is a @table, so that text should be in the next line, not on the
@item line.  In many cases, this text is redundant anyway, since what
follows the @item line repeats the explanation.

> >   @code{z}@code{3}@code{,}@var{addr}@code{,}@var{length}
> >
> > is it important to have `z', `3', and the comma typeset as 3 separate
> > characters, or is it okay to see a single string `z3,'?  At the time I
> > looked at this section, the answer was not clear to me.  You seem to
> > indicate that it's okay to produce a single string here, but what do
> > others think.
> 
> Not to prevent others from sharing their thoughts, but can you explain
> why you yourself feel those characters might need to be distinct? 

Because each individual character might be of some importance,
mnemonic if not anything else.  But that's a guess, I really don't
have a good answer for this question.

> >   @item @code{q}@code{M}@var{count}@var{done}@var{argthread}@var{thread@dots{}}
> >
> > Is it okay to typeset the arguments in @var without any whitespace
> > between them and the surrounding text?  There is no whitespace when
> > this is sent on the wire, but what about the human reader of the
> > manual?
> 
> Yes, that one really is a mess.  Two ideas:
> 
> - Replace the variable portion with a single metavariable, say
> @var{args}.  In the English text below, explain the structure of
> @var{args} as the concatenation of these things: blah blah blah.

This would just move the problematic part into the text, won't it?
Because "blah blah blah" will be something like
@var{count}@var{done}@var{argthread}@var{thread}, right?

Perhaps we should use blanks between those @var's, but explain in the
text that there shouldn't be blanks in the real packet, and give an
example to demonstrate that

> I'll have some time over the next few days.

Thanks.


  reply	other threads:[~2005-11-12 22:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-12  0:25 Jim Blandy
2005-11-12  7:07 ` Eli Zaretskii
2005-11-12  8:47   ` Jim Blandy
2005-11-12 22:53     ` Eli Zaretskii [this message]
2005-11-12 23:07       ` Jim Blandy
2005-11-13 17:12       ` Daniel Jacobowitz
2005-11-13 22:10         ` Eli Zaretskii
2005-11-14  2:29           ` Daniel Jacobowitz
2005-11-14  4:29             ` Eli Zaretskii
2005-11-14 13:49               ` Daniel Jacobowitz
2005-11-16  5:47                 ` Jim Blandy
2005-11-16  6:54                   ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=u4q6h32bk.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb@sources.redhat.com \
    --cc=jimb@red-bean.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox