unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6390: Should not regexp-quote quote newline?
@ 2010-06-10 14:42 Lennart Borgman
  2010-06-10 15:01 ` Andreas Schwab
                   ` (2 more replies)
  0 siblings, 3 replies; 30+ messages in thread
From: Lennart Borgman @ 2010-06-10 14:42 UTC (permalink / raw)
  To: 6390

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





^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2011-07-09 10:03 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-10 14:42 bug#6390: Should not regexp-quote quote newline? Lennart Borgman
2010-06-10 15:01 ` Andreas Schwab
2010-06-10 15:02   ` Lennart Borgman
2010-06-10 15:34     ` Drew Adams
2010-06-10 16:08     ` Andreas Schwab
2010-06-10 16:11       ` Lennart Borgman
2010-06-10 16:22         ` Andreas Schwab
2010-06-10 16:46           ` Lennart Borgman
2010-06-10 17:03             ` Andreas Schwab
2010-06-10 18:07               ` Lennart Borgman
2010-06-10 23:11                 ` Lennart Borgman
2010-06-11  0:44                   ` Lennart Borgman
2010-06-10 15:22 ` Drew Adams
2010-06-10 15:34   ` Lennart Borgman
2010-06-10 16:28     ` Juanma Barranquero
2010-06-10 16:47       ` Lennart Borgman
2010-06-10 16:56     ` Andreas Schwab
2010-06-10 17:00       ` Lennart Borgman
2010-06-11  4:19 ` MON KEY
2010-06-11  4:43   ` Lennart Borgman
2010-06-11 20:09     ` MON KEY
2010-06-11 20:37       ` Lennart Borgman
2010-06-12  6:18         ` MON KEY
2010-06-12 13:28           ` Lennart Borgman
2010-06-14  3:00             ` MON KEY
2010-06-14  5:33               ` Lennart Borgman
2010-06-12  6:51         ` Kevin Rodgers
2010-06-12 13:37           ` Lennart Borgman
2011-07-09  5:30           ` Glenn Morris
2011-07-09 10:03             ` Lennart Borgman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).