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

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




yamaoka <notifications@xxxxxxxxxx> 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, view it on GitHub, or mute the thread.