When trying to view documents using `doc-view-mode' Emacs slows down
and eventually freezes. I traced this problem to `global-linum-mode'
which was set to `t' in my init.el file. I tested this with Emacs -Q
and I am able to replicate it. `global-linum-mode' does not work with
`doc-view-mode'. Emacs does not crash but freezes. One has then to quit
Emacs through the Windows task manager.
I guess the recipe here is:
0. emacs -Q
1. M-x global-linum-mode RET
2. C-x C-f <foo.pdf>
I can confirm Emacs is very unresponsive, but there is no freeze here.
This is on GNU/Linux and current master.
(I'm not seeing any unresponsiveness with `display-line-numbers-mode',
so a workaround might be to just use that instead.)