changeset 42062:6254fdd1bbb7

(set-case-syntax-pair): Detect invalid calls and signal an error.
author Richard M. Stallman <rms@gnu.org>
date Sun, 16 Dec 2001 03:45:57 +0000
parents 0332665b9445
children 12577e136b14
files lisp/case-table.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/case-table.el	Sun Dec 16 03:45:30 2001 +0000
+++ b/lisp/case-table.el	Sun Dec 16 03:45:57 2001 +0000
@@ -103,6 +103,9 @@
 that will be used as the downcase part of a case table.
 It also modifies `standard-syntax-table' to give them the syntax of
 word constituents."
+  (unless (= (charset-bytes (char-charset uc))
+	     (charset-bytes (char-charset lc)))
+    (error "Can't casify chars with different `charset-bytes' values"))
   (setq uc (set-case-syntax-1 uc))
   (setq lc (set-case-syntax-1 lc))
   (aset table uc lc)