diff options
| author | Richard M. Stallman | 1997-05-17 18:40:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-05-17 18:40:38 +0000 |
| commit | cc1cdd74d5ec7ab5cc7d65d2e169a26802ef6b71 (patch) | |
| tree | 9a1dec06bf8461b03e46b590a1f658f2c7c8f453 | |
| parent | a580e88443042c94bbafcd5246fd6fceb2785b15 (diff) | |
| download | emacs-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.el | 7 |
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 | |||
| 76 | that will be used as the downcase part of a case table. | 78 | that will be used as the downcase part of a case table. |
| 77 | It also modifies `standard-syntax-table' to | 79 | It also modifies `standard-syntax-table' to |
| 78 | indicate left and right delimiters." | 80 | indicate 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 | |||
| 95 | that will be used as the downcase part of a case table. | 99 | that will be used as the downcase part of a case table. |
| 96 | It also modifies `standard-syntax-table' to give them the syntax of | 100 | It also modifies `standard-syntax-table' to give them the syntax of |
| 97 | word constituents." | 101 | word 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 | |||
| 110 | that will be used as the downcase part of a case table. | 116 | that will be used as the downcase part of a case table. |
| 111 | It also modifies `standard-syntax-table'. | 117 | It also modifies `standard-syntax-table'. |
| 112 | SYNTAX should be \" \", \"w\", \".\" or \"_\"." | 118 | SYNTAX 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) |