(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)
(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)