diff options
| author | Richard M. Stallman | 1995-08-05 20:21:06 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-08-05 20:21:06 +0000 |
| commit | a2964053573a757212e5a884475ee654a886bc15 (patch) | |
| tree | 2269c3e3b174c389b21649661be4cceb0acfd4e2 | |
| parent | d0776f5c896d161ad5fa5c115b4fb37cf98c7f27 (diff) | |
| download | emacs-a2964053573a757212e5a884475ee654a886bc15.tar.gz emacs-a2964053573a757212e5a884475ee654a886bc15.zip | |
(tab-to-tab-stop): Expand abbrevs only after a word-char.
| -rw-r--r-- | lisp/indent.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/indent.el b/lisp/indent.el index 9aaaf299423..dd2f95771bf 100644 --- a/lisp/indent.el +++ b/lisp/indent.el | |||
| @@ -419,7 +419,8 @@ You can add or remove colons and then do \\<edit-tab-stops-map>\\[edit-tab-stops | |||
| 419 | The variable `tab-stop-list' is a list of columns at which there are tab stops. | 419 | The variable `tab-stop-list' is a list of columns at which there are tab stops. |
| 420 | Use \\[edit-tab-stops] to edit them interactively." | 420 | Use \\[edit-tab-stops] to edit them interactively." |
| 421 | (interactive) | 421 | (interactive) |
| 422 | (if abbrev-mode (expand-abbrev)) | 422 | (and abbrev-mode (= (char-syntax (preceding-char)) ?w) |
| 423 | (expand-abbrev)) | ||
| 423 | (let ((tabs tab-stop-list)) | 424 | (let ((tabs tab-stop-list)) |
| 424 | (while (and tabs (>= (current-column) (car tabs))) | 425 | (while (and tabs (>= (current-column) (car tabs))) |
| 425 | (setq tabs (cdr tabs))) | 426 | (setq tabs (cdr tabs))) |