• shr-render-buffer: how to preserve the URLs inside the links?

    From emacsusr@opngid@gmail.com to gnu.emacs.help on Tue Apr 25 11:01:01 2023
    From Newsgroup: gnu.emacs.help

    Running the 'shr-render-buffer' command accurately renders HTML text in a new buffer by setting appropriate faces for different element types and underlining links, but when I click on any of the links the following message appears in the echo area:

    No link under point.

    Any suggestions?

    GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-10-11
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From emacsusr@opngid@gmail.com to gnu.emacs.help on Wed Apr 26 09:19:42 2023
    From Newsgroup: gnu.emacs.help

    On Tuesday, April 25, 2023 at 2:01:03rC>PM UTC-4, emacsusr wrote:
    Running the 'shr-render-buffer' command accurately renders HTML text in a new buffer by setting appropriate faces for different element types and underlining links, but when I click on any of the links the following message appears in the echo area:

    No link under point.

    Any suggestions?

    GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-10-11
    Using eww instead of shr solves the problem:
    (defun eww-render-current-buffer ()
    "Render HTML in the current buffer with EWW"
    (interactive)
    (beginning-of-buffer)
    (eww-display-html 'utf8 nil nil nil (current-buffer))
    )
    --- Synchronet 3.21d-Linux NewsLink 1.2