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

From: "Drew Adams" <[email-masked]>
Date: Thu, 10 Jun 2010 08:22:52 -0700

> (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"?

I, for one, do not understand you.

(setq y "a
b")
(setq x (regexp-quote y))
(setq z "a\nb")
(equal x y) = (equal x z) = t
(length x) = (length z) = 3

What are you trying to say?
And what does it mean to "quote newline"?

Please try to explain clearly what the problem is that you see, or what you are
trying to do that does not succeed as you expect.