From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28988 invoked by alias); 24 Jun 2014 07:08:54 -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 28901 invoked by uid 89); 24 Jun 2014 07:08:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f170.google.com Received: from mail-ig0-f170.google.com (HELO mail-ig0-f170.google.com) (209.85.213.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 24 Jun 2014 07:08:51 +0000 Received: by mail-ig0-f170.google.com with SMTP id h15so4301581igd.5 for ; Tue, 24 Jun 2014 00:08:49 -0700 (PDT) X-Received: by 10.43.156.77 with SMTP id ll13mr26685243icc.59.1403593729524; Tue, 24 Jun 2014 00:08:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.20.169 with HTTP; Tue, 24 Jun 2014 00:08:29 -0700 (PDT) In-Reply-To: <53A82F8B.7080507@redhat.com> References: <831tuy2kzi.fsf@gnu.org> <83ioo91nnk.fsf@gnu.org> <8338fc1wed.fsf@gnu.org> <53983FFA.6020909@redhat.com> <53A82F8B.7080507@redhat.com> From: Mingjie Xing Date: Tue, 24 Jun 2014 07:08:00 -0000 Message-ID: Subject: Re: [patch] Share options between info and man page To: Pedro Alves Cc: Eli Zaretskii , gdb-patches@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00834.txt.bz2 2014-06-23 21:45 GMT+08:00 Pedro Alves : > > Should we re-define it as a macro under ifset man ? > > @ifset man > @macro t{text} > \text\ > @end macro > @end ifset > > (I don't actually know whether possible.) This does not work. Add a following command in texi2pod.pl can fix the problem: s/\@t\{([^\}]*)\}/$1/g; > Those three dashes are rendered as an em dash in texinfo: > > http://www.gnu.org/software/texinfo/manual/texinfo/html_node/Conventions.html > > I'd assume the man page should end up with \(em instead of literal ---. > > Should we have a macro for this too? > I think this is also what texi2pod.pl should do. Best regards, Mingjie