* EWW, Duckduck go and Oops error
@ 2017-04-25 16:26 damjan.franz
2017-04-25 17:48 ` Kaushal Modi
0 siblings, 1 reply; 5+ messages in thread
From: damjan.franz @ 2017-04-25 16:26 UTC (permalink / raw)
To: help-gnu-emacs
When using EWW and if I enter some random keywords I get the results
from Duckduckgo. So far so good. But if then I choose to follow an URL
in the results I get the following error: "ops, there was an error.
Please try again."
If I enter duckduckgo.com at prompt and then search for something I am
able to get the page requested. Can somebody confirm this or should
this be filed under "shit happens" category?
i am using 25.1.1 on Fedora 25. Thank you.
Regards,
Damjan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: EWW, Duckduck go and Oops error
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>
0 siblings, 1 reply; 5+ messages in thread
From: Kaushal Modi @ 2017-04-25 17:48 UTC (permalink / raw)
To: damjan.franz, help-gnu-emacs
I tried this on emacs 25.1 and it works fine.
- emacs -Q
- M-x eww
- duckduckgo.com
- (Hit TAB)
- it happens
.. http://i.imgur.com/qNeNQ8W.png
On Tue, Apr 25, 2017 at 12:45 PM <damjan.franz@gmail.com> wrote:
> When using EWW and if I enter some random keywords I get the results
> from Duckduckgo. So far so good. But if then I choose to follow an URL
> in the results I get the following error: "ops, there was an error.
> Please try again."
>
> If I enter duckduckgo.com at prompt and then search for something I am
> able to get the page requested. Can somebody confirm this or should
> this be filed under "shit happens" category?
>
> i am using 25.1.1 on Fedora 25. Thank you.
>
> Regards,
>
> Damjan
>
>
> --
Kaushal Modi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: EWW, Duckduck go and Oops error
[not found] ` <1493232799.2443.1.camel@localhost>
@ 2017-04-26 19:03 ` Kaushal Modi
2017-04-26 19:10 ` Kaushal Modi
0 siblings, 1 reply; 5+ messages in thread
From: Kaushal Modi @ 2017-04-26 19:03 UTC (permalink / raw)
To: damjan.franz, Help Gnu Emacs mailing list; +Cc: Lars Ingebrigtsen
[-- Attachment #1: Type: text/plain, Size: 1054 bytes --]
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.)
-
On Wed, Apr 26, 2017 at 2:53 PM <damjan.franz@gmail.com> wrote:
> As said, it is strange. I only have Fedora installed on this computer. No
> problems using firefox on Fedora either. Or Links, Lynx or similar. Only
> emacs and eww when entering keywords.
>
> Here are the screenshots:
> [image: Screenshot from 2017-04-26 20-39-37.png]
> Above: results after keywords entered. I choose, let's say, Unsolved
> Mysteries - TheWrap (forth/fifth in the row).
>
> Result:
>
> [image: Screenshot from 2017-04-26 20-41-03.png]
>
> Please not the URL above. If I copy it to any other browser the result is
> always "Oops, there was an error".
>
> Damjan
>
>
>
> --
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 --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: EWW, Duckduck go and Oops error
2017-04-26 19:03 ` Kaushal Modi
@ 2017-04-26 19:10 ` Kaushal Modi
2017-04-27 4:57 ` Yuri Khan
0 siblings, 1 reply; 5+ messages in thread
From: Kaushal Modi @ 2017-04-26 19:10 UTC (permalink / raw)
To: damjan.franz, Help Gnu Emacs mailing list; +Cc: Lars Ingebrigtsen
[-- 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 --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: EWW, Duckduck go and Oops error
2017-04-26 19:10 ` Kaushal Modi
@ 2017-04-27 4:57 ` Yuri Khan
0 siblings, 0 replies; 5+ messages in thread
From: Yuri Khan @ 2017-04-27 4:57 UTC (permalink / raw)
To: Kaushal Modi; +Cc: Help Gnu Emacs mailing list, Lars Ingebrigtsen, damjan.franz
On Thu, Apr 27, 2017 at 2:10 AM, Kaushal Modi <kaushal.modi@gmail.com> wrote:
> (when (or (string-match "^\\([0-9]+\\) *;.*url=\"\\([^\"]+\\)\"" refresh)
> (string-match "^\\([0-9]+\\) *;.*url='\\([^']+\\)'" refresh)
> (string-match "^\\([0-9]+\\) *;.*url=\\([^ ]+\\)" refresh))
This does not look exactly right according to [HTML 5.1 § 4.2.5.3
subheading “Refresh state”][1].
[1]: https://www.w3.org/TR/html51/document-metadata.html#statedef-http-equiv-refresh
* There may be leading whitespace in the content attribute.
* The refresh delay, which is a non-empty sequence of ASCII digits,
may be immediately followed by a period and more digits or periods,
which are to be ignored.
* The time and URL may be separated with a semicolon or comma, with
optional whitespace at either or both sides.
* The “url” parameter is the only one allowed, it must immediately
follow the separator, its name is case-insensitive and may be omitted
along with the equal sign.
* There may be whitespace at either or both sides of the equal sign.
* The way I read it, spaces in an unquoted (or quoted) url are
permitted, although trailing whitespace is invalid and will be removed
by the basic URL parser algorithm.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-04-27 4:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2017-04-27 4:57 ` Yuri Khan
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).