all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: auto-coding-function for LaTeX
Date: Thu, 11 Nov 2004 23:59:42 +0200	[thread overview]
Message-ID: <87654coxm9.fsf@jurta.org> (raw)
In-Reply-To: <87u0ryah75.fsf@seamus.arnested.dk> (Arne Jørgensen's message of "Tue, 09 Nov 2004 21:41:18 +0100")

Arne Jørgensen <arne@arnested.dk> 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
http://www.jurta.org/emacs/

  parent reply	other threads:[~2004-11-11 21:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-09 20:41 auto-coding-function for LaTeX Arne Jørgensen
2004-11-11 12:59 ` Bug in widget-complete (was: auto-coding-function for LaTeX) Arne Jørgensen
2004-11-11 21:59 ` Juri Linkov [this message]
2004-11-11 22:50   ` auto-coding-function for LaTeX Arne Jørgensen
2004-11-11 23:56     ` Arne Jørgensen
2004-11-12  1:12       ` Reiner Steib
2004-11-12  6:44         ` Arne Jørgensen
2004-11-12 20:51           ` Reiner Steib
2004-11-12 21:07             ` Reiner Steib
2004-11-13 14:14       ` Juri Linkov
2004-11-13 14:47         ` David Kastrup
2004-11-13 16:38   ` Richard Stallman
2004-12-07  0:53 ` Arne Jørgensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87654coxm9.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.