def METHOD_NAME(self, event=None):
    if self.file_line_progs is None:
        l = []
        for pat in self.file_line_pats:
            l.append(re.compile(pat, re.IGNORECASE))
        self.file_line_progs = l
    # x, y = self.event.x, self.event.y
    # self.text.mark_set("insert", "@%d,%d" % (x, y))
    line = self.text.get("insert linestart", "insert lineend")
    result = self._file_line_helper(line)
    if not result:
        # Try the previous line.  This is handy e.g. in tracebacks,
        # where you tend to right-click on the displayed source line
        line = self.text.get("insert -1line linestart",
                             "insert -1line lineend")
        result = self._file_line_helper(line)
        if not result:
            tkMessageBox.showerror(
                "No special line",
                "The line you point at doesn't look like "
                "a valid file name followed by a line number.",
                parent=self.text)
            return
    filename, lineno = result
    edit = self.flist.open(filename)
    edit.gotoline(lineno)