diff options
| author | Richard M. Stallman | 1994-04-28 04:29:45 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-28 04:29:45 +0000 |
| commit | f46efdf9e276f5b438a6d96aee6403395dcdad01 (patch) | |
| tree | b5c3ed0cfd85f78d12305d4dd790985af6e83852 | |
| parent | fd3d5d87df7ac23eb70830edf96e682b121b24b3 (diff) | |
| download | emacs-f46efdf9e276f5b438a6d96aee6403395dcdad01.tar.gz emacs-f46efdf9e276f5b438a6d96aee6403395dcdad01.zip | |
(describe-buffer-case-table): Don't use text-char-description.
| -rw-r--r-- | lisp/case-table.el | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/lisp/case-table.el b/lisp/case-table.el index 8160ede55cd..a770d932eb4 100644 --- a/lisp/case-table.el +++ b/lisp/case-table.el | |||
| @@ -38,16 +38,15 @@ | |||
| 38 | "Describe the case table of the current buffer." | 38 | "Describe the case table of the current buffer." |
| 39 | (interactive) | 39 | (interactive) |
| 40 | (let ((vector (make-vector 256 nil)) | 40 | (let ((vector (make-vector 256 nil)) |
| 41 | (case-table (current-case-table)) | ||
| 42 | (ch 0)) | 41 | (ch 0)) |
| 43 | (while (< ch 256) | 42 | (while (< ch 256) |
| 44 | (aset vector ch | 43 | (aset vector ch |
| 45 | (cond ((/= ch (downcase ch)) | 44 | (cond ((/= ch (downcase ch)) |
| 46 | (concat "uppercase, matches " | 45 | (concat "uppercase, matches " |
| 47 | (text-char-description (downcase ch)))) | 46 | (char-to-string (downcase ch)))) |
| 48 | ((/= ch (upcase ch)) | 47 | ((/= ch (upcase ch)) |
| 49 | (concat "lowercase, matches " | 48 | (concat "lowercase, matches " |
| 50 | (text-char-description (upcase ch)))) | 49 | (char-to-string (upcase ch)))) |
| 51 | (t "case-invariant"))) | 50 | (t "case-invariant"))) |
| 52 | (setq ch (1+ ch))) | 51 | (setq ch (1+ ch))) |
| 53 | (save-excursion | 52 | (save-excursion |
| @@ -60,43 +59,36 @@ | |||
| 60 | "Make characters L and R a matching pair of non-case-converting delimiters. | 59 | "Make characters L and R a matching pair of non-case-converting delimiters. |
| 61 | This sets the entries for L and R in TABLE, which is a string | 60 | This sets the entries for L and R in TABLE, which is a string |
| 62 | that will be used as the downcase part of a case table. | 61 | that will be used as the downcase part of a case table. |
| 63 | It also modifies `standard-syntax-table', and `text-mode-syntax-table' to | 62 | It also modifies `standard-syntax-table' to |
| 64 | indicate left and right delimiters." | 63 | indicate left and right delimiters." |
| 65 | (aset table l l) | 64 | (aset table l l) |
| 66 | (aset table r r) | 65 | (aset table r r) |
| 67 | (modify-syntax-entry l (concat "(" (char-to-string r) " ") | 66 | (modify-syntax-entry l (concat "(" (char-to-string r) " ") |
| 68 | (standard-syntax-table)) | 67 | (standard-syntax-table)) |
| 69 | (modify-syntax-entry l (concat "(" (char-to-string r) " ") | ||
| 70 | text-mode-syntax-table) | ||
| 71 | (modify-syntax-entry r (concat ")" (char-to-string l) " ") | ||
| 72 | (standard-syntax-table)) | ||
| 73 | (modify-syntax-entry r (concat ")" (char-to-string l) " ") | 68 | (modify-syntax-entry r (concat ")" (char-to-string l) " ") |
| 74 | text-mode-syntax-table)) | 69 | (standard-syntax-table))) |
| 75 | 70 | ||
| 76 | ;;;###autoload | 71 | ;;;###autoload |
| 77 | (defun set-case-syntax-pair (uc lc table) | 72 | (defun set-case-syntax-pair (uc lc table) |
| 78 | "Make characters UC and LC a pair of inter-case-converting letters. | 73 | "Make characters UC and LC a pair of inter-case-converting letters. |
| 79 | This sets the entries for characters UC and LC in TABLE, which is a string | 74 | This sets the entries for characters UC and LC in TABLE, which is a string |
| 80 | that will be used as the downcase part of a case table. | 75 | that will be used as the downcase part of a case table. |
| 81 | It also modifies `standard-syntax-table' and `text-mode-syntax-table' | 76 | It also modifies `standard-syntax-table' to give them the syntax of |
| 82 | to indicate an (uppercase, lowercase) pair of letters." | 77 | word constituents." |
| 83 | (aset table uc lc) | 78 | (aset table uc lc) |
| 84 | (aset table lc lc) | 79 | (aset table lc lc) |
| 85 | (modify-syntax-entry lc "w " (standard-syntax-table)) | 80 | (modify-syntax-entry lc "w " (standard-syntax-table)) |
| 86 | (modify-syntax-entry lc "w " text-mode-syntax-table) | 81 | (modify-syntax-entry uc "w " (standard-syntax-table))) |
| 87 | (modify-syntax-entry uc "w " (standard-syntax-table)) | ||
| 88 | (modify-syntax-entry uc "w " text-mode-syntax-table)) | ||
| 89 | 82 | ||
| 90 | ;;;###autoload | 83 | ;;;###autoload |
| 91 | (defun set-case-syntax (c syntax table) | 84 | (defun set-case-syntax (c syntax table) |
| 92 | "Make characters C case-invariant with syntax SYNTAX. | 85 | "Make characters C case-invariant with syntax SYNTAX. |
| 93 | This sets the entries for character C in TABLE, which is a string | 86 | This sets the entries for character C in TABLE, which is a string |
| 94 | that will be used as the downcase part of a case table. | 87 | that will be used as the downcase part of a case table. |
| 95 | It also modifies `standard-syntax-table' and `text-mode-syntax-table'. | 88 | It also modifies `standard-syntax-table'. |
| 96 | SYNTAX should be \" \", \"w\", \".\" or \"_\"." | 89 | SYNTAX should be \" \", \"w\", \".\" or \"_\"." |
| 97 | (aset table c c) | 90 | (aset table c c) |
| 98 | (modify-syntax-entry c syntax (standard-syntax-table)) | 91 | (modify-syntax-entry c syntax (standard-syntax-table))) |
| 99 | (modify-syntax-entry c syntax text-mode-syntax-table)) | ||
| 100 | 92 | ||
| 101 | (provide 'case-table) | 93 | (provide 'case-table) |
| 102 | 94 | ||