From: Junio C Hamano Date: Mon, 01 Oct 2012 17:27:56 GMT Subject: Re: [PATCH] gitk: Add workaround for system where Shift-F5 mapped to Shift-XF86_Switch_VT_5 Message-ID: <7vwqzacdb7.fsf@alter.siamese.dyndns.org> In-Reply-To: <1349105191-31681-2-git-send-email-andrew.kw.w@gmail.com> Andrew Wong writes: > The same workaround was used for Shift-F4 in: > cea07cf8dc9b3677e0c50433c0d72bce83adbdc7 > > Signed-off-by: Andrew Wong > --- > gitk-git/gitk | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gitk-git/gitk b/gitk-git/gitk > index d93bd99..698b84a 100755 > --- a/gitk-git/gitk > +++ b/gitk-git/gitk > @@ -2496,6 +2496,7 @@ proc makewindow {} { > bindkey f nextfile > bind . updatecommits > bind . reloadcommits > + catch { bind . reloadcommits } > bind . showrefs > bind . {newview 0} > catch { bind . {newview 0} } Wouldn't it make more sense to have a small helper function to wrap binding both and to the same thing and have F4 and F5 binding use that to avoid repetition?