bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Drew Adams
Subject: bug#6390: Should not regexp-quote quote newline?
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.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]