home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / tcl / 2299 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.0 KB  |  33 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!engage.pko.dec.com!nntpd.lkg.dec.com!news.crl.dec.com!payne
  3. From: payne@crl.dec.com (Andrew Payne)
  4. Subject: Re: Tk2.3/3.0: text search?
  5. Message-ID: <1993Jan5.142557.24758@crl.dec.com>
  6. Sender: news@crl.dec.com (USENET News System)
  7. Organization: DEC Cambridge Research Lab
  8. References: <kfG_klG00h5K5H3Fhb@cs.cmu.edu>
  9. Date: Tue, 5 Jan 1993 14:25:57 GMT
  10. Lines: 21
  11.  
  12. In article <kfG_klG00h5K5H3Fhb@cs.cmu.edu> Sean.Levy@cs.cmu.edu writes:
  13. >I notice, to my surprise, that the text widget includes no "search"
  14. >command. 
  15.  
  16. Yes, I noticed this too, and I've had several occasions where such a feature
  17. would have been useful.
  18.  
  19. I've been meaning to find some time to experiment with adding a regular
  20. expression search as a text index modifier:  something that would allow
  21. you to use indices like
  22.  
  23.     current searchf "aardvark"
  24.  
  25. which would evaluate to an index pointing to the first occurrence of the
  26. string "aardvark" after the current pointer.
  27.  
  28.  
  29.  
  30. -- 
  31. Andrew C. Payne
  32. DEC Cambridge Research Lab
  33.