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.
Asked
Active
Viewed 932 times
6
-
Your question is tagged `emacsw32`. Are you using the patched build? – harpo Apr 16 '13 at 14:36
-
@harpo I tagged it so only because "For questions specifically related to running Emacs on Windows". No other reason. – user443854 Apr 16 '13 at 15:04
-
ah. I asked because EmacsW32 is also the name of an emacs distribution that includes modifications for Windows. Anyway, I think I've experienced what you're describing, but you'd have to narrow down when it occurs. – harpo Apr 16 '13 at 16:04
-
2Does `M-x redraw-display` make the problem disappear? You may also try to update to Emacs 24.3. A [Windows build](http://ftp.gnu.org/gnu/emacs/windows/emacs-24.3-bin-i386.zip) has been released recently. – Aleksei Zyrianov Apr 17 '13 at 02:28
-
It does. Thanks, this is better than switching buffers. I suspect the problem is with emacs-OS-GPU interaction (otherwise there would be more people complaining), but I will try updating anyway. – user443854 Apr 17 '13 at 13:03
-
This is still happening on version 25.1.1 in 2017. The workaround is not a fix. Is there any real fix or a bug tracking this that is being worked on? – Roger Allen Oct 13 '17 at 03:17
1 Answers
2
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)

zanedp
- 409
- 4
- 9
-
(with GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN) This is a great improvement over my previous practice of minimising (C-z), then restoring (mouse click) emacs, which was quicker than M-x redraw-display, but multiple redraws are often required to get a stable display. Is there a newer emacs which is less affected by this problem (which seems to be related to Windows display code - sometimes it's better after an update, sometimes much worse.) – Donald Locker Oct 01 '15 at 19:49