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

Re: error upon load and tab navigation [PATCH included]

On 2017-07-14 10:02, Katsumi Yamaoka wrote:
> In [emacs-w3m : No.12745]
> On Thu, 13 Jul 2017 08:33:06 -0400, Boruch Baum wrote:
> > For example, `C-x m' (browse-url-at-point) does not work without the
> > patch, but does with the patch.
> I made sure that w3m.elc is not loaded,

I'm available now to conduct the tests. What exact steps do you want
me to perform?

The w3m section of my .emacs file currently reads

  #+BEGIN_SRC emacs-lisp
  (require 'htmlize) ; html syntax highlighting
  ; (autoload 'w3m-browse-url "w3m" "Ask a WWW browser to show a URL." t)
  (global-set-key "\C-xm" 'browse-url-at-point)

    browse-url-browser-function  'w3m-goto-url-new-session
    emacs-w3m-path  "/usr/share/emacs/site-lisp/w3m/"
    w3m-init-file   "~/.emacs.d/emacs-w3m-init")
  (add-to-list 'load-path emacs-w3m-path)
  (require 'w3m-load)

> and then tried this
> (setq browse-url-browser-function 'w3m-browse-url)
> and invoked `M-x browse-url-at-point RET' on a url string.
> However, nothing happened other than having launched emacs-w3m
> normally.  Isn't this procedure the same as yours?  Isn't any
> message shown in the echo area (or logged in the *Messages*
> buffer) then?
> Note: The value of `post-command-hook' in a w3m-mode buffer would
> normally be (w3m-check-current-position t), in which the local
> part `w3m-check-current-position' runs `w3m-print-this-url', etc.
> But Emacs will make it (t) if an error once occurs by a function
> listed in the variable `w3m-after-cursor-move-hook', i.e.,
> `w3m-highlight-current-anchor', `w3m-show-form-hint',
> `w3m-print-this-url' and `w3m-auto-show' by default.  In my case,
> `post-command-hook' didn't get changed through the above test.


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