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
cee723fb
Commit
cee723fb
authored
Nov 20, 2005
by
Chong Yidong
Browse files
longlines.el (longlines-wrap-line): Preserve marker positions.
parent
1271a058
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
lisp/ChangeLog
lisp/ChangeLog
+1
-0
lisp/longlines.el
lisp/longlines.el
+4
-3
No files found.
lisp/ChangeLog
View file @
cee723fb
...
...
@@ -5,6 +5,7 @@
(longlines-mode): Turn off longlines temporarily when reverting.
Add a message-setup-hook.
(longlines-decode-buffer): New function.
(longlines-wrap-line): Preserve marker positions.
2005-11-19 Andreas Schwab <schwab@suse.de>
...
...
lisp/longlines.el
View file @
cee723fb
...
...
@@ -239,9 +239,10 @@ end of the buffer."
If wrapping is performed, point remains on the line. If the line does
not need to be wrapped, move point to the next line and return t."
(
if
(
longlines-set-breakpoint
)
(
progn
(
backward-char
1
)
(
delete-char
1
)
(
insert-char
?\n
1
)
(
progn
(
insert-before-markers
?\n
)
(
backward-char
1
)
(
delete-char
-1
)
(
forward-char
1
)
nil
)
(
if
(
longlines-merge-lines-p
)
(
progn
(
end-of-line
)
...
...
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