XEmacs 21.2.39 "Millennium".
[chise/xemacs-chise.git.1] / lisp / mule / mule-coding.el
index 3880c18..0608850 100644 (file)
@@ -19,7 +19,7 @@
 ;; General Public License for more details.
 
 ;; You should have received a copy of the GNU General Public License
-;; along with XEmacs; see the file COPYING.  If not, write to the 
+;; along with XEmacs; see the file COPYING.  If not, write to the
 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 ;; Boston, MA 02111-1307, USA.
 
@@ -31,8 +31,7 @@
 
 (defun coding-system-force-on-output (coding-system register)
   "Return the 'force-on-output property of CODING-SYSTEM for the specified REGISTER."
-  (unless (integerp register)
-    (signal 'wrong-type-argument (list 'integerp register)))
+  (check-type register integer)
   (coding-system-property
    coding-system
    (case register
 ;; initialize the coding categories to something semi-reasonable
 ;; so that the remaining Lisp files can contain extended characters.
 ;; (They will be in ISO-7 format)
-
-(set-coding-priority-list '(iso-8-2 iso-8-designate iso-8-1
-                           iso-7 iso-lock-shift no-conversion))
+;; #### This list needs to be synched with the ones in mule-cmds.el.
+
+(set-coding-priority-list '(iso-7
+           no-conversion
+           ;; utf-8
+           iso-8-1
+           iso-8-2
+           iso-8-designate
+           iso-lock-shift
+           shift-jis
+           big5
+           ;; ucs-4
+           ))
 
 (set-coding-category-system 'iso-7 'iso-2022-7)
 (set-coding-category-system 'iso-8-designate 'ctext)
 (set-coding-category-system 'iso-lock-shift 'iso-2022-lock)
 (set-coding-category-system 'no-conversion 'no-conversion)
 
+(setq-default buffer-file-coding-system 'iso-2022-8)
+
 ;;; mule-coding.el ends here