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

Re: Symbol's function definition is void: w3m-browse-url

On 2017-06-13 18:42, Richmond wrote:
> I am bewildered by this error:
> Symbol's function definition is void: w3m-browse-url
> I am trying to use w3m as a text browser in emacs. It works for one
> linux user, but not for another.
> I have in .gnu-emacs-custom:
> '(browse-url-browser-function (quote w3m-browse-url))

This worked in emacs 25?

I was expecting something like:

  (setq browse-url-browser-function 'w3m-goto-url-new-session)

> I fear I have messed things up by moving to emacs 25 and then back to
> emacs 24.

When you start emacs 24, before you do anything else, look at the
bottom of the screen for any message that there was an error
encountered when starting the program. Scan the *Messages* buffer for
information on errors or warnings encountered. When emacs encounters
an error during init, it stops the init, so any expressions in the
init file from that point on will not be evaluated. If emacs 24
encountered an error before loading emacs-w3m, then the function would
not be recognized.

If the error message is to the effect that emacs 24 could not find the
emacs-w3m package, then you need to get the package's files on the
emacs 24 load path.

> I got w3m from github, configure, make, make install.

I think the recommendation is to get it via cvs from the namazu
website, but if you say you had the install working properly in emacs
25, let's forget about that for now.

> Where is the function w3m-browse-url? Where is it supposed to come from?


Your friends for this type of answer are:

1] `C-h f' within emacs, if the package has been loaded;

2] 'grep -r "(defun w3m-goto-url-new-session" *.el'

CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0