unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* auto-coding-function for LaTeX
@ 2004-11-09 20:41 Arne Jørgensen
  2004-11-11 12:59 ` Bug in widget-complete (was: auto-coding-function for LaTeX) Arne Jørgensen
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Arne Jørgensen @ 2004-11-09 20:41 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1133 bytes --]

Hello,

I have written a function (latex-auto-coding-function) that determines
a LaTeX files encoding from i.e. a

  \usepackage[latin1]{inputenc}

line (if it is used).

It uses an alist for mapping the LaTeX input encoding names to Emacs'
coding system names. The entries in the alist that I have commented
out are those standard input encoding names in LaTeX that there are no
emacs codings for (or those that I could not identify the coding
system of).

If you find it useful it can be added to Emacs (the papers I signed
say "emacs gnus" - I don't whether that is for emacs AND gnus or just
for gnus).

I'm not a trained elisp programmer so feel free to comment on or
change the code.

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 :-)

Kind regards,
-- 
Arne Jørgensen
Gammel Kongevej 7, 1. th., DK-1610 Copenhagen V, Denmark
mobile: +45 21 65 01 13
email: arne@arnested.dk, <http://arnested.dk/>


[-- Attachment #2: auto-coding-function for LaTeX --]
[-- Type: application/emacs-lisp, Size: 1772 bytes --]

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-12-07  0:53 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` auto-coding-function for LaTeX Juri Linkov
2004-11-11 22:50   ` 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

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).