aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2002-10-05 18:59:25 +0000
committerDave Love2002-10-05 18:59:25 +0000
commit25c358677ca9e9696a35c0b897edbf371da1edbf (patch)
treed4093962dd7de67e456d741681b41102a9a726f1
parent1bb371eee82eb56fda0f42027ac478ef095eb815 (diff)
downloademacs-25c358677ca9e9696a35c0b897edbf371da1edbf.tar.gz
emacs-25c358677ca9e9696a35c0b897edbf371da1edbf.zip
(set-case-syntax-charset, set-case-syntax-1)
(set-case-syntax-delims, set-case-syntax-pair, set-case-syntax): Undo last changes.
-rw-r--r--lisp/case-table.el15
1 files changed, 0 insertions, 15 deletions
diff --git a/lisp/case-table.el b/lisp/case-table.el
index 0c411dab7a5..1897ef0aec1 100644
--- a/lisp/case-table.el
+++ b/lisp/case-table.el
@@ -27,10 +27,6 @@
27 27
28;;; Code: 28;;; Code:
29 29
30;; Temporary workaround for loading latin-X.el. They must bind this
31;; variable to a charset to convert code points to characters.
32(defvar set-case-syntax-charset nil)
33
34(defun describe-buffer-case-table () 30(defun describe-buffer-case-table ()
35 "Describe the case table of the current buffer." 31 "Describe the case table of the current buffer."
36 (interactive) 32 (interactive)
@@ -66,20 +62,12 @@
66 (set-char-table-extra-slot copy 2 nil) 62 (set-char-table-extra-slot copy 2 nil)
67 copy)) 63 copy))
68 64
69(defun set-case-syntax-1 (code)
70 (if (and (charsetp set-case-syntax-charset)
71 (< code 256))
72 (decode-char set-case-syntax-charset code)
73 code))
74
75(defun set-case-syntax-delims (l r table) 65(defun set-case-syntax-delims (l r table)
76 "Make characters L and R a matching pair of non-case-converting delimiters. 66 "Make characters L and R a matching pair of non-case-converting delimiters.
77This sets the entries for L and R in TABLE, which is a string 67This sets the entries for L and R in TABLE, which is a string
78that will be used as the downcase part of a case table. 68that will be used as the downcase part of a case table.
79It also modifies `standard-syntax-table' to 69It also modifies `standard-syntax-table' to
80indicate left and right delimiters." 70indicate left and right delimiters."
81 (setq l (set-case-syntax-1 l))
82 (setq r (set-case-syntax-1 r))
83 (aset table l l) 71 (aset table l l)
84 (aset table r r) 72 (aset table r r)
85 ;; Clear out the extra slots so that they will be 73 ;; Clear out the extra slots so that they will be
@@ -98,8 +86,6 @@ This sets the entries for characters UC and LC in TABLE, which is a string
98that will be used as the downcase part of a case table. 86that will be used as the downcase part of a case table.
99It also modifies `standard-syntax-table' to give them the syntax of 87It also modifies `standard-syntax-table' to give them the syntax of
100word constituents." 88word constituents."
101 (setq uc (set-case-syntax-1 uc))
102 (setq lc (set-case-syntax-1 lc))
103 (aset table uc lc) 89 (aset table uc lc)
104 (aset table lc lc) 90 (aset table lc lc)
105 (set-char-table-extra-slot table 0 nil) 91 (set-char-table-extra-slot table 0 nil)
@@ -114,7 +100,6 @@ This sets the entry for character C in TABLE, which is a string
114that will be used as the downcase part of a case table. 100that will be used as the downcase part of a case table.
115It also modifies `standard-syntax-table'. 101It also modifies `standard-syntax-table'.
116SYNTAX should be \" \", \"w\", \".\" or \"_\"." 102SYNTAX should be \" \", \"w\", \".\" or \"_\"."
117 (setq c (set-case-syntax-1 c))
118 (aset table c c) 103 (aset table c c)
119 (set-char-table-extra-slot table 0 nil) 104 (set-char-table-extra-slot table 0 nil)
120 (set-char-table-extra-slot table 1 nil) 105 (set-char-table-extra-slot table 1 nil)