;ò c>c@s¸dZdkZdkZdkZdkZd„Zdfd„ƒYZd„Zd„Zd„Z d„Z gZ gZ d „Z d „Zd „Zd „Zd fd„ƒYZdfd„ƒYZdfd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdfd„ƒYZeƒZhdd<dd <d!d"<d#d$<d%d&<d'd(tZdZdZdZd„Zd„Zd„Zd„ZRS(Ns ProtocolErrorsReplyExceptionsErrorExceptioncCs g|_dS(N(sselfsfreed(sself((s./Pymacs/pymacs.pys__init__Gsc Bsûxônoìy[|iƒ}|d djo(e|dhhƒdUd}e}nd}e|ƒ}WnÒeij o }|Sn¸ei j o} d}| }n•ei j o*} e iid| ƒe idƒn]ej o ‚nHdk}dk}|iƒ} |id| ƒd}| iƒ}nXg} | i}|io:|dƒx|iD]}|d |ƒqgW|d ƒn|d |ƒe||d dƒ|d ƒ|io|d ƒg|_n|iei| dƒƒq WdS(Niisexec sreplyserrorsProtocol error: %s sfiles(progn (pymacs-free-lisps %ds) s (pymacs-%s squoteds)s(sselfsreceivestextsevalsstatussNonesargumentsProtocolsReplyExceptionsvaluesErrorExceptionsmessages ProtocolErrorssyssstderrswritesexitsKeyboardInterruptsStringIOs tracebacks print_excsgetvalues fragmentssappendsfreedsindexs print_lispssendsstringsjoin( sselfsstatusswritesStringIOstexts tracebacksargumentsvaluesindexsmessages fragments((s./Pymacs/pymacs.pysloopJsR             cCs‹tiidƒ}| p|ddjotid‚nx,|ddjo|tiidƒ}q>Wtiit|dd!ƒƒSdS(Niis>s `>' expected.iÿÿÿÿs i(ssyssstdinsreadstextsProtocols ProtocolErrorsint(sselfstext((s./Pymacs/pymacs.pysreceivescCsj|ddjo$tiidt|ƒ|fƒn%tiidt|ƒd|fƒtiiƒdS(Niÿÿÿÿs s<%d %ss<%d %s i(stextssyssstdoutswriteslensflush(sselfstext((s./Pymacs/pymacs.pyssendŠs$$( s__name__s __module__s ProtocolErrorsReplyExceptionsErrorExceptions__init__sloopsreceivessend(((s./Pymacs/pymacs.pysProtocol5s  7 cCsti|‚dS(N(sProtocolsReplyExceptionsvalue(svalue((s./Pymacs/pymacs.pysreply’scCstid|‚dS(Ns Emacs: %s(sProtocolsErrorExceptionsmessage(smessage((s./Pymacs/pymacs.pyserror–sc Cs}tii|ƒ\} } ti| dƒ}|t jo!ti |dddƒd}ny–t i i | ƒ}|ot|ƒnlz.| ot iid| ƒnt| ƒ}Wd| ot id=nXx!|dD]}t||ƒ}qÔWWntj o t SnX|ii dƒ}|o |ƒn|ii dhƒ}t|ƒtijo h}ng}xÕ|iiƒD]Ä\} } t| ƒo | t j ož|i!t"| ƒƒ|i!t |ti | ddƒƒy | i#}Wn"t$j o|i | ƒ}nXt|ƒo|i!t"|ƒƒq;|i!|ƒqwqwW|o&t i%t i&t i'|gg|gSnt i'|gSdS( Ns.iÿÿÿÿs_s-iispymacs_load_hooks interactions((sosspathssplitsfile_without_extensions directorys module_namesstringsmodule_componentssprefixsNonesreplacessyssmodulessgetsobjectsreloadsinserts __import__s componentsgetattrs ImportErrors__dict__s load_hooks interactionsstypestypessDictTypes argumentssitemssnamesvaluescallableslispsappendsallocate_pythons interactionsAttributeErrorsprogns pymacs_defunssquote( sfile_without_extensionsprefixs argumentssmodule_componentss interactionssobjects components load_hooks interactionsnamesvalues directorys module_name((s./Pymacs/pymacs.pyspymacs_load_helperšsT  !     $  &cCst|dƒo |iSndS(Ns__doc__(shasattrsobjects__doc__(sobject((s./Pymacs/pymacs.pys doc_stringÓscCswt|ƒtdƒjptt|ƒ| f‚totd}td=|t|\}}|i|tt|ƒiƒfƒtt||ƒqW|i id|fƒ|SdS(Ns variables( spairsskeywordssitemssnamesvaluesappendsgetattrslispssetattrsselfsstack(sselfskeywordsspairssnamesvalue((s./Pymacs/pymacs.pyspushs "cCsf|id\}}|djpt|id‚|id=x$|D]\}}tt||ƒqBWdS(Niÿÿÿÿs variables( sselfsstacksmethodspairssAssertionErrorsnamesvaluessetattrslisp(sselfspairssnamesvaluesmethod((s./Pymacs/pymacs.pyspop&s   cCs9|iidtiƒtiƒtiƒffƒ|SdS(Ns excursion(sselfsstacksappendslispscurrent_buffers point_markers mark_marker(sself((s./Pymacs/pymacs.pyspush_excursion-s1cCs|id\}\}}}|djpt|id‚|id=ti|ƒti |ƒti |ƒti |t ƒti |t ƒdS(Niÿÿÿÿs excursion( sselfsstacksmethodsbuffers point_markers mark_markersAssertionErrorslisps set_buffers goto_charsset_marks set_markersNone(sselfsbuffers point_markers mark_markersmethod((s./Pymacs/pymacs.pys pop_excursion3s    cCs$|iidtiƒfƒ|SdS(Ns match_data(sselfsstacksappendslisps match_data(sself((s./Pymacs/pymacs.pyspush_match_data=scCsL|id\}}|djpt|id‚|id=ti|ƒdS(Niÿÿÿÿs match_data(sselfsstacksmethods match_datasAssertionErrorslispsset_match_data(sselfs match_datasmethod((s./Pymacs/pymacs.pyspop_match_dataAs cCs0|iidtiƒtiƒffƒ|SdS(Ns restriction(sselfsstacksappendslispspoint_min_markerspoint_max_marker(sself((s./Pymacs/pymacs.pyspush_restrictionGs(cCsu|id\}\}}|djpt|id‚|id=ti||ƒti|t ƒti|t ƒdS(Niÿÿÿÿs restriction( sselfsstacksmethodspoint_min_markerspoint_max_markersAssertionErrorslispsnarrow_to_regions set_markersNone(sselfspoint_min_markerspoint_max_markersmethod((s./Pymacs/pymacs.pyspop_restrictionLs  cCs$|iidtiƒfƒ|SdS(Nsselected_window(sselfsstacksappendslispsselected_window(sself((s./Pymacs/pymacs.pyspush_selected_windowTscCsL|id\}}|djpt|id‚|id=ti|ƒdS(Niÿÿÿÿsselected_window(sselfsstacksmethodsselected_windowsAssertionErrorslisps select_window(sselfsmethodsselected_window((s./Pymacs/pymacs.pyspop_selected_windowXs cCs$|iidtiƒfƒ|SdS(Nswindow_excursion(sselfsstacksappendslispscurrent_window_configuration(sself((s./Pymacs/pymacs.pyspush_window_excursion^scCsL|id\}}|djpt|id‚|id=ti|ƒdS(Niÿÿÿÿswindow_excursion(sselfsstacksmethodscurrent_window_configurationsAssertionErrorslispsset_window_configuration(sselfscurrent_window_configurationsmethod((s./Pymacs/pymacs.pyspop_window_excursioncs (s__name__s __module__s__init__s__del__s __nonzero__spushspopspush_excursions pop_excursionspush_match_dataspop_match_dataspush_restrictionspop_restrictionspush_selected_windowspop_selected_windowspush_window_excursionspop_window_excursion(((s./Pymacs/pymacs.pysLets             sSymbolcBsGtZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(NcCs ||_dS(N(stextsself(sselfstext((s./Pymacs/pymacs.pys__init__kscCsdt|iƒSdS(Nslisp[%s](sreprsselfstext(sself((s./Pymacs/pymacs.pys__repr__nscCsd|iSdS(Ns'(sselfstext(sself((s./Pymacs/pymacs.pys__str__qscCst|iƒSdS(N(slispsselfstext(sself((s./Pymacs/pymacs.pysvaluetscCstd|iƒSdS(Ns(pymacs-expand %s)(slispsselfstext(sself((s./Pymacs/pymacs.pyscopywscCsy|tjotd|iƒnTg}|i}|d|iƒt||ddƒ|dƒtt i |dƒƒdS(Ns (setq %s nil)s(progn (setq %s squotedis) nil)s( svaluesNoneslispsselfstexts fragmentssappendswrites print_lispsstringsjoin(sselfsvalueswrites fragments((s./Pymacs/pymacs.pyssetzs   cGsrg}|i}|d|iƒx+|D]#}|dƒt||ddƒq'W|dƒtt i |dƒƒSdS(Ns(%ss squotedis)s( s fragmentssappendswritesselfstexts argumentssarguments print_lispslispsstringsjoin(sselfs argumentssargumentswrites fragments((s./Pymacs/pymacs.pys__call__…s   ( s__name__s __module__s__init__s__repr__s__str__svaluescopyssets__call__(((s./Pymacs/pymacs.pysSymbolis      sLispcBs>tZd„Zd„Zd„Zd„Zd„Zd„ZRS(NcCs ||_dS(N(sindexsself(sselfsindex((s./Pymacs/pymacs.pys__init__‘scCstiii|iƒdS(N(slisps _protocolsfreedsappendsselfsindex(sself((s./Pymacs/pymacs.pys__del__”scCsdttd|ƒƒSdS(Nslisp(%s)s(prin1-to-string %s)(sreprslispsself(sself((s./Pymacs/pymacs.pys__repr__—scCsd|iSdS(Ns(aref pymacs-lisp %d)(sselfsindex(sself((s./Pymacs/pymacs.pys__str__šscCs|SdS(N(sself(sself((s./Pymacs/pymacs.pysvaluescCstd|ƒSdS(Ns(pymacs-expand %s)(slispsself(sself((s./Pymacs/pymacs.pyscopy s(s__name__s __module__s__init__s__del__s__repr__s__str__svaluescopy(((s./Pymacs/pymacs.pysLisps      sBuffercBstZRS(N(s__name__s __module__(((s./Pymacs/pymacs.pysBuffer£ssListcBs,tZd„Zd„Zd„Zd„ZRS(NcGsog}|i}|d|ƒx+|D]#}|dƒt||ddƒq$W|dƒtti |dƒƒSdS(Ns(%ss squotedis)s( s fragmentssappendswritesselfs argumentssarguments print_lispslispsstringsjoin(sselfs argumentssargumentswrites fragments((s./Pymacs/pymacs.pys__call__°s   cCstd|ƒSdS(Ns (length %s)(slispsself(sself((s./Pymacs/pymacs.pys__len__ºscCsKtd||fƒ}|tjo|t|ƒjo t|‚n|SdS(Ns (nth %d %s)(slispskeysselfsvaluesNoneslens IndexError(sselfskeysvalue((s./Pymacs/pymacs.pys __getitem__½s  cCsZg}|i}|d||fƒt||ddƒ|dƒtti |dƒƒdS(Ns(setcar (nthcdr %d %s) squotedis)s( s fragmentssappendswriteskeysselfs print_lispsvalueslispsstringsjoin(sselfskeysvalueswrites fragments((s./Pymacs/pymacs.pys __setitem__Ãs   (s__name__s __module__s__call__s__len__s __getitem__s __setitem__(((s./Pymacs/pymacs.pysList®s  sTablecBstZd„Zd„ZRS(NcCsTg}|i}|dƒt||ddƒ|d|ƒtti|dƒƒSdS(Ns (gethash squotedis %s)s( s fragmentssappendswrites print_lispskeysselfslispsstringsjoin(sselfskeyswrites fragments((s./Pymacs/pymacs.pys __getitem__Ís   cCsqg}|i}|dƒt||ddƒ|dƒt||ddƒ|d|ƒtti |dƒƒdS(Ns (puthash squotedis s %s)s( s fragmentssappendswrites print_lispskeysvaluesselfslispsstringsjoin(sselfskeysvalueswrites fragments((s./Pymacs/pymacs.pys __setitem__Õs   (s__name__s __module__s __getitem__s __setitem__(((s./Pymacs/pymacs.pysTableËs sVectorcBs#tZd„Zd„Zd„ZRS(NcCstd|ƒSdS(Ns (length %s)(slispsself(sself((s./Pymacs/pymacs.pys__len__áscCstd||fƒSdS(Ns (aref %s %d)(slispsselfskey(sselfskey((s./Pymacs/pymacs.pys __getitem__äscCsZg}|i}|d||fƒt||ddƒ|dƒtti |dƒƒdS(Ns (aset %s %d squotedis)s( s fragmentssappendswritesselfskeys print_lispsvalueslispsstringsjoin(sselfskeysvalueswrites fragments((s./Pymacs/pymacs.pys __setitem__çs   (s__name__s __module__s__len__s __getitem__s __setitem__(((s./Pymacs/pymacs.pysVectorßs  sLisp_InterfacecBs>tZd„Zd„Zd„Zd„Zd„Zd„ZRS(NcCs*hdt<|id