X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/9899d01a0ccec166e04caa60657a44e614be50cd..7cef3569a3d872ea5be07a529b68910bf1d8b790:/lisp/international/latexenc.el diff --git a/lisp/international/latexenc.el b/lisp/international/latexenc.el index 57013b5953..10d0a5bbd3 100644 --- a/lisp/international/latexenc.el +++ b/lisp/international/latexenc.el @@ -1,16 +1,16 @@ ;;; latexenc.el --- guess correct coding system in LaTeX files -*-coding: iso-2022-7bit -*- -;; Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. +;; Copyright (C) 2005-2012 Free Software Foundation, Inc. ;; Author: Arne J,Ax(Brgensen ;; Keywords: mule, coding system, latex ;; This file is part of GNU Emacs. -;; GNU Emacs is free software; you can redistribute it and/or modify +;; GNU Emacs is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. ;; GNU Emacs is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -18,9 +18,7 @@ ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to the -;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301, USA. +;; along with GNU Emacs. If not, see . ;;; Commentary: @@ -53,6 +51,7 @@ ;;;###autoload (defcustom latex-inputenc-coding-alist + (purecopy '(("ansinew" . windows-1252) ; MS Windows ANSI encoding, extension of Latin-1 ("applemac" . mac-roman) ("ascii" . us-ascii) @@ -65,8 +64,6 @@ ("cp852" . cp852) ; IBM code page 852 ("cp858" . cp858) ; IBM code page 850 but with a euro symbol ("cp865" . cp865) ; IBM code page 865 - ;; The DECMultinational charaterset used by the OpenVMS system - ;; ("decmulti" . undecided) ("latin1" . iso-8859-1) ("latin2" . iso-8859-2) ("latin3" . iso-8859-3) @@ -77,7 +74,7 @@ ;; ("macce" . undecided) ; Apple Central European ("next" . next) ; The Next encoding ("utf8" . utf-8) - ("utf8x" . utf-8)) ; used by the Unicode LaTeX package + ("utf8x" . utf-8))) ; used by the Unicode LaTeX package "Mapping from LaTeX encodings in \"inputenc.sty\" to Emacs coding systems. LaTeX encodings are specified with \"\\usepackage[encoding]{inputenc}\". Used by the function `latexenc-find-file-coding-system'." @@ -181,12 +178,12 @@ coding system names is determined from `latex-inputenc-coding-alist'." (find-file-noselect latexenc-main-file t))) (coding-system-base ;Disregard the EOL part of the CS. (with-current-buffer latexenc-main-buffer - (or coding-system-for-write buffer-file-coding-system)))) + (or coding-system-for-write buffer-file-coding-system + 'undecided)))) 'undecided)))) 'undecided)) (provide 'latexenc) -;; arch-tag: f971bc3e-1fec-4609-8f2f-73dd41ab22e1 ;;; latexenc.el ends here