]> git.eshelyaron.com Git - emacs.git/commitdiff
(occur): Escape newlines when printing regexp.
authorRichard M. Stallman <rms@gnu.org>
Tue, 13 Dec 1994 22:13:40 +0000 (22:13 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 13 Dec 1994 22:13:40 +0000 (22:13 +0000)
lisp/replace.el

index 40b6c01bd04f27b01d79b9f3f44fbf0d08c0f7d3..322aa515abb130b8bf972bb80fc42c9e1a672a47 100644 (file)
@@ -360,7 +360,8 @@ It serves as a menu to find any of the occurrences in this buffer.
        (set-buffer standard-output)
        ;; We will insert the number of lines, and "lines", later.
        (insert " matching ")
-       (prin1 regexp)
+       (let ((print-escape-newlines t))
+         (prin1 regexp))
        (insert " in buffer " (buffer-name buffer) ?. ?\n)
        (occur-mode)
        (setq occur-buffer buffer)