Subject: bug#6390: closed (Re: bug#6390: Should not regexp-quote quote newline?)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 09 Jul 2011 05:31:02 +0000

Your bug report

#6390: Should not regexp-quote quote newline?

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
6390: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6390
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#6390: Should not regexp-quote quote newline?
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Sat, 09 Jul 2011 01:30:34 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

I don't see a need to keep open this particular report, which was marked
"wontfix" some time ago.

Subject: Should not regexp-quote quote newline?
From: Lennart Borgman <[email-masked]>
To: Emacs Bugs <[email-masked]>
Date: Thu, 10 Jun 2010 16:42:14 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

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