1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-23 18:47:57 +00:00

(occur): Escape newlines when printing regexp.

This commit is contained in:
Richard M. Stallman 1994-12-13 22:13:40 +00:00
parent 6b1e327109
commit d10ad24f45

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