aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2002-03-01 01:59:32 +0000
committerKenichi Handa2002-03-01 01:59:32 +0000
commit5ee54361ba6d8dcb204f4d00733650422129ee42 (patch)
tree00cf8ea517aec13c75603d0935fd846078bc09a8
parentcd2086e4c3affe044c71034430c3be59aefebc04 (diff)
downloademacs-5ee54361ba6d8dcb204f4d00733650422129ee42.tar.gz
emacs-5ee54361ba6d8dcb204f4d00733650422129ee42.zip
(set-case-syntax-offset): Variable deleted.
(set-case-syntax-1): Function deleted. Callers changed. (set-case-syntax-delims): Don't check byte length of characters.
-rw-r--r--lisp/case-table.el16
1 files changed, 0 insertions, 16 deletions
diff --git a/lisp/case-table.el b/lisp/case-table.el
index f83123bf19f..00ea12b06fe 100644
--- a/lisp/case-table.el
+++ b/lisp/case-table.el
@@ -34,8 +34,6 @@
34 34
35;;; Code: 35;;; Code:
36 36
37(defvar set-case-syntax-offset 0)
38
39(defvar set-case-syntax-set-multibyte nil) 37(defvar set-case-syntax-set-multibyte nil)
40 38
41(defun describe-buffer-case-table () 39(defun describe-buffer-case-table ()
@@ -71,20 +69,12 @@
71 (set-char-table-extra-slot copy 2 nil) 69 (set-char-table-extra-slot copy 2 nil)
72 copy)) 70 copy))
73 71
74(defsubst set-case-syntax-1 (char)
75 "Offset CHAR by `set-case-syntax-offset' if CHAR is a non-ASCII 8-bit char."
76 (if (and (>= char 128) (< char 256))
77 (+ char set-case-syntax-offset)
78 char))
79
80(defun set-case-syntax-delims (l r table) 72(defun set-case-syntax-delims (l r table)
81 "Make characters L and R a matching pair of non-case-converting delimiters. 73 "Make characters L and R a matching pair of non-case-converting delimiters.
82This sets the entries for L and R in TABLE, which is a string 74This sets the entries for L and R in TABLE, which is a string
83that will be used as the downcase part of a case table. 75that will be used as the downcase part of a case table.
84It also modifies `standard-syntax-table' to 76It also modifies `standard-syntax-table' to
85indicate left and right delimiters." 77indicate left and right delimiters."
86 (setq l (set-case-syntax-1 l))
87 (setq r (set-case-syntax-1 r))
88 (aset table l l) 78 (aset table l l)
89 (aset table r r) 79 (aset table r r)
90 ;; Clear out the extra slots so that they will be 80 ;; Clear out the extra slots so that they will be
@@ -103,11 +93,6 @@ This sets the entries for characters UC and LC in TABLE, which is a string
103that will be used as the downcase part of a case table. 93that will be used as the downcase part of a case table.
104It also modifies `standard-syntax-table' to give them the syntax of 94It also modifies `standard-syntax-table' to give them the syntax of
105word constituents." 95word 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"))
109 (setq uc (set-case-syntax-1 uc))
110 (setq lc (set-case-syntax-1 lc))
111 (aset table uc lc) 96 (aset table uc lc)
112 (aset table lc lc) 97 (aset table lc lc)
113 (set-char-table-extra-slot table 0 nil) 98 (set-char-table-extra-slot table 0 nil)
@@ -122,7 +107,6 @@ This sets the entry for character C in TABLE, which is a string
122that will be used as the downcase part of a case table. 107that will be used as the downcase part of a case table.
123It also modifies `standard-syntax-table'. 108It also modifies `standard-syntax-table'.
124SYNTAX should be \" \", \"w\", \".\" or \"_\"." 109SYNTAX should be \" \", \"w\", \".\" or \"_\"."
125 (setq c (set-case-syntax-1 c))
126 (aset table c c) 110 (aset table c c)
127 (set-char-table-extra-slot table 0 nil) 111 (set-char-table-extra-slot table 0 nil)
128 (set-char-table-extra-slot table 1 nil) 112 (set-char-table-extra-slot table 1 nil)