summaryrefslogtreecommitdiff
path: root/lisp/case-table.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2001-12-16 03:45:57 +0000
committerRichard M. Stallman <rms@gnu.org>2001-12-16 03:45:57 +0000
commitb5cf8df800262751858adf058cb3e43a99a47e38 (patch)
tree13a77b952f7fcb08a0448719e9c06dc3df549a30 /lisp/case-table.el
parent4f102de230053d69d8d41765ce8c09acebbb679a (diff)
downloademacs-b5cf8df800262751858adf058cb3e43a99a47e38.tar.gz
(set-case-syntax-pair): Detect invalid calls and signal an error.
Diffstat (limited to 'lisp/case-table.el')
-rw-r--r--lisp/case-table.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/case-table.el b/lisp/case-table.el
index 265f9519689..f83123bf19f 100644
--- a/lisp/case-table.el
+++ b/lisp/case-table.el
@@ -103,6 +103,9 @@ This sets the entries for characters UC and LC in TABLE, which is a string
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)