summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--doc/lsearch.n20
2 files changed, 14 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 3632c61..f55fd7c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-06-07 Donal K. Fellows <donal.k.fellows@man.ac.uk>
+
+ * doc/lsearch.n: Added correct option to example. [Bug 968219]
+
2004-06-05 Kevin B. Kenny <kennykb@acm.org>
* generic/tcl.h: Corrected Tcl_WideInt declarations so that the mingw
diff --git a/doc/lsearch.n b/doc/lsearch.n
index 9b42447..08efd66 100644
--- a/doc/lsearch.n
+++ b/doc/lsearch.n
@@ -8,7 +8,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: lsearch.n,v 1.18 2004/05/18 12:54:35 dkf Exp $
+'\" RCS: @(#) $Id: lsearch.n,v 1.19 2004/06/07 21:41:27 dkf Exp $
'\"
.so man.macros
.TH lsearch n 8.5 Tcl "Tcl Built-In Commands"
@@ -127,38 +127,38 @@ overall list to the term found. This option has no effect unless the
.SH EXAMPLES
Basic searching:
.CS
-lsearch {a b c d e} c
+\fBlsearch\fR {a b c d e} c
=> 2
-lsearch -all {a b c a b c} c
+\fBlsearch\fR -all {a b c a b c} c
=> 2 5
.CE
Using \fBlsearch\fR to filter lists:
.CS
-lsearch -inline {a20 b35 c47} b*
+\fBlsearch\fR -inline {a20 b35 c47} b*
=> b35
-lsearch -inline -not {a20 b35 c47} b*
+\fBlsearch\fR -inline -not {a20 b35 c47} b*
=> a20
-lsearch -all -inline -not {a20 b35 c47} b*
+\fBlsearch\fR -all -inline -not {a20 b35 c47} b*
=> a20 c47
-lsearch -all -not {a20 b35 c47} b*
+\fBlsearch\fR -all -not {a20 b35 c47} b*
=> 0 2
.CE
This can even do a "set-like" removal operation:
.CS
-lsearch -all -inline -not -exact {a b c a d e a f g a} a
+\fBlsearch\fR -all -inline -not -exact {a b c a d e a f g a} a
=> b c d e f g
.CE
Searching may start part-way through the list:
.CS
-lsearch -start 3 {a b c a b c} c
+\fBlsearch\fR -start 3 {a b c a b c} c
=> 5
.CE
It is also possible to search inside elements:
.CS
-lsearch -index 1 -all {{a abc} {b bcd} {c cde}} *bc*
+\fBlsearch\fR -index 1 -all -inline {{a abc} {b bcd} {c cde}} *bc*
=> {a abc} {b bcd}
.CE