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: Lennart Borgman
Subject: bug#6390: Should not regexp-quote quote newline?
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"?





reply via email to

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