aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2002-12-18 23:19:01 +0000
committerDave Love2002-12-18 23:19:01 +0000
commitc45bb3b1174811090f907bdda4ff257546f55815 (patch)
treefd9cc1e93453f077f231e4f4e1e38f752ac1eb7d
parent4f0992b35b98560fb180a462b16ffdf536743f29 (diff)
downloademacs-c45bb3b1174811090f907bdda4ff257546f55815.tar.gz
emacs-c45bb3b1174811090f907bdda4ff257546f55815.zip
(ucs-fragment-8859): Don't modify
char-coding-system-table elements destructively. Use optimize-char-coding-system-table.
-rw-r--r--lisp/international/ucs-tables.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/international/ucs-tables.el b/lisp/international/ucs-tables.el
index 8f0f1e1e36f..01ec4ec0873 100644
--- a/lisp/international/ucs-tables.el
+++ b/lisp/international/ucs-tables.el
@@ -1232,9 +1232,9 @@ unification on input operations."
1232 (if (and (>= key 128) val 1232 (if (and (>= key 128) val
1233 (not (aref safe key))) 1233 (not (aref safe key)))
1234 (aset char-coding-system-table key 1234 (aset char-coding-system-table key
1235 (delq 'mule-utf-8 1235 (remq 'mule-utf-8
1236 (delq 'mule-utf-16-le 1236 (remq 'mule-utf-16-le
1237 (delq 'mule-utf-16-be 1237 (remq 'mule-utf-16-be
1238 (aref char-coding-system-table key))))))) 1238 (aref char-coding-system-table key)))))))
1239 ucs-mule-to-mule-unicode) 1239 ucs-mule-to-mule-unicode)
1240 1240
@@ -1260,11 +1260,11 @@ unification on input operations."
1260 (if (and (>= key 128) val) 1260 (if (and (>= key 128) val)
1261 (let ((codings (aref char-coding-system-table key))) 1261 (let ((codings (aref char-coding-system-table key)))
1262 (aset char-coding-system-table key 1262 (aset char-coding-system-table key
1263 (delq coding-system codings))))) 1263 (remq coding-system codings)))))
1264 (char-table-parent safe)) 1264 (char-table-parent safe))
1265 (set-char-table-parent safe nil)) 1265 (set-char-table-parent safe nil))
1266 (coding-system-put coding-system 'translation-table-for-encode nil))) 1266 (coding-system-put coding-system 'translation-table-for-encode nil)))
1267 (optimize-char-table char-coding-system-table) 1267 (optimize-char-coding-system-table)
1268 (remove-hook 'minibuffer-setup-hook 'ucs-minibuffer-setup))) 1268 (remove-hook 'minibuffer-setup-hook 'ucs-minibuffer-setup)))
1269 1269
1270(defun ucs-insert (arg) 1270(defun ucs-insert (arg)