diff lisp/mule/mule-coding.el @ 528:ef4d2466a29c

[xemacs-hg @ 2001-05-10 09:59:45 by ben] implement user-name-all-completions under Windows. xemacs.mak: need another lib (netapi32.lib) for user-name-all-completions. emacs.c: create new function force-debugging-signal (only when DEBUG_XEMACS) to breakpoint or abort to the debugger. mule\mule-coding.el, file-coding.c, file-coding.h, lisp.h: move coding-system-charset to lisp to avoid doc warning. autoload.el, packages.el, startup.el, update-elc-2.el, update-elc.el: Rewrite much of the bootstrapping process to be more robust, and in particular to rebuild the auto-autoloads and custom-loads files no matter what state (including missing) they're currently in. xemacs.mak: remove autoload-building target. Makefile.in.in: remove autoload targets.
author ben
date Thu, 10 May 2001 09:59:57 +0000
parents 7039e6323819
children 943eaba38521
line wrap: on
line diff
--- a/lisp/mule/mule-coding.el	Thu May 10 08:09:23 2001 +0000
+++ b/lisp/mule/mule-coding.el	Thu May 10 09:59:57 2001 +0000
@@ -61,6 +61,16 @@
   "Return the 'lock-shift property of CODING-SYSTEM."
   (coding-system-property coding-system 'lock-shift))
 
+(defun coding-system-charset (coding-system register)
+"Return the charset initially designated to REGISTER in CODING-SYSTEM.
+The allowable range of REGISTER is 0 through 3."
+  (if (or (< register 0) (> register 3))
+      (error 'args-out-of-range "coding-system-charset REGISTER" register 0 3))
+  (coding-system-property coding-system (nth register '(charset-g0
+							charset-g1
+							charset-g2
+							charset-g3))))
+
 ;;(defun coding-system-use-japanese-jisx0201-roman (coding-system)
 ;;  "Return the 'use-japanese-jisx0201-roman property of CODING-SYSTEM."
 ;;  (coding-system-property coding-system 'use-japanese-jisx0201-roman))