]> git.eshelyaron.com Git - emacs.git/commitdiff
(define-ccl-program): Fset charset-id to charset-id-internal
authorKenichi Handa <handa@m17n.org>
Thu, 30 Jan 2003 02:27:52 +0000 (02:27 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 30 Jan 2003 02:27:52 +0000 (02:27 +0000)
temporarily.

lisp/international/ccl.el

index 2053b6364cb2d6eb0cf10ff022116945f9c93091..f56095f0d4660ba4f2ef6fa5b60c05f83754acdb 100644 (file)
@@ -1446,7 +1446,12 @@ MAP-IDs := MAP-ID ...
 MAP-SET := MAP-IDs | (MAP-IDs) MAP-SET
 MAP-ID := integer
 "
-  `(let ((prog ,(ccl-compile (eval ccl-program))))
+  `(let ((prog ,(unwind-protect
+                   (progn
+                     ;; To make ,(charset-id CHARSET) works well.
+                     (fset 'charset-id 'charset-id-internal)
+                     (ccl-compile (eval ccl-program)))
+                 (fmakunbound 'charset-id))))
      (defconst ,name prog ,doc)
      (put ',name 'ccl-program-idx (register-ccl-program ',name prog))
      nil))