e TSrSSKrSSKr"SS5r\S:XaSSKJr \"SSS 9 gg) a=Complete the current word before the cursor with words in the editor. Each menu selection or shortcut key selection replaces the word with a different word with the same prefix. The search for matches begins before the target and moves toward the top of the editor. It then starts after the cursor and moves down. It then returns to the original word and the cycle starts again. Changing the current text line or leaving the cursor in a different place before requesting the next selection causes AutoExpand to reset its state. There is only one instance of Autoexpand. Ncd\rSrSr\R \R -S-rSrSr Sr Sr Sr g) AutoExpand_cjURUlURRUlSUlg)N)textbellstate)selfeditwins 8/opt/imh/python3.13/lib/python3.13/idlelib/autoexpand.py__init__AutoExpand.__init__s#LL IINN  cURRS5nURRSS5nUR(dUR 5nSnO+URupEpgXb:wdXs:waUR 5nSnU(dUR 5 gUR 5nURRS[U5-S5 XEn US-[U5-nUS:XaUR 5 URRSU 5 URRS5nURRSS5nXEX#4Ulg)z1Replace the current word with the next expansion.insertinsert linestartzinsert lineendrbreakzinsert - %d chars) rindexgetr getwordsr getprevworddeletelenr) r event curinsertcurlinewordsrrlinewordnewwords r expand_word_eventAutoExpand.expand_word_eventsIIOOH- ))-- 24DEzzMMOEE)- &E&"do  IIK! ,s4y8(C,c%j( A: IIK 7+IIOOH- ))-- 24DE95 rcbUR5nU(d/$URRSS5n[R"SU-S-U5nAURRSS5n[R"SU-S-U5nAU(d U(d/$/n0nUR 5 UH0nURU5(aMUR U5 XU'M2 UH0nURU5(aMUR U5 XU'M2 UR U5 U$)z?Return a list of words that match the prefix before the cursor.z1.0zinsert wordstartz\bz\w+\bzinsert wordendend)rrrrefindallreverseappend) r r!beforewbeforeafterwafterrdictws r rAutoExpand.getwords6s!Iu&89**UT\H4f=  .6EDL83U; vIAxx{{ LLOG  Axx{{ LLOG   T rcURRSS5n[U5nUS:a7XS- UR;a"US- nUS:aXS- UR;aM"XS$)z)Return the word prefix before the cursor.rrrrN)rrr wordchars)r r is r rAutoExpand.getprevwordUsdyy}}/: I!eqS T^^3!A!eqS T^^3Bxr)r r rN) __name__ __module__ __qualname____firstlineno__string ascii_lettersdigitsr3rr#rr__static_attributes__rr rrs/$$v}}4s:I 6>rr__main__)mainz!idlelib.idle_test.test_autoexpand) verbosity)__doc__r'r:rr6unittestr@r>rr rEs<  HHV z ,:r