unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: damjan.franz@gmail.com,
	 Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Cc: Lars Ingebrigtsen <larsi@gnus.org>
Subject: Re: EWW, Duckduck go and Oops error
Date: Wed, 26 Apr 2017 19:10:43 +0000	[thread overview]
Message-ID: <CAFyQvY18rLL9C6-yL0TNZc57U=OFb4QN9DYOd1b3_LyRZOFeEg@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY0S+qzi=NgtEp5vAAoGByeXjUFCmDS9afnb4n2a7JoBRA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1471 bytes --]

On Wed, Apr 26, 2017 at 3:03 PM Kaushal Modi <kaushal.modi@gmail.com> wrote:

> Yes, I can finally confirm the issue on emacs 25.1.
>
> - emacs -Q
> - M-x eww
> - unsolved mysteries
> - (The first link somehow works.. but go to the "TheWrap" link.. search
> for "Wrap")
> - Now if you copy that link using "w" and paste it in a different browser,
> it works!
> - But if you hit Return on the same link, it fails.
>
> (Though it seems to be fixed on the master branch of emacs.)
>

Actually, looks like this is already fixed in emacs 25.2 too.

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25445

To fix it locally in emacs 25.1, you need need to add this to your config:

(with-eval-after-load 'eww
  (defun eww-tag-meta (dom)
    (when (and (cl-equalp (dom-attr dom 'http-equiv) "refresh")
      (< eww-redirect-level 5))
      (when-let (refresh (dom-attr dom 'content))
(when (or (string-match "^\\([0-9]+\\) *;.*url=\"\\([^\"]+\\)\"" refresh)
 (string-match "^\\([0-9]+\\) *;.*url='\\([^']+\\)'" refresh)
 (string-match "^\\([0-9]+\\) *;.*url=\\([^ ]+\\)" refresh))
 (let ((timeout (match-string 1 refresh))
(url (match-string 2 refresh))
(eww-redirect-level (1+ eww-redirect-level)))
   (if (equal timeout "0")
(eww (shr-expand-url url))
     (eww-tag-a
      (dom-node 'a `((href . ,(shr-expand-url url)))
(format "Auto refresh in %s second%s disabled"
timeout
(if (equal timeout "1")
    ""
  "s")))))))))))

But, please, just update to 25.2 :)
-- 

Kaushal Modi

[-- Attachment #2: Screenshot from 2017-04-26 20-41-03.png --]
[-- Type: image/png, Size: 37406 bytes --]

[-- Attachment #3: Screenshot from 2017-04-26 20-39-37.png --]
[-- Type: image/png, Size: 154150 bytes --]

  reply	other threads:[~2017-04-26 19:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-25 16:26 EWW, Duckduck go and Oops error damjan.franz
2017-04-25 17:48 ` Kaushal Modi
     [not found]   ` <CANuo_riEwrmJ_uKAdQ_Ge=OSTtFChoeqS7NGDjJpUok4ctj1wQ@mail.gmail.com>
     [not found]     ` <CAFyQvY3_DNsF63_inQ4oVNv1hJvi4oWyhZrSzFZAjVy1-1T_=g@mail.gmail.com>
     [not found]       ` <1493229849.3690.1.camel@localhost>
     [not found]         ` <CAFyQvY29CeQswFtvu5nX+-wLASjzWaL2z09ypCWYNOekNqKQKw@mail.gmail.com>
     [not found]           ` <1493232799.2443.1.camel@localhost>
2017-04-26 19:03             ` Kaushal Modi
2017-04-26 19:10               ` Kaushal Modi [this message]
2017-04-27  4:57                 ` Yuri Khan

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='CAFyQvY18rLL9C6-yL0TNZc57U=OFb4QN9DYOd1b3_LyRZOFeEg@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=damjan.franz@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=larsi@gnus.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.
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).