#NEWLINE# @ if_connected #NEWLINE# def on_load( self , view , agent ) : #NEWLINE# #INDENT# msg . debug ( 'Sublime loaded ' , self . name ( view ) ) #NEWLINE# buf = get_buf ( view ) #NEWLINE# if ( not buf ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# buf_id = int ( buf [ 'id' ] ) #NEWLINE# d = agent . on_load . get ( buf_id ) #NEWLINE# if ( not d ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# del agent . on_load [ buf_id ] #NEWLINE# utils . set_timeout ( ( lambda : [ f ( ) for ( _ , f ) in d . items ( ) ] ) , 0 )