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

Re: emacs-w3m only printing usage message

>>>>> In [emacs-w3m : No.10407] John Owens wrote:
> 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:

> 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?

What did you do when you saw such a usage message?  If you typed
`w3m' in the terminal emulator, not in Emacs, it's normal.  Give
*URL or filename* as an argument, and w3m will work as expected.
If you typed `M-x w3m RET' in Emacs, I have no idea.

BTW, emacs-w3m 1.4.4 is rather old.  Though it's the latest
released version of emacs-w3m.  Personally I recommend using the
CVS version of emacs-w3m, in which many bug fixes and improvements
have been done.  It is available as:


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

I heard setting the environment variable GC_NPROCS to 1 is necessary
only for using GC 7.0 on MacOSX.  Is it still necessary and effective?

cf. http://news.gmane.org/group/gmane.emacs.w3m/thread=7254