[Top][All Lists]

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

Re: auto-coding-function for LaTeX

From: Juri Linkov
Subject: Re: auto-coding-function for LaTeX
Date: Thu, 11 Nov 2004 23:59:42 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Arne Jørgensen <address@hidden> writes:
> If included it should probably be added to mule.el. I'm don't know
> whether the latex-auto-coding-function should be added to
> auto-coding-functions by default (sooner or later there will be a lot
> of functions in there). I know it should be in my
> auto-coding-functions though :-)

I think there should be a new variable for "mode to auto-coding-function"
mapping to be able to define

    (latex-mode . latex-auto-coding-function).

And the fact that currently `auto-coding-functions' contains by default
`(sgml-xml-auto-coding-function sgml-html-meta-auto-coding-function)'
doesn't seem right.  They are called for every buffer, not just HTML
and XML.

Thanks to the new variable `magic-mode-alist' now it is possible
to set SGML and HTML major modes depending on buffer contents.
So these functions could be added to "mode to auto-coding-function"
mapping to make them mode-dependent:

    (xml-mode . sgml-xml-auto-coding-function)
    (html-mode . sgml-html-meta-auto-coding-function)

instead of adding them to the default of `auto-coding-functions'.

Juri Linkov

reply via email to

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