[emacs-w3m:13565] Re: [emacs-w3m/emacs-w3m] w3m-next/previous-anchor no more working in buffers formatted with w3m-region (#71)
yamaoka <[email protected]>
| Newsgroups | gmane.emacs.w3m |
|---|---|
| Message-ID | <emacs-w3m/emacs-w3m/issues/71/[email protected]> |
I vaguely guess you are running `w3m-next-anchor` or `w3m-previous-anchor` in a buffer in which formatted web contents are copied from a temp buffer where `w3m-region` runs to format an html source. If so, at least the local variable `w3m-max-anchor-sequence` should also be copied, for example:
```
(let (formatted-contents max-anchor)
(set-buffer mu4e-buffer)
(with-temp-buffer
(insert an-html-contents)
(w3m-region (point-min) (point-max))
(setq formatted-contents (buffer-string)
max-anchor w3m-max-anchor-sequence))
(insert formatted-contents)
(setq w3m-max-anchor-sequence max-anchor))
```
--
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-536828367