On Sun, 12 Oct 2003 about 17:43 +0200 UTC Adrian Aichner wrote:
>>>>> "Martin" == Martin Stjernholm
<mast(a)lysator.liu.se> writes:
Martin> The regexp-opt function sometimes fails on "\n". If I evaluate
Martin> (regexp-opt '("\n" "ab" "c"
"d"))
Martin> I get
Martin> "ab\\|[cd]"
Problem confirmed with
(emacs-version)
"XEmacs 21.4 (patch 14) \"Reasonable Discussion\" [Lucid]
(i586-pc-win32) of Sun Sep 14 2003 on D5DC120J"
Adrian
Martin> but I expect
Martin> "ab\\|[\ncd]"
Martin> Note: This bug does not exist in Emacs 21.
However, if I replace the \n with \r, I do get
"ab\\|[^Mcd]"
in XEmacs 21.5.b16
In Emacs 21.5.50.1 with \n I get
"ab\\|[
cd]"
And in XEmacs for a great while the quoted-insert command inserts a newline
in the document, but I was sure it used to insert it but not break the
display line (i.e. ^J). That would have been years ago.