Open kqr opened 5 years ago
It is worth noting that I have tried briefly running this completely without the redraw, and I haven't noticed any negative behaviour – only a more smooth presentation experience. That said, I haven't done any thorough testing either, so I won't have too strong opinions on it. Not to mention that my Emacs display-fu is very, very weak.
If we want to experiment, we could set up a defcustom variable for toggling whether or not to redraw.
By running (redraw-display), we cause a noticeable flicker in /all/ open Emacs frames, which, while not catastrophic, is a bit of a rough edge.
If we instead redraw only the currently selected frame, we still cause a brief flash in the presenting frame, but not in any other frames.
My current workaround for this is to add advice around redraw-display and simply run redraw-frame instead if the major mode is epresent-mode, like-a-so: