diff lisp/mule/mule-coding.el @ 4103:b4f4e0cc90f1

[xemacs-hg @ 2007-08-07 23:08:47 by aidan] Eliminate byte compiler warnings, give nicer errors in the absence of packages.
author aidan
date Tue, 07 Aug 2007 23:09:22 +0000
parents 751ae075e76e
children edb00a8b4eff
line wrap: on
line diff
--- a/lisp/mule/mule-coding.el	Tue Aug 07 21:51:12 2007 +0000
+++ b/lisp/mule/mule-coding.el	Tue Aug 07 23:09:22 2007 +0000
@@ -630,7 +630,7 @@
 	    (or (plist-get props 'encode-failure-octet) (char-to-int ?~)))
 	   (aliases (plist-get props 'aliases))
 	   encode-program decode-program
-	   decode-table encode-table res)
+	   decode-table encode-table)
 
       ;; Some sanity checking. 
       (check-argument-range encode-failure-octet 0 #xFF)
@@ -652,24 +652,27 @@
 
       ;; And return the generated code. 
       `(let ((encode-table-sym (gentemp (format "%s-encode-table" ',name)))
-             result)
+             ;; The case-fold-search bind shouldn't be necessary. If I take
+             ;; it, out, though, I get:
+             ;; 
+             ;; (invalid-read-syntax "Multiply defined symbol label" 1)
+             ;;
+             ;; when the file is byte compiled.
+             (case-fold-search t))
         (define-translation-hash-table encode-table-sym ,encode-table)
-        (setq result 
-              (make-coding-system 
-               ',name 'ccl ,description
-               (plist-put (plist-put ',props 'decode 
-                                     ,(apply #'vector decode-program))
-                          'encode 
-                          (apply #'vector
-                                 (nsublis
-                                  (list (cons
-                                         'encode-table-sym
-                                         (symbol-value 'encode-table-sym)))
-                                  ',encode-program)))))
+        (make-coding-system 
+         ',name 'ccl ,description
+         (plist-put (plist-put ',props 'decode 
+                               ,(apply #'vector decode-program))
+                    'encode
+                    (apply #'vector
+                           (nsublis
+                            (list (cons
+                                   'encode-table-sym
+                                   (symbol-value 'encode-table-sym)))
+                            ',encode-program))))
         (coding-system-put ',name 'category 'iso-8-1)
         ,(macroexpand `(loop for alias in ',aliases
                         do (define-coding-system-alias alias
                              ',name)))
-        'result))))
-    
-  
\ No newline at end of file
+        (find-coding-system ',name)))))