From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32586 invoked by alias); 5 Apr 2013 18:29:14 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 32576 invoked by uid 89); 5 Apr 2013 18:29:14 -0000 X-Spam-SWARE-Status: No, score=-4.3 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,SPF_SOFTFAIL autolearn=no version=3.3.1 Received: from mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 05 Apr 2013 18:29:10 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MKS00900OJAD300@a-mtaout21.012.net.il> for gdb-patches@sourceware.org; Fri, 05 Apr 2013 21:28:20 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MKS009NZON61PA0@a-mtaout21.012.net.il>; Fri, 05 Apr 2013 21:28:19 +0300 (IDT) Date: Fri, 05 Apr 2013 19:43:00 -0000 From: Eli Zaretskii Subject: Re: [patchv2+doc] New gdbinit.5 man page + converted gdb.1+gdbserver.1 In-reply-to: <20130405153012.GA25225@host2.jankratochvil.net> To: Jan Kratochvil Cc: tromey@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83r4ioessa.fsf@gnu.org> References: <20130219162741.GA4493@host2.jankratochvil.net> <838v6kp4gu.fsf@gnu.org> <20130220084353.GA801@host2.jankratochvil.net> <83fw0qokfw.fsf@gnu.org> <20130404160915.GA11966@host2.jankratochvil.net> <83sj36fcxb.fsf@gnu.org> <20130404171439.GA20464@host2.jankratochvil.net> <83obduf9ny.fsf@gnu.org> <20130405150101.GA15883@host2.jankratochvil.net> <83wqshdmsk.fsf@gnu.org> <20130405153012.GA25225@host2.jankratochvil.net> X-SW-Source: 2013-04/txt/msg00137.txt.bz2 > Date: Fri, 5 Apr 2013 17:30:12 +0200 > From: Jan Kratochvil > Cc: tromey@redhat.com, gdb-patches@sourceware.org > > On Fri, 05 Apr 2013 17:23:07 +0200, Eli Zaretskii wrote: > > > On Thu, 04 Apr 2013 20:11:29 +0200, Eli Zaretskii wrote: > > > > > +@c man begin SYNOPSIS gdb > > > > > +gdb [@option{-help}] [@option{-nh}] [@option{-nx}] [@option{-q}] > > > > > +[@option{-batch}] [@option{-cd=}@var{dir}] [@option{-f}] > > > > > +[@option{-b}@w{ }@var{bps}] > > > > > + [@option{-tty=}@var{dev}] [@option{-s} @var{symfile}] > > > > > +[@option{-e}@w{ }@var{prog}] [@option{-se}@w{ }@var{prog}] > > > > > +[@option{-c}@w{ }@var{core}] [@option{-x}@w{ }@var{cmds}] > > > > > + [@option{-d}@w{ }@var{dir}] [@var{prog}|@var{core}|@var{procID}] > > > > > +@c man end > [...] > > No, of course not. But if you use @verbatim..@end verbatim around > > this block, you can simply format the text exactly as you want it in > > the produced formats, and makeinfo will not fill or reindent that > > text. > > But with @verbatim I cannot use various highlighting with the @option or @var > keywords. I want the highlighting both for info and for man. > > And putting @verbatim into it as is the info viewer then displays: > > File: gdb.info, Node: gdb man, Next: gdbserver man, Up: Man Pages > > gdb man > ======= > > gdb [@option{-help}] [@option{-nh}] [@option{-nx}] [@option{-q}] > [@option{-batch}] [@option{-cd=}@var{dir}] [@option{-f}] > [@option{-b}@w{ }@var{bps}] > ... Right, forgot about that, sorry. How about this: @c man begin SYNOPSIS gdb @quotation gdb [@option{-help}] [@option{-nh}] [@option{-nx}] [@option{-q}] [@option{-batch}] [@option{-cd=}@var{dir}] [@option{-f}]@* @w{ }[@option{-b}@w{ }@var{bps}] [@option{-tty=}@var{dev}] [@option{-s} @var{symfile}] [@option{-e}@w{ }@var{prog}] [@option{-se}@w{ }@var{prog}]@* @w{ }[@option{-c}@w{ }@var{core}] [@option{-x}@w{ }@var{cmds}] [@option{-d}@w{ }@var{dir}] [@var{prog}|@var{core}|@var{procID}]@* @end quotation @c man end It looks good in Info, but I didn't try the other formats. On second thought, this is even better, I think: @c man begin SYNOPSIS gdb @example gdb [-help] [-nx] [-q] [-batch] [-cd=@var{dir}] [-f] [-b bps] [-tty=@var{dev}] [-s @var{symfile}] [-e @var{prog}] [-se @var{prog}] [-c @var{core}] [-x @var{file}] [-ex @var{cmd}] [-d @var{dir}] [@var{prog}[@var{core}|@var{procID}]] @end example @c man end WDYT?