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
616ed245
Commit
616ed245
authored
Aug 31, 1992
by
Richard M. Stallman
Browse files
*** empty log message ***
parent
e4790daa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
lisp/simple.el
lisp/simple.el
+7
-5
No files found.
lisp/simple.el
View file @
616ed245
...
...
@@ -22,15 +22,17 @@
(
defun
open-line
(
arg
)
"Insert a newline and leave point before it.
If there is a fill prefix, insert the fill prefix after the newline
that it inserts. With arg N, insert N newlines."
If there is a fill prefix, insert the fill prefix on the new line
if the line would have been empty.
With arg N, insert N newlines."
(
interactive
"*p"
)
(
let
((
flag
(
and
(
bolp
)
(
not
(
bobp
)))))
(
let*
((
do-fill-prefix
(
and
fill-prefix
(
bolp
)))
(
flag
(
and
(
null
do-fill-prefix
)
(
bolp
)
(
not
(
bobp
)))))
(
if
flag
(
forward-char
-1
))
(
while
(
>
arg
0
)
(
save-excursion
(
insert
?\n
)
(
if
fill-prefix
(
insert
fill-prefix
))
)
(
insert
?\n
)
)
(
if
do-
fill-prefix
(
insert
fill-prefix
))
(
setq
arg
(
1-
arg
)))
(
if
flag
(
forward-char
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