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
aa52fef9
Commit
aa52fef9
authored
Jun 29, 1994
by
Richard M. Stallman
Browse files
(internal_self_insert): Now can return 2.
parent
654d89d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/cmds.c
src/cmds.c
+6
-5
No files found.
src/cmds.c
View file @
aa52fef9
...
...
@@ -284,7 +284,8 @@ In Auto Fill mode, if no numeric arg, break the preceding line if it's long.")
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. */
return 0. A value of 1 indicates this *might* not have been simple.
A value of 2 means this did things that call for an undo boundary. */
internal_self_insert
(
c1
,
noautofill
)
char
c1
;
...
...
@@ -313,7 +314,7 @@ internal_self_insert (c1, noautofill)
||
!
((
current_column
()
+
1
)
%
XFASTINT
(
current_buffer
->
tab_width
))))
{
del_range
(
point
,
point
+
1
);
hairy
=
1
;
hairy
=
2
;
}
if
(
!
NILP
(
current_buffer
->
abbrev_mode
)
&&
SYNTAX
(
c
)
!=
Sword
...
...
@@ -326,7 +327,7 @@ internal_self_insert (c1, noautofill)
but if Fexpand_abbrev changed the buffer,
assume it expanded something. */
if
(
MODIFF
!=
modiff
)
hairy
=
1
;
hairy
=
2
;
}
if
((
c
==
' '
||
c
==
'\n'
)
&&
!
noautofill
...
...
@@ -338,7 +339,7 @@ internal_self_insert (c1, noautofill)
call0
(
current_buffer
->
auto_fill_function
);
if
(
c1
==
'\n'
)
insert
(
&
c1
,
1
);
hairy
=
1
;
hairy
=
2
;
}
else
insert
(
&
c1
,
1
);
...
...
@@ -347,7 +348,7 @@ internal_self_insert (c1, noautofill)
&&
!
NILP
(
Vblink_paren_function
)
&&
INTERACTIVE
)
{
call0
(
Vblink_paren_function
);
hairy
=
1
;
hairy
=
2
;
}
return
hairy
;
}
...
...
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