emacs-w3m 100% CPU Usage on Mac OS X
emacs-w3m is a simple interface from emacs, to the text browser w3m. The main reason I started using it was it allows me to quickly look up information in the Common Lisp HyperSpec without having to Cmd+Tab away from emacs, giving a pretty nifty way to view the HyperSpec. All of a sudden, when I would launch emacs, it would hang with w3m sucking up 100% of my CPU. I finally found the problem on a mailing list, apparently it’s some bug in gc, the garbage collector w3m uses. To make a long story short, adding
(setenv "GC_NPROCS" "1")
to your
~/.emacs
file before w3m/emacs-w3m is required, eliminates the problem.
Advertisement