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
4cc9d0dc
Commit
4cc9d0dc
authored
Jun 27, 1995
by
Richard M. Stallman
Browse files
(newline): Put point at right place if insert gets error.
parent
9cb2482e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
lisp/simple.el
lisp/simple.el
+6
-1
No files found.
lisp/simple.el
View file @
4cc9d0dc
...
...
@@ -50,7 +50,12 @@ In Auto Fill mode, if no numeric arg, break the preceding line if it's long."
;; Also not if flag is true (it would fill wrong line);
;; there is no need to since we're at BOL.
(
auto-fill-function
(
if
(
or
arg
flag
)
nil
auto-fill-function
)))
(
self-insert-command
(
prefix-numeric-value
arg
)))
(
unwind-protect
(
self-insert-command
(
prefix-numeric-value
arg
))
;; If we get an error in self-insert-command, put point at right place.
(
if
flag
(
forward-char
1
))))
;; If we did *not* get an error, cancel that forward-char.
(
if
flag
(
backward-char
1
))
;; Mark the newline(s) `hard'.
(
if
use-hard-newlines
(
let*
((
from
(
-
(
point
)
(
if
arg
(
prefix-numeric-value
arg
)
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