emacs/lisp/language/utf-8-lang.el

58 lines
1.9 KiB
EmacsLisp
Raw Normal View History

;;; utf-8-lang.el --- generic UTF-8 language environment -*- no-byte-compile: t -*-
2001-12-15 16:24:25 +00:00
2008-01-07 01:33:37 +00:00
;; Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
2006-12-10 00:31:06 +00:00
;; Free Software Foundation, Inc.
2001-12-15 16:24:25 +00:00
;; Author: Dave Love <fx@gnu.org>
;; Keywords: i18n
2001-12-25 11:10:03 +00:00
;; This file is part of GNU Emacs.
2002-05-19 01:38:37 +00:00
;; GNU Emacs is free software; you can redistribute it and/or modify
2001-12-15 16:24:25 +00:00
;; it under the terms of the GNU General Public License as published by
2007-07-25 04:50:21 +00:00
;; the Free Software Foundation; either version 3, or (at your option)
2001-12-15 16:24:25 +00:00
;; any later version.
2002-05-19 01:38:37 +00:00
;; GNU Emacs is distributed in the hope that it will be useful,
2001-12-15 16:24:25 +00:00
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
2002-05-19 01:38:37 +00:00
;; along with GNU Emacs; see the file COPYING. If not, write to the
2005-07-04 17:55:18 +00:00
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
2001-12-15 16:24:25 +00:00
;;; Commentary:
;;; Code:
(set-language-info-alist
"UTF-8" `((coding-system utf-8)
(coding-priority utf-8)
;; Presumably not relevant now.
;; (setup-function
;; . (lambda ()
;; ;; Use Unicode font under Windows. Jason Rumney fecit.
;; (if (and (fboundp 'w32-add-charset-info)
;; (not (boundp 'w32-unicode-charset-defined)))
;; (w32-add-charset-info "iso10646-1" 'w32-charset-ansi t))))
2001-12-15 16:24:25 +00:00
;; Is this appropriate?
;; (exit-function
;; . (lambda ()
;; (if (and (fboundp 'w32-add-charset-info)
;; (not (boundp 'w32-unicode-charset-defined)))
;; (setq w32-charset-info-alist
;; (delete (assoc "iso10646-1")
;; w32-charset-info-alist)))))
(input-method . "rfc1345") ; maybe not the best choice
(documentation . "\
This language environment is a generic one for the Unicode character set
encoded in UTF-8."))
2001-12-15 16:24:25 +00:00
nil)
(provide 'utf-8-lang)
2004-04-16 12:51:06 +00:00
;; arch-tag: dfa339e1-296f-4b1e-9fe8-2b65279ec813
2001-12-15 16:24:25 +00:00
;;; utf-8-lang.el ends here