aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2003-01-15 05:57:31 +0000
committerKenichi Handa2003-01-15 05:57:31 +0000
commit850964c2bfcb53ed238defadd4ef3a625a0133e2 (patch)
tree6d015bfe09353b23db4ef0a9b6b115fcbb017d2e
parentbe25dab0a15be6c037c40eda2cda58cabe60dfe2 (diff)
downloademacs-850964c2bfcb53ed238defadd4ef3a625a0133e2.tar.gz
emacs-850964c2bfcb53ed238defadd4ef3a625a0133e2.zip
(optimize-char-coding-system-table): Optimize it.
-rw-r--r--lisp/international/mule.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index ed40b8f2152..909ba315b77 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -604,10 +604,11 @@ Elements which compare `equal' are modified to share the same list."
604 ;; reduced to ~1k. (`optimize-char-table' might win if 604 ;; reduced to ~1k. (`optimize-char-table' might win if
605 ;; permutations were eliminated, but that's probably a small 605 ;; permutations were eliminated, but that's probably a small
606 ;; effect and not easy to test.) 606 ;; effect and not easy to test.)
607 (let ((existing (car (member v cache)))) 607 (if v
608 (if existing 608 (let ((existing (car (member v cache))))
609 (aset char-coding-system-table k existing) 609 (if existing
610 (push v cache)))) 610 (aset char-coding-system-table k existing)
611 (push v cache)))))
611 char-coding-system-table)) 612 char-coding-system-table))
612 (optimize-char-table char-coding-system-table)) 613 (optimize-char-table char-coding-system-table))
613 614