Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5e9f80a8
Commit
5e9f80a8
authored
Aug 24, 1997
by
Richard M. Stallman
Browse files
(indent-relative, insert-tab):
Don't call expand-abbrev unless preceding character is a word char.
parent
fe7d1824
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lisp/indent.el
lisp/indent.el
+5
-2
No files found.
lisp/indent.el
View file @
5e9f80a8
...
...
@@ -56,7 +56,8 @@
(
defun
insert-tab
(
&optional
prefix-arg
)
(
let
((
count
(
prefix-numeric-value
prefix-arg
)))
(
if
abbrev-mode
(
if
(
and
abbrev-mode
(
eq
(
char-syntax
(
preceding-char
))
?w
))
(
expand-abbrev
))
(
if
indent-tabs-mode
(
insert-char
?\t
count
)
...
...
@@ -338,7 +339,9 @@ An indent point is a non-whitespace character following whitespace.
If the previous nonblank line has no indent points beyond the
column point starts at, `tab-to-tab-stop' is done instead."
(
interactive
"P"
)
(
if
abbrev-mode
(
expand-abbrev
))
(
if
(
and
abbrev-mode
(
eq
(
char-syntax
(
preceding-char
))
?w
))
(
expand-abbrev
))
(
let
((
start-column
(
current-column
))
indent
)
(
save-excursion
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment