summaryrefslogtreecommitdiff
path: root/lisp/indent.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-08-05 20:21:06 +0000
committerRichard M. Stallman <rms@gnu.org>1995-08-05 20:21:06 +0000
commita2964053573a757212e5a884475ee654a886bc15 (patch)
tree2269c3e3b174c389b21649661be4cceb0acfd4e2 /lisp/indent.el
parentd0776f5c896d161ad5fa5c115b4fb37cf98c7f27 (diff)
downloademacs-a2964053573a757212e5a884475ee654a886bc15.tar.gz
(tab-to-tab-stop): Expand abbrevs only after a word-char.
Diffstat (limited to 'lisp/indent.el')
-rw-r--r--lisp/indent.el3
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
The variable `tab-stop-list' is a list of columns at which there are tab stops.
Use \\[edit-tab-stops] to edit them interactively."
(interactive)
- (if abbrev-mode (expand-abbrev))
+ (and abbrev-mode (= (char-syntax (preceding-char)) ?w)
+ (expand-abbrev))
(let ((tabs tab-stop-list))
(while (and tabs (>= (current-column) (car tabs)))
(setq tabs (cdr tabs)))