comparison lisp/case-table.el @ 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 253f761ad37b
children 695cf19ef79e d7ddb3e565de 40dcdefd77b0
comparison
equal deleted inserted replaced
42061:0332665b9445 42062:6254fdd1bbb7
101 "Make characters UC and LC a pair of inter-case-converting letters. 101 "Make characters UC and LC a pair of inter-case-converting letters.
102 This sets the entries for characters UC and LC in TABLE, which is a string 102 This sets the entries for characters UC and LC in TABLE, which is a string
103 that will be used as the downcase part of a case table. 103 that will be used as the downcase part of a case table.
104 It also modifies `standard-syntax-table' to give them the syntax of 104 It also modifies `standard-syntax-table' to give them the syntax of
105 word constituents." 105 word constituents."
106 (unless (= (charset-bytes (char-charset uc))
107 (charset-bytes (char-charset lc)))
108 (error "Can't casify chars with different `charset-bytes' values"))
106 (setq uc (set-case-syntax-1 uc)) 109 (setq uc (set-case-syntax-1 uc))
107 (setq lc (set-case-syntax-1 lc)) 110 (setq lc (set-case-syntax-1 lc))
108 (aset table uc lc) 111 (aset table uc lc)
109 (aset table lc lc) 112 (aset table lc lc)
110 (set-char-table-extra-slot table 0 nil) 113 (set-char-table-extra-slot table 0 nil)