Subject: bug#6390: Should not regexp-quote quote newline?

From: Lennart Borgman <[email-masked]>
Date: Thu, 10 Jun 2010 16:42:14 +0200

To illustrate the problem eval this

(progn
  (setq x (regexp-quote "a
b"))
  (message "length x=%d" (length x)))

The length of x will be 3 because the string returned by regexp-quote
includes a newline.

Would it not be more practical if the result was "a\nb"?