parameters: (self, ok=False)
return_statement: return True
docstring: Search for and highlight next occurrence of pattern in text.
  
          No text replacement is done with this option.
docstring_summary: Search for and highlight next occurrence of pattern in text.
docstring_tokens: Search for and highlight next occurrence of pattern in text .
function: def do_find(self, ok=False):
          """Search for and highlight next occurrence of pattern in text.
  
          No text replacement is done with this option.
          """
          if not self.engine.getprog():
              return False
          text = self.text
          res = self.engine.search_text(text, None, ok)
          if not res:
              self.bell()
              return False
          line, m = res
          i, j = m.span()
          first = "%d.%d" % (line, i)
          last = "%d.%d" % (line, j)
          self.show_hit(first, last)
          self.ok = True
          return True
function_tokens: def do_find ( self , ok = False ) : if not self . engine . getprog ( ) : return False text = self . text res = self . engine . search_text ( text , None , ok ) if not res : self . bell ( ) return False line , m = res i , j = m . span ( ) first = "%d.%d" % ( line , i ) last = "%d.%d" % ( line , j ) self . show_hit ( first , last ) self . ok = True return True