diff options
| author | Kenichi Handa | 2000-02-23 00:11:44 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2000-02-23 00:11:44 +0000 |
| commit | 1d3529b69fae039d04cd727efd1d2336685a0c47 (patch) | |
| tree | ea78732722862e802739fddda0562389e4940366 | |
| parent | 214f877f4d0fda5e395c297e5a2c6c9a25530951 (diff) | |
| download | emacs-1d3529b69fae039d04cd727efd1d2336685a0c47.tar.gz emacs-1d3529b69fae039d04cd727efd1d2336685a0c47.zip | |
Don't change syntax of multibyte
characters.
(lisp-mode-variables): Set multibyte-syntax-as-symbol to t
locally.
| -rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 9d7cd8a75fd..d82c71c263d 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el | |||
| @@ -67,15 +67,7 @@ | |||
| 67 | (modify-syntax-entry ?\( "() " table) | 67 | (modify-syntax-entry ?\( "() " table) |
| 68 | (modify-syntax-entry ?\) ")( " table) | 68 | (modify-syntax-entry ?\) ")( " table) |
| 69 | (modify-syntax-entry ?\[ "(] " table) | 69 | (modify-syntax-entry ?\[ "(] " table) |
| 70 | (modify-syntax-entry ?\] ")[ " table) | 70 | (modify-syntax-entry ?\] ")[ " table)) |
| 71 | ;; All non-word multibyte characters should be `symbol'. | ||
| 72 | (map-char-table | ||
| 73 | (function (lambda (key val) | ||
| 74 | (and (>= key 256) | ||
| 75 | (/= (char-syntax key) ?w) | ||
| 76 | (modify-syntax-entry key "_ " | ||
| 77 | table)))) | ||
| 78 | (standard-syntax-table))) | ||
| 79 | table)) | 71 | table)) |
| 80 | 72 | ||
| 81 | (defvar lisp-mode-syntax-table | 73 | (defvar lisp-mode-syntax-table |
| @@ -144,7 +136,9 @@ ine-condition\\|ine-widget\\|face\\)\\s-+'?\\(\\sw\\(\\sw\\|\\s_\\)+\\)") | |||
| 144 | (make-local-variable 'comment-indent-function) | 136 | (make-local-variable 'comment-indent-function) |
| 145 | (setq comment-indent-function 'lisp-comment-indent) | 137 | (setq comment-indent-function 'lisp-comment-indent) |
| 146 | (make-local-variable 'imenu-generic-expression) | 138 | (make-local-variable 'imenu-generic-expression) |
| 147 | (setq imenu-generic-expression lisp-imenu-generic-expression)) | 139 | (setq imenu-generic-expression lisp-imenu-generic-expression) |
| 140 | (make-local-variable 'multibyte-syntax-as-symbol) | ||
| 141 | (setq multibyte-syntax-as-symbol t)) | ||
| 148 | 142 | ||
| 149 | (defun lisp-outline-level () | 143 | (defun lisp-outline-level () |
| 150 | "Lisp mode `outline-level' function." | 144 | "Lisp mode `outline-level' function." |