kiennq / emacs-mini-modeline

Display emacs mode line in minibuffer
GNU General Public License v3.0
197 stars 14 forks source link

the call to redisplay makes startup unresponsive for few seconds during startup #48

Open Luis-Henriquez-Perez opened 3 years ago

Luis-Henriquez-Perez commented 3 years ago

I was wondering why during startup there was a noticeable pause just after enabling modeline-mode. Typically when I startup my emacs it's immediately responsive. I realized that the function mini-modeline--enable calls redisplay and I believe this causes this delay.

After advising the modeline-mode, temporarily setting redisplay to ignore during its evaluation, the problem was gone.

kiennq commented 3 years ago

Would you like to provide a PR for that?

Luis-Henriquez-Perez commented 3 years ago

@kiennq sure. However, what was the original intent of redisplay? I'm concerned that removing it might have unintended side-effects.