diff options
-rw-r--r-- | doc/ref/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <djurfeldt@nada.kth.se> + + * expect.texi (Expect): Removed backslash escapes of regexp + operators ( and ) in code example for expect-strings. + 2004-12-14 Kevin Ryde <user42@zip.com.au> * 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 |