Open zenspider opened 7 years ago
The golden-ratio
function calls balance-windows
and avoids infinite recursion by disabling golden-ratio-mode
before the call. golden-ratio
is calls the members of golden-ratio-inhibit-functions
before inhibiting itself.
The interface of golden-ratio-inhibit-functions
does not specify what side-effects are allowed, so it's fair to call this a bug. There are two solutions: 1) redefine the interface to allow calls balance-windows
, or 2) disable golden-ratio-mode
before calling golden-ratio-inhibit-functions
.
in certain situations, like when using elscreen, I'm hitting infinite recursion between
balance-windows
and the invocation of my hook viagolden-ratio
. A guard could prevent this from triggering while already triggering.