diff options
| author | Richard M. Stallman | 1997-08-24 16:26:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-08-24 16:26:31 +0000 |
| commit | 5e9f80a8d5a9c3351a3595e855d5d06201199427 (patch) | |
| tree | 629b08d6daa1dcb56bfc661298fe457d4d994b8c | |
| parent | fe7d182410dde57aecae0e9a7d02d7114c42c9fe (diff) | |
| download | emacs-5e9f80a8d5a9c3351a3595e855d5d06201199427.tar.gz emacs-5e9f80a8d5a9c3351a3595e855d5d06201199427.zip | |
(indent-relative, insert-tab):
Don't call expand-abbrev unless preceding character is a word char.
| -rw-r--r-- | lisp/indent.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/indent.el b/lisp/indent.el index 6639f4b2100..69e282b5d84 100644 --- a/lisp/indent.el +++ b/lisp/indent.el | |||
| @@ -56,7 +56,8 @@ | |||
| 56 | 56 | ||
| 57 | (defun insert-tab (&optional prefix-arg) | 57 | (defun insert-tab (&optional prefix-arg) |
| 58 | (let ((count (prefix-numeric-value prefix-arg))) | 58 | (let ((count (prefix-numeric-value prefix-arg))) |
| 59 | (if abbrev-mode | 59 | (if (and abbrev-mode |
| 60 | (eq (char-syntax (preceding-char)) ?w)) | ||
| 60 | (expand-abbrev)) | 61 | (expand-abbrev)) |
| 61 | (if indent-tabs-mode | 62 | (if indent-tabs-mode |
| 62 | (insert-char ?\t count) | 63 | (insert-char ?\t count) |
| @@ -338,7 +339,9 @@ An indent point is a non-whitespace character following whitespace. | |||
| 338 | If the previous nonblank line has no indent points beyond the | 339 | If the previous nonblank line has no indent points beyond the |
| 339 | column point starts at, `tab-to-tab-stop' is done instead." | 340 | column point starts at, `tab-to-tab-stop' is done instead." |
| 340 | (interactive "P") | 341 | (interactive "P") |
| 341 | (if abbrev-mode (expand-abbrev)) | 342 | (if (and abbrev-mode |
| 343 | (eq (char-syntax (preceding-char)) ?w)) | ||
| 344 | (expand-abbrev)) | ||
| 342 | (let ((start-column (current-column)) | 345 | (let ((start-column (current-column)) |
| 343 | indent) | 346 | indent) |
| 344 | (save-excursion | 347 | (save-excursion |