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
24ebf92e
Commit
24ebf92e
authored
Aug 07, 1996
by
Richard M. Stallman
Browse files
(normal-auto-fill-function): New variable.
(auto-fill-mode): Use that instead of constant 'do-auto-fill.
parent
18fef111
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
lisp/simple.el
lisp/simple.el
+13
-6
No files found.
lisp/simple.el
View file @
24ebf92e
...
...
@@ -2432,21 +2432,28 @@ Setting this variable automatically makes it local to the current buffer.")
(
setq
give-up
t
)))
;; No place to break => stop trying.
(
setq
give-up
t
))))
;;
j
ustify last line
;;
J
ustify last line
.
(
justify-current-line
justify
t
t
)
t
)))
(
defvar
normal-auto-fill-function
'do-auto-fill
"The function to use for `auto-fill-function' if Auto Fill mode is turned on.
Some major modes set this."
)
(
defun
auto-fill-mode
(
&optional
arg
)
"Toggle auto-fill mode.
With arg, turn Auto-Fill mode on if and only if arg is positive.
In Auto-Fill mode, inserting a space at a column beyond `current-fill-column'
automatically breaks the line at a previous space."
"Toggle Auto Fill mode.
With arg, turn Auto Fill mode on if and only if arg is positive.
In Auto Fill mode, inserting a space at a column beyond `current-fill-column'
automatically breaks the line at a previous space.
The value of `normal-auto-fill-function' specifies the function to use
for `auto-fill-function' when turning Auto Fill mode on."
(
interactive
"P"
)
(
prog1
(
setq
auto-fill-function
(
if
(
if
(
null
arg
)
(
not
auto-fill-function
)
(
>
(
prefix-numeric-value
arg
)
0
))
'do
-auto-fill
normal
-auto-fill
-function
nil
))
(
force-mode-line-update
)))
...
...
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