bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#17217: 24.4.50; eww/shr and relative links


From: João Távora
Subject: bug#17217: 24.4.50; eww/shr and relative links
Date: Mon, 07 Apr 2014 22:01:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

joaotavora@gmail.com (João Távora) writes:

> Hi maintainers, Lars,
>
>     emacs -Q
>     M-x eww RET\
>         
> http://franz.com/support/documentation/current/doc/classes/excl/compiler-inconsistent-name-usage-warning.htm\
>         RET
>
> Click on any link in the webpage, *eww* always reports 404, because it
> couldn't follow a relative link with href="../../release-notes.htm". A

This patch seems to fix it,

=== modified file 'lisp/net/shr.el'
*** lisp/net/shr.el     2014-03-05 18:44:58 +0000
--- lisp/net/shr.el     2014-04-07 20:59:33 +0000
***************
*** 610,616 ****
         (concat (nth 3 base) url))
        (t
         ;; Totally relative.
!        (concat (car base) (cadr base) url))))
  
  (defun shr-ensure-newline ()
    (unless (zerop (current-column))
--- 610,616 ----
         (concat (nth 3 base) url))
        (t
         ;; Totally relative.
!        (concat (car base) (expand-file-name url (cadr base))))))
  
  (defun shr-ensure-newline ()
    (unless (zerop (current-column))








reply via email to

[Prev in Thread] Current Thread [Next in Thread]