From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: Texinfo XML support in Emacs Info browser Date: Sun, 03 Jun 2007 11:39:52 +0200 Message-ID: <87vee51imv.fsf@ambire.localdomain> References: <87r6ouot6c.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1180863634 30888 80.91.229.12 (3 Jun 2007 09:40:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 3 Jun 2007 09:40:34 +0000 (UTC) Cc: karl@gnu.org, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 03 11:40:33 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HumZW-0005Sq-Ho for ged-emacs-devel@m.gmane.org; Sun, 03 Jun 2007 11:40:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HumZV-0005fT-S2 for ged-emacs-devel@m.gmane.org; Sun, 03 Jun 2007 05:40:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HumZ0-0005Xc-J8 for emacs-devel@gnu.org; Sun, 03 Jun 2007 05:39:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HumYy-0005Wn-M3 for emacs-devel@gnu.org; Sun, 03 Jun 2007 05:39:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HumYy-0005Wi-Ht for emacs-devel@gnu.org; Sun, 03 Jun 2007 05:39:52 -0400 Original-Received: from smtp-out3.libero.it ([212.52.84.43]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HumYx-0005o8-4R; Sun, 03 Jun 2007 05:39:51 -0400 Original-Received: from localhost (172.31.0.52) by smtp-out3.libero.it (7.3.120) id 4611FE5E04190E43; Sun, 3 Jun 2007 11:39:48 +0200 X-Scanned: with antispam and antivirus automated system at libero.it Original-Received: from smtp-out1.libero.it ([172.31.0.37]) by localhost (asav-out11.libero.it [192.168.32.39]) (amavisd-new, port 10024) with ESMTP id UCS4fLtHp6Au; Sun, 3 Jun 2007 11:39:48 +0200 (CEST) Original-Received: from ambire.localdomain (151.21.33.102) by smtp-out1.libero.it (7.3.120) id 4611FC9104E45551; Sun, 3 Jun 2007 11:39:48 +0200 Original-Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1HumYy-0005VB-FU; Sun, 03 Jun 2007 11:39:52 +0200 In-Reply-To: <87r6ouot6c.fsf@jurta.org> (Juri Linkov's message of "Sun\, 03 Jun 2007 02\:03\:03 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:72106 Archived-At: () Juri Linkov () Sun, 03 Jun 2007 02:03:03 +0300 [info-xml.el] interesting. i had to modify `Info-xml-select-node' like so: ;; Add a new unique history item to full history list (let ((new-history (list Info-current-file Info-current-node))) (setq Info-history-list (cons new-history (delete new-history Info-history-list))) (setq Info-history-forward nil)) i think ad-hoc regexp-based approach is likely to be troublesome in the long run. so, question: since we have xml.el, why not build a tree immediately? one answer is that: well, makeinfo --xml output is not always valid. :-( e.g.: makeinfo --xml -o edb.info.xml edb.texi (xml-parse-file "edb.info.xml") => error (in edb.info.xml, element `detailedmenu' is not properly nested. this is seen using "makeinfo (GNU texinfo) 4.8".) thi