]> git.eshelyaron.com Git - emacs.git/commitdiff
longlines.el (longlines-wrap-line): Preserve marker positions.
authorChong Yidong <cyd@stupidchicken.com>
Sun, 20 Nov 2005 05:17:27 +0000 (05:17 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 20 Nov 2005 05:17:27 +0000 (05:17 +0000)
lisp/ChangeLog
lisp/longlines.el

index 57d6d885534718a7c4d6b0058c350167b66b99d4..082c37f33652cededd0bdbfb3bc081b0d8405181 100644 (file)
@@ -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>
 
index 85358207a2beae79911c1d10f56af35ca89de1b8..93f3daa4ee89e7353934bf27eda905a9e07c6ab6 100644 (file)
@@ -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)