doomemacs/modules
Henrik Lissner eb69073578
Fix infinite redrawing/freezing with {centaur,awesome}-tabs
Caused by over-zealous doom-switch-window-hook.

For my own sanity (and if you're curious), I'll break it down here:

1. Doom has a `doom-switch-window-hook` hook. It triggers when window
   focus is changed.
2. We use `buffer-list-update-hook` to trigger
   `doom-switch-window-hook`. (That may sound weird, but this hook is
   reliably executed when window focus is changed -- there are
   safeguards to prevent this from triggering too often)
3. `buffer-list-update-hook` triggers whenever a buffer is created, but
   `doom-switch-window-hook` only triggers if the created buffer is in
   a new window.
4. The use of `with-temp-buffer` in `centaur-tabs-line-format` counts as
   "buffer creation" in a "new window".
5. `+vc-gutter-update-h` is in `doom-switch-window-hook`. This refreshes
   git-gutter, which initiates a redraw of Emacs.
6. When Emacs redraws, it recalculates its mode and header lines. which
   triggers `doom-switch-window-hook` once, which triggers
   `+vc-gutter-update-h`, which redraws the screen, then Emacs recalculates
   the header line, running `centaur-tabs-line-format`...

Infinite loop ensues

Hopefully fixes:
- hlissner/doom-emacs#2436
- ema2159/centaur-tabs#18
- ema2159/centaur-tabs#88
2020-02-27 21:47:32 -05:00
..
app Don't throw error if elfeed org file does not exist 2020-02-18 00:20:35 -05:00
checkers Bump to flycheck/flycheck@74377fa 2020-02-23 15:03:30 -05:00
completion Ensure company-backends are computed late in mode init 2020-02-25 20:03:58 -05:00
config Fix #2616: old keybind to defunct command 2020-02-26 17:43:54 -05:00
editor Fix file template :when logic to apply to modes 2020-02-26 10:45:14 -07:00
emacs Have browse-to-remote default to master in detached repos 2020-02-24 19:58:03 -05:00
email Remove redundant evil-set-initial-state 2020-02-09 18:44:41 -05:00
input Fix #2373: bring back package pinning 2020-01-25 19:02:00 -05:00
lang Fix absolute path in rustic-analyzer-command by default 2020-02-27 11:55:27 -05:00
term address feedback 2020-02-22 21:42:04 -05:00
tools Prevent magit trying to revert non-existent file buffers 2020-02-25 20:23:04 -05:00
ui Fix infinite redrawing/freezing with {centaur,awesome}-tabs 2020-02-27 21:47:32 -05:00