From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: [help-texinfo] Re: coding systems vs. info files Date: Mon, 13 Feb 2006 19:48:29 +0200 Organization: JURTA Message-ID: <87u0b3i2gj.fsf@jurta.org> References: <200602110013.k1B0DRH23757@f7.net> <87y80iod9m.fsf@jurta.org> <87wtg02qxr.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139855036 26849 80.91.229.2 (13 Feb 2006 18:23:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2006 18:23:56 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 13 19:23:54 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 1F8iM6-00055m-UC for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2006 19:23:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8iM6-00087U-DV for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2006 13:23:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F8iLi-00086i-TS for emacs-devel@gnu.org; Mon, 13 Feb 2006 13:22:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F8iLh-00085l-2d for emacs-devel@gnu.org; Mon, 13 Feb 2006 13:22:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8iLg-00085i-US for emacs-devel@gnu.org; Mon, 13 Feb 2006 13:22:56 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F8iQB-0002kX-SR for emacs-devel@gnu.org; Mon, 13 Feb 2006 13:27:36 -0500 Original-Received: from mail.neti.ee (80-235-43-67-dsl.mus.estpak.ee [80.235.43.67]) by Relayhost1.neti.ee (Postfix) with ESMTP id 1A45B4E33; Mon, 13 Feb 2006 20:22:47 +0200 (EET) Original-To: Kevin Ryde In-Reply-To: <87wtg02qxr.fsf@zip.com.au> (Kevin Ryde's message of "Mon, 13 Feb 2006 08:44:00 +1100") 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:50471 Archived-At: >> it is easy to add @documentencoding to the source Texinfo file. > > I suppose it'd be nice if emacs looked for that to know the file > coding. Another entry for `auto-coding-functions' I guess. It would be useless to scan every visited file for @documentencoding after adding a function to find @documentencoding to the default value of `auto-coding-functions'. Other similar modes use the variable `file-coding-system-alist', with an entry like ("\\.\\(tex\\|ltx\\|dtx\\|drv\\)\\'" . latexenc-find-file-coding-system) But this is not ideal either. Ideally, the coding-guessing function should be mode-dependent, not filename-dependent. But it seems currently it's not possible to do this, and this should wait until the next release. -- Juri Linkov http://www.jurta.org/emacs/