aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-24 16:26:31 +0000
committerRichard M. Stallman1997-08-24 16:26:31 +0000
commit5e9f80a8d5a9c3351a3595e855d5d06201199427 (patch)
tree629b08d6daa1dcb56bfc661298fe457d4d994b8c
parentfe7d182410dde57aecae0e9a7d02d7114c42c9fe (diff)
downloademacs-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.el7
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.
338If the previous nonblank line has no indent points beyond the 339If the previous nonblank line has no indent points beyond the
339column point starts at, `tab-to-tab-stop' is done instead." 340column 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