From 6dccc950332d58ede83cca0e85a8a18f30ec5648 Mon Sep 17 00:00:00 2001 From: Mikael Djurfeldt Date: Mon, 20 Dec 2004 21:38:23 +0000 Subject: [PATCH] expect.texi (Expect): Removed backslash escapes of regexp operators ( and ) in code example for expect-strings. --- doc/ref/ChangeLog | 5 +++++ doc/ref/expect.texi | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/doc/ref/ChangeLog b/doc/ref/ChangeLog index 5c9953501..d77e1a5c6 100644 --- a/doc/ref/ChangeLog +++ b/doc/ref/ChangeLog @@ -1,3 +1,8 @@ +2004-12-20 Mikael Djurfeldt + + * expect.texi (Expect): Removed backslash escapes of regexp + operators ( and ) in code example for expect-strings. + 2004-12-14 Kevin Ryde * api-data.texi (Regexp Functions): Revise regex-substitute and diff --git a/doc/ref/expect.texi b/doc/ref/expect.texi index 54f779632..05c766999 100644 --- a/doc/ref/expect.texi +++ b/doc/ref/expect.texi @@ -56,10 +56,10 @@ match. E.g., @smalllisp ("^daemon" => write) -("^d\\(aemon\\)" => (lambda args (for-each write args))) -("^da\\(em\\)on" => (lambda (all sub) - (write all) (newline) - (write sub) (newline))) +("^d(aemon)" => (lambda args (for-each write args))) +("^da(em)on" => (lambda (all sub) + (write all) (newline) + (write sub) (newline))) @end smalllisp The order of the substrings corresponds to the order in which the