aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-17 18:40:38 +0000
committerRichard M. Stallman1997-05-17 18:40:38 +0000
commitcc1cdd74d5ec7ab5cc7d65d2e169a26802ef6b71 (patch)
tree9a1dec06bf8461b03e46b590a1f658f2c7c8f453
parenta580e88443042c94bbafcd5246fd6fceb2785b15 (diff)
downloademacs-cc1cdd74d5ec7ab5cc7d65d2e169a26802ef6b71.tar.gz
emacs-cc1cdd74d5ec7ab5cc7d65d2e169a26802ef6b71.zip
(set-case-syntax-offset): New variable.
(set-case-syntax-delims): Obey set-case-syntax-offset. (set-case-syntax-pair, set-case-syntax): Likewise.
-rw-r--r--lisp/case-table.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/case-table.el b/lisp/case-table.el
index 71b9b76823c..d34cdc37db9 100644
--- a/lisp/case-table.el
+++ b/lisp/case-table.el
@@ -34,6 +34,8 @@
34 34
35;;; Code: 35;;; Code:
36 36
37(defvar set-case-syntax-offset 0)
38
37;;;###autoload 39;;;###autoload
38(defun describe-buffer-case-table () 40(defun describe-buffer-case-table ()
39 "Describe the case table of the current buffer." 41 "Describe the case table of the current buffer."
@@ -76,6 +78,8 @@ This sets the entries for L and R in TABLE, which is a string
76that will be used as the downcase part of a case table. 78that will be used as the downcase part of a case table.
77It also modifies `standard-syntax-table' to 79It also modifies `standard-syntax-table' to
78indicate left and right delimiters." 80indicate left and right delimiters."
81 (setq l (+ set-case-syntax-offset l))
82 (setq r (+ set-case-syntax-offset r))
79 (aset table l l) 83 (aset table l l)
80 (aset table r r) 84 (aset table r r)
81 ;; Clear out the extra slots so that they will be 85 ;; Clear out the extra slots so that they will be
@@ -95,6 +99,8 @@ This sets the entries for characters UC and LC in TABLE, which is a string
95that will be used as the downcase part of a case table. 99that will be used as the downcase part of a case table.
96It also modifies `standard-syntax-table' to give them the syntax of 100It also modifies `standard-syntax-table' to give them the syntax of
97word constituents." 101word constituents."
102 (setq uc (+ set-case-syntax-offset uc))
103 (setq lc (+ set-case-syntax-offset lc))
98 (aset table uc lc) 104 (aset table uc lc)
99 (aset table lc lc) 105 (aset table lc lc)
100 (set-char-table-extra-slot table 0 nil) 106 (set-char-table-extra-slot table 0 nil)
@@ -110,6 +116,7 @@ This sets the entry for character C in TABLE, which is a string
110that will be used as the downcase part of a case table. 116that will be used as the downcase part of a case table.
111It also modifies `standard-syntax-table'. 117It also modifies `standard-syntax-table'.
112SYNTAX should be \" \", \"w\", \".\" or \"_\"." 118SYNTAX should be \" \", \"w\", \".\" or \"_\"."
119 (setq c (+ set-case-syntax-offset c))
113 (aset table c c) 120 (aset table c c)
114 (set-char-table-extra-slot table 0 nil) 121 (set-char-table-extra-slot table 0 nil)
115 (set-char-table-extra-slot table 1 nil) 122 (set-char-table-extra-slot table 1 nil)