From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alper Ersoy Newsgroups: gmane.emacs.devel Subject: Re: Changes to Texinfo DTD Date: Sat, 13 Dec 2003 13:13:59 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20031213111359.GA29912@dirtyweb.penguinpowered.com> References: <200312041606.hB4G6Rg11361@f7.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="RnlQjJ0d97Da+TV1" X-Trace: sea.gmane.org 1071314659 26694 80.91.224.253 (13 Dec 2003 11:24:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Dec 2003 11:24:19 +0000 (UTC) Cc: epameinondas@gmx.de, juri@jurta.org, nferrier@tapsellferrier.co.uk, bob@rattlesnake.com, eliz@elta.co.il, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Dec 13 12:24:15 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AV7sd-00033V-00 for ; Sat, 13 Dec 2003 12:24:15 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AV7sd-0005bF-00 for ; Sat, 13 Dec 2003 12:24:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AV8j8-0003Kq-6E for emacs-devel@quimby.gnus.org; Sat, 13 Dec 2003 07:18:30 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AV8hr-00031v-Of for emacs-devel@gnu.org; Sat, 13 Dec 2003 07:17:11 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AV8h1-0002HQ-2J for emacs-devel@gnu.org; Sat, 13 Dec 2003 07:16:50 -0500 Original-Received: from [212.253.32.33] (helo=dirtyweb.penguinpowered.com) by monty-python.gnu.org with smtp (Exim 4.24) id 1AV8gT-0001iN-2X for emacs-devel@gnu.org; Sat, 13 Dec 2003 07:15:45 -0500 Original-Received: (qmail 29974 invoked by uid 500); 13 Dec 2003 11:13:59 -0000 Original-To: Karl Berry Content-Disposition: inline In-Reply-To: <200312041606.hB4G6Rg11361@f7.net> User-Agent: Mutt/1.4.1i X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:18667 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18667 --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, Karl Berry: > > [For testing this extensively, it would be nice if "makeinfo > > my-texinfo-source.texi" would produce XML instead of info format, > > dependend on the value of some environment variable. I just committed this one. Patch attached to this mail. -- Alper Ersoy --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="envvar.diff" Index: makeinfo/makeinfo.c =================================================================== RCS file: /cvsroot/texinfo/texinfo/makeinfo/makeinfo.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -p -r1.2 -r1.3 --- makeinfo/makeinfo.c 2003/12/13 11:00:42 1.2 +++ makeinfo/makeinfo.c 2003/12/13 11:11:56 1.3 @@ -1,5 +1,5 @@ /* makeinfo -- convert Texinfo source into other formats. - $Id: makeinfo.c,v 1.2 2003/12/13 11:00:42 dirt Exp $ + $Id: makeinfo.c,v 1.3 2003/12/13 11:11:56 dirt Exp $ Copyright (C) 1987, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. @@ -739,6 +739,17 @@ For more information about these matters usage (1); break; } + } + + /* If TEXINFO_XML_OUTPUT envvar is set, we default to XML output. */ + if (getenv ("TEXINFO_XML_OUTPUT") != NULL + && !STREQ (getenv ("TEXINFO_XML_OUTPUT"), "0")) + { + splitting = 0; + html = 0; + docbook = 0; + xml = 1; + process_xml = 1; } if (macro_expansion_output_stream) --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel --RnlQjJ0d97Da+TV1--