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

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.