[emacs-w3m:13569] Re: [emacs-w3m/emacs-w3m] w3m-next/previous-anchor no more working in buffers formatted with w3m-region (#71)

Thierry Volpiatto <[email protected]>
Newsgroups gmane.emacs.w3m
Message-ID <emacs-w3m/emacs-w3m/issues/71/[email protected]>
yamaoka <[email protected]> writes:

> Please try the latest emacs-w3m and replacing
>
>   (or (stringp (w3m-next-anchor))
>
> with
>
>   (or (w3m-next-anchor)
>
> in your tv/mu4e-next-anchor function.

Done but this is not enough, I have to give a default value to
`w3m-max-anchor-sequence` and then it is working.

    (defun tv/mu4e-next-anchor ()
      (interactive)
      (require 'w3m)
      (setq w3m-max-anchor-sequence 123)
      (or (w3m-next-anchor)
          (let ((pos (point)))
            (when (eq (get-text-property (point) 'face)
                      'mu4e-link-face)
              (setq pos (next-single-property-change (point) 'face)))
            (let ((next-url (and pos
                                 (or (text-property-any
                                      pos (point-max)
                                      'face 'mu4e-link-face)
                                     (text-property-any
                                      (point-min) (point-max)
                                      'face 'mu4e-link-face)))))
              (and next-url (goto-char next-url))))))
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or mute the thread.*


-- 
Thierry

Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/emacs-w3m/emacs-w3m/issues/71#issuecomment-536937613
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.