Emacs Bug: global-linum-mode Freeze Emacs on Big Image Files
, as of GNU Emacs 24.3.1, global-linum-mode
will freeze emacs for about 10 minutes when opening a jpg file of 10 megabytes size.
GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2013-03-11 on xah-p6813w
steps to reproduce:
(global-linum-mode 1)
- open a jpg file of 5 megabytes file size.
- emacs freezes.
1 hour wasted on this.
Solution
Install linum-off.el
. This package will prevent linum-mode on in some modes that doesn't make sense, such as dired, image, etc.
download at [2016-04-30 https://github.com/mattfidler/linum-off ]
Thanks to Matthew L Fidler [[2020-01-19 https://github.com/mattfidler ]].