Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
76bb6dbb
Commit
76bb6dbb
authored
May 21, 1996
by
Karl Heuer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(internal_self_insert): Don't return 2 for auto-fill
unless the auto_fill_function returns non-nil.
parent
b035a678
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/cmds.c
src/cmds.c
+5
-2
No files found.
src/cmds.c
View file @
76bb6dbb
...
...
@@ -331,16 +331,19 @@ internal_self_insert (c1, noautofill)
&&
!
noautofill
&&
!
NILP
(
current_buffer
->
auto_fill_function
))
{
Lisp_Object
tem
;
insert_and_inherit
(
&
c1
,
1
);
if
(
c1
==
'\n'
)
/* After inserting a newline, move to previous line and fill */
/* that. Must have the newline in place already so filling and */
/* justification, if any, know where the end is going to be. */
SET_PT
(
point
-
1
);
call0
(
current_buffer
->
auto_fill_function
);
tem
=
call0
(
current_buffer
->
auto_fill_function
);
if
(
c1
==
'\n'
)
SET_PT
(
point
+
1
);
hairy
=
2
;
if
(
!
NILP
(
tem
))
hairy
=
2
;
}
else
insert_and_inherit
(
&
c1
,
1
);
...
...
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