From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel,gmane.comp.tex.texinfo.general Subject: Re: [help-texinfo] Re: coding systems vs. info files Date: Sat, 11 Feb 2006 03:11:33 +0200 Organization: JURTA Message-ID: <87y80iod9m.fsf@jurta.org> References: <200602110013.k1B0DRH23757@f7.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139630427 2665 80.91.229.2 (11 Feb 2006 04:00:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 11 Feb 2006 04:00:27 +0000 (UTC) Cc: help-texinfo@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 11 05:00:24 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F7lvr-0006Fi-IA for ged-emacs-devel@m.gmane.org; Sat, 11 Feb 2006 05:00:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7lvr-0001fO-2p for ged-emacs-devel@m.gmane.org; Fri, 10 Feb 2006 23:00:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F7lvO-0001eV-RD for emacs-devel@gnu.org; Fri, 10 Feb 2006 22:59:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F7lvN-0001eJ-Bj for emacs-devel@gnu.org; Fri, 10 Feb 2006 22:59:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7lvN-0001eF-7F; Fri, 10 Feb 2006 22:59:53 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F7lzH-0000Un-BJ; Fri, 10 Feb 2006 23:03:55 -0500 Original-Received: from mail.neti.ee (80-235-40-212-dsl.mus.estpak.ee [80.235.40.212]) by Relayhost1.neti.ee (Postfix) with ESMTP id DB9153C9F; Sat, 11 Feb 2006 05:59:50 +0200 (EET) Original-To: karl@freefriends.org (Karl Berry) In-Reply-To: <200602110013.k1B0DRH23757@f7.net> (Karl Berry's message of "Fri, 10 Feb 2006 18:13:27 -0600") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:50354 gmane.comp.tex.texinfo.general:783 Archived-At: > the `Local Variables' section too far from the end of the Info file, > so Emacs can't find it. > > Because the tag table is huge, I would guess? Or is there some > other reason? Yes, the reason is that makeinfo adds the `Local Variables' section (with the `coding:' tag) before the Info tag table, and on file reading Emacs looks for this sections only within 3000 characters from the end of the file. > Can someone point me to the problematic Texinfo file? The file in question is the Emacs FAQ from Emacs CVS. Its tag table is not too huge, but still larger than the 3000 limit. > BTW, Texinfo has @documentlanguage and @documentencoding commands. It > doesn't try to "guess" anything. The coding: tag reflects the > @documentencoding. If there is no @documentencoding, there will be no > coding: tag. I don't think it has any way of knowing what encoding the > translation for language XX used. If there is no @documentencoding, makeinfo could look for the `coding:' tag in the first lines or in the `Local Variables' section of the source Texinfo file, and copy it to the Info output file. For instance, the Emacs FAQ source file faq.texi has the `coding:' tag, but no @documentencoding, and makeinfo doesn't try to read it. However, this is a minor problem because it is easy to add @documentencoding to the source Texinfo file. The main problem is that given the @documentencoding in the source file, makeinfo writes the `coding:' tag before the tag table in the Info output file, and Emacs can't find it. -- Juri Linkov http://www.jurta.org/emacs/