]> code.delx.au - gnu-emacs/blobdiff - lisp/gnus/gnus-start.el
Merge from origin/emacs-25
[gnu-emacs] / lisp / gnus / gnus-start.el
index f2e69781fc1e68925f416499af3ecc5df7dd3950..692c834613037840f216af03885b839baa5431d1 100644 (file)
@@ -862,7 +862,9 @@ If REGEXP is given, lines that match it will be deleted."
            (goto-char (match-beginning 0))
            (delete-region (point-at-bol) end))))
       (goto-char (point-max))
-      (insert string "\n")
+      ;; Make sure that each dribble entry is a single line, so that
+      ;; the "remove" code above works.
+      (insert (replace-regexp-in-string "\n" "\\\\n" string) "\n")
       ;; This has been commented by Josh Huber <huber@alum.wpi.edu>
       ;; It causes problems with both XEmacs and Emacs 21, and doesn't
       ;; seem to be of much value. (FIXME: remove this after we make sure