Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

emacs won't repaint buffer (windows 7)

Tags:

emacs

emacsw32

I am using GNU Emacs 24.2.1 on 64-bit Windows 7. Sometimes emacs window goes blank. This usually happens when switching focus back to emacs from another window. The only way to get the content back is to switch to another buffer and then back. No other programs behave like this. I do not have this problem on my home PC with similar hardware and OS.

like image 415
user443854 Avatar asked Apr 16 '13 14:04

user443854


1 Answers

I added the following code to my init.el so that when it happens to me (in 24.4), I just need to press F5:

(global-set-key (kbd "<f5>") #'redraw-display)
like image 120
zanedp Avatar answered Sep 20 '22 19:09

zanedp