unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: joaotavora@gmail.com (João Távora)
To: 17217@debbugs.gnu.org
Subject: bug#17217: 24.4.50; eww/shr and relative links
Date: Mon, 07 Apr 2014 22:01:18 +0100	[thread overview]
Message-ID: <87zjjw3lcx.fsf@kitaj.lan> (raw)
In-Reply-To: <jjbr4595m18.fsf@gmail.com> ("João Távora"'s message of "Mon, 07 Apr 2014 14:03:47 +0100")

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	other threads:[~2014-04-07 21:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-07 13:03 bug#17217: 24.4.50; eww/shr and relative links João Távora
2014-04-07 21:01 ` João Távora [this message]
2014-04-11 15:08   ` João Távora
     [not found]     ` <871tpi7w16.fsf@lifelogs.com>
2014-11-04 18:42       ` João Távora
2014-11-04 18:51         ` Ted Zlatanov
2014-11-04 19:36           ` João Távora
2014-11-04 19:45             ` Glenn Morris
2014-11-04 19:55               ` Glenn Morris
2014-11-04 20:14               ` Ted Zlatanov
2014-11-04 21:10                 ` João Távora
2014-11-05 16:52                 ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zjjw3lcx.fsf@kitaj.lan \
    --to=joaotavora@gmail.com \
    --cc=17217@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).