From 9127ed0d552b3f96e664b5876da1849b084e8889 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Fri, 3 Nov 2017 11:09:45 +0300 Subject: src rc: Rename `exec`/`eval` into `execute-keys`/`evaluate-commands` --- rc/core/python.kak | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'rc/core/python.kak') diff --git a/rc/core/python.kak b/rc/core/python.kak index 306cbeba..8d145156 100644 --- a/rc/core/python.kak +++ b/rc/core/python.kak @@ -64,15 +64,15 @@ add-highlighter shared/python/comment fill comment # ‾‾‾‾‾‾‾‾ define-command -hidden python-indent-on-new-line %{ - eval -draft -itersel %{ + evaluate-commands -draft -itersel %{ # copy '#' comment prefix and following white spaces - try %{ exec -draft k s ^\h*#\h* y jgh P } + try %{ execute-keys -draft k s ^\h*#\h* y jgh P } # preserve previous line indent - try %{ exec -draft \; K } + try %{ execute-keys -draft \; K } # cleanup trailing whitespaces from previous line - try %{ exec -draft k s \h+$ d } + try %{ execute-keys -draft k s \h+$ d } # indent after line ending with : - try %{ exec -draft k x :$ j } + try %{ execute-keys -draft k x :$ j } } } @@ -84,7 +84,7 @@ hook -group python-highlight global WinSetOption filetype=python %{ add-highligh hook global WinSetOption filetype=python %{ hook window InsertChar \n -group python-indent python-indent-on-new-line # cleanup trailing whitespaces on current line insert end - hook window InsertEnd .* -group python-indent %{ try %{ exec -draft \; s ^\h+$ d } } + hook window InsertEnd .* -group python-indent %{ try %{ execute-keys -draft \; s ^\h+$ d } } } hook -group python-highlight global WinSetOption filetype=(?!python).* %{ remove-highlighter window/python } -- cgit v1.2.3