bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#47974: 27.2; doc-view-mode freezes when used together with global-li


From: Gregory Heytings
Subject: bug#47974: 27.2; doc-view-mode freezes when used together with global-linum-mode
Date: Sun, 25 Apr 2021 11:45:41 +0000


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.)


Why not just automatically turn these modes off in doc-view-mode with (setq-local global-linum-mode nil display-line-numbers-mode nil)? Is there a good reason to see the "1" there?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]