[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: auto-coding-function for LaTeX

From: David Kastrup
Subject: Re: auto-coding-function for LaTeX
Date: Sat, 13 Nov 2004 15:47:46 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

Juri Linkov <address@hidden> writes:

> Arne Jørgensen <address@hidden> 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-find-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.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

[Prev in Thread] Current Thread [Next in Thread]