From ca6043bd631091661211d1e332d33219f967a043 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 20 Jun 2015 15:51:16 +0200 Subject: sample.teco_ini: avoid unnecessary ED-hook recursions * disable ED hook while exuting the "add" hook. This avoids the "edit" hook being invoked recursively. * the speed improvement was not measurable, but it also won't hurt --- sample.teco_ini | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sample.teco_ini') diff --git a/sample.teco_ini b/sample.teco_ini index 5a2b624..fdd20fb 100644 --- a/sample.teco_ini +++ b/sample.teco_ini @@ -13,12 +13,17 @@ EMQ[$SCITECOPATH]/session.tes Oadd,edit,close,quit !add! ! Add code here to execute when a document is added ! + 32,0ED + M[lexer.auto] + ! Set up margins ! 33ESTEXTWIDTH9U.w 5*Q.w,0ESSETMARGINWIDTHN 0,1ESSETMARGINWIDTHN Q.w,2ESSETMARGINWIDTHN + + 0,32ED ! fall through ! !edit! -- cgit v1.2.3