Commit a2964053 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(tab-to-tab-stop): Expand abbrevs only after a word-char.

parent d0776f5c
......@@ -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."
(if abbrev-mode (expand-abbrev))
(and abbrev-mode (= (char-syntax (preceding-char)) ?w)
(let ((tabs tab-stop-list))
(while (and tabs (>= (current-column) (car tabs)))
(setq tabs (cdr tabs)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment