From 3530c04875b85c90a2defa0b8c8ee8c1ba672adc Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 4 Apr 2014 16:34:43 +0100 Subject: [PATCH] Support jumpclient in make.kak --- rc/make.kak | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rc/make.kak b/rc/make.kak index 003d8d8d..a9727917 100644 --- a/rc/make.kak +++ b/rc/make.kak @@ -23,13 +23,15 @@ hook global WinSetOption filetype=make %{ hook global WinSetOption filetype=(?!make).* %{ rmhl make; rmhooks buffer make-hooks } +decl str jumpclient + def errjump -docstring 'Jump to error location' %{ try %{ exec gll "Entering directory" exec s "Entering directory '([^']+)'.*\n([^:]+):(\d+):(\d+):[^\n]+\'" l - edit %rec{%reg{1}/%reg{2}} %reg{3} %reg{4} + eval -try-client %opt{jumpclient} edit %rec{%reg{1}/%reg{2}} %reg{3} %reg{4} } catch %{ exec ghgl s "([^:]+):(\d+):(\d+):[^\n]+\'" l - edit %reg{1} %reg{2} %reg{3} + eval -try-client %opt{jumpclient} edit %reg{1} %reg{2} %reg{3} } }