(write-region-as-raw-text-CRLF): Fix regexp to canonicalize line break
authormorioka <morioka>
Tue, 11 Aug 1998 03:19:08 +0000 (03:19 +0000)
committermorioka <morioka>
Tue, 11 Aug 1998 03:19:08 +0000 (03:19 +0000)
code.

emu-latin1.el
emu-nemacs.el

index eb03753..45bc9a6 100644 (file)
@@ -193,7 +193,7 @@ find-file-hooks, etc.
     (with-temp-buffer
       (insert-buffer-substring the-buf start end)
       (goto-char (point-min))
-      (while (re-search-forward "\\([^\r]\\)\n" nil t)
+      (while (re-search-forward "\\(\\=\\|[^\r]\\)\n" nil t)
        (replace-match "\\1\r\n")
        )
       (write-region (point-min)(point-max) filename append visit lockname)
index b06466f..1c53e14 100644 (file)
@@ -254,7 +254,7 @@ find-file-hooks, etc.
     (with-temp-buffer
       (insert-buffer-substring the-buf start end)
       (goto-char (point-min))
-      (while (re-search-forward "\\([^\r]\\)\n" nil t)
+      (while (re-search-forward "\\(\\=\\|[^\r]\\)\n" nil t)
        (replace-match "\\1\r\n")
        )
       (let (kanji-flag)