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

emacs-w3m only printing usage message



Using OS X 10.5.5 and Carbon Emacs 22.2.50 (Wanderlust 2.15.5).

Recently did an upgrade of lots of stuff in MacPorts, including w3m
and (I think) emacs-w3m. Now it's w3m/0.5.2 and emacs-w3m 1.4.4.

Now when emacs renders w3m I just get the usage message:

[1  <text/plain; ISO-8859-1 (7bit)>]

[2  <text/html; ISO-8859-1 (7bit)>]
w3m version w3m/0.5.2, options
lang=en,m17n,color,ansi-color,mouse,menu,cookie,ssl,ssl-verify,
external-uri-loader,w3mmailer,nntp,ipv6,alarm,mark
usage: w3m [options] [URL or filename]

so presumably there's a misconfiguration somewhere; 
I'm sure this is a simple question - how might I debug this
and get it working again? 

Relevant elisp:

(setq load-path (cons "/opt/local/share/emacs/site-lisp/w3m" load-path))
(setq browse-url-browser-function
      '(;;("^http:" . w3m-browse-url)
	("^http:" . browse-url-generic)
	("^https:" . browse-url-generic)
	;; ("^mailto:"; . w3m-browse-url)
	;; ("^mailto:"; lambda (url &rest stuff) (compose-mail (substring url 7)))
	("^mailto:"; lambda (url &rest stuff) (compose-mail (substring to 7)))
	("^file:.*\\.html?$" . w3m-browse-url))
      )

(setq w3m-command "/opt/local/bin/w3m")
(if (not is-212)
    (progn
      (require 'w3m-load)
      (require 'mime-w3m)
      ;; (require 'mime-doc)
      (require 'mime-xls)
      ;; (require 'mime-vcard)
      )
  )

(eval-after-load "w3m"
  '(add-to-list 'w3m-command-environment '("GC_NPROCS" . "1")))




JDO