Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4c6e656f
Commit
4c6e656f
authored
Aug 19, 1992
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(internal_self_insert): Ignore value of Fexpand_abbrev;
instead, check whether buf is modified when it returns.
parent
ba70da8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
src/cmds.c
src/cmds.c
+11
-2
No files found.
src/cmds.c
View file @
4c6e656f
...
...
@@ -256,6 +256,12 @@ In Auto Fill mode, if no numeric arg, break the preceding line if it's long.")
return
Qnil
;
}
/* Insert character C1. If NOAUTOFILL is nonzero, don't do autofill
even if it is enabled.
If this insertion is suitable for direct output (completely simple),
return 0. A value of 1 indicates this *might* not have been simple. */
internal_self_insert
(
c1
,
noautofill
)
char
c1
;
int
noautofill
;
...
...
@@ -284,8 +290,11 @@ internal_self_insert (c1, noautofill)
&&
NILP
(
current_buffer
->
read_only
)
&&
point
>
BEGV
&&
SYNTAX
(
FETCH_CHAR
(
point
-
1
))
==
Sword
)
{
tem
=
Fexpand_abbrev
();
if
(
!
NILP
(
tem
))
Fexpand_abbrev
();
/* We can't trust the value of Fexpand_abbrev,
but if the buffer is now changed, this is "hairy"
and not suitable for direct output. */
if
(
MODIFF
<=
current_buffer
->
save_modified
)
hairy
=
1
;
}
if
((
c
==
' '
||
c
==
'\n'
)
...
...
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