From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: auto-coding-function for LaTeX Date: Sat, 13 Nov 2004 15:47:46 +0100 Message-ID: References: <87u0ryah75.fsf@seamus.arnested.dk> <87654coxm9.fsf@jurta.org> <87654ct2zi.fsf@seamus.arnested.dk> <87y8h8rlbs.fsf@seamus.arnested.dk> <8765496dk4.fsf@jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1100357307 17352 80.91.229.6 (13 Nov 2004 14:48:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Nov 2004 14:48:27 +0000 (UTC) Cc: emacs-devel@gnu.org, =?iso-8859-1?q?Arne_J=F8rgensen?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 13 15:48:11 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CSzCF-0005mL-00 for ; Sat, 13 Nov 2004 15:48:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSzKq-000156-Mg for ged-emacs-devel@m.gmane.org; Sat, 13 Nov 2004 09:57:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CSzKh-00013r-1R for emacs-devel@gnu.org; Sat, 13 Nov 2004 09:56:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CSzKg-00013e-G7 for emacs-devel@gnu.org; Sat, 13 Nov 2004 09:56:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSzKg-00013b-Cy for emacs-devel@gnu.org; Sat, 13 Nov 2004 09:56:54 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CSzBs-00011F-8A for emacs-devel@gnu.org; Sat, 13 Nov 2004 09:47:48 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1CSzB7-0006Ip-F5; Sat, 13 Nov 2004 09:47:01 -0500 Original-To: Juri Linkov In-Reply-To: <8765496dk4.fsf@jurta.org> (Juri Linkov's message of "Sat, 13 Nov 2004 16:14:51 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) 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: main.gmane.org gmane.emacs.devel:29797 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29797 Juri Linkov writes: > Arne J=F8rgensen writes: >> I look a bit more in to it. And it actually seems more reasonable to >> put the function (slightly changed) into `file-coding-system-alist'. >> [...] >> (add-to-list 'file-coding-system-alist '("\\.tex\\|\\.ltx\\'" . latex-fi= nd-file-coding-system)) > > I think this is not the most right thing to do since there may > be LaTeX file extensions other than .tex and .ltx. The standard value > of `auto-mode-alist' has also .sty, .cl[so], .bbl as file extensions > corresponding to latex-mode. And users can add own mappings to > `auto-mode-alist' or use `-*- mode:latex -*-' headers. > In that case `file-coding-system-alist' wouldn't work. In all of the mentioned cases, the files are not supposed to carry an inputenc declaration. So this is not a particularly compelling reason. However, we also have, say, .dtx and .drv files. --=20 David Kastrup, Kriemhildstr. 15, 44793 Bochum