unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* w3m duckduckgo as default search engine next page
@ 2013-10-22 22:43 yggdrasil
  2013-10-23  1:18 ` Eric Abrahamsen
  0 siblings, 1 reply; 6+ messages in thread
From: yggdrasil @ 2013-10-22 22:43 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I am looking to change w3m default search engine to be something else
than google in trying to break the addiction, and duckduckgo seems a
viable option. 

I googled (...) for experiences and found

,----
| (require 'w3m-search)
| 
| (setq w3m-search-default-engine "duckduckgo")
| ;; (setq w3m-search-default-engine "google")
| 
| (add-to-list 'w3m-search-engine-alist '("duckduckgo" "http://duckduckgo.com/?q=%s" nil))
`----

This makes duckduckgo the default search engine, however the nifty
feature of goinf to the next page of search resuts by SPC doesn't
work. Is it possible to make this smoother?

Maybe there's a better option than duckduckgo as google replacement?

Thanks for any ideas!




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: w3m duckduckgo as default search engine next page
       [not found] <mailman.4504.1382481855.10748.help-gnu-emacs@gnu.org>
@ 2013-10-22 23:10 ` Emanuel Berg
  0 siblings, 0 replies; 6+ messages in thread
From: Emanuel Berg @ 2013-10-22 23:10 UTC (permalink / raw)
  To: help-gnu-emacs

<yggdrasil@gmx.co.uk> writes:

> I am looking to change w3m default search engine to be
> something else than google in trying to break the
> addiction, and duckduckgo seems a viable option.

I did some w3m hacking, and the biggest part of it was
setting up an interface, that would be the same all over
Emacs and for all different search engines and otherwise
search sites, and that would work on the region, or the
word at point (as the default suggestion). It includes
Google, The Pirate Bay, YouTube, and the Wikipedia (as
it is, in my file) but the idea is that it should be the
same for all search engines. You just need their search
string pattern put into a defun like the ones I did. Let
me know if you ever try it :)

http://user.it.uu.se/~embe8573/conf/.emacs-w3m

-- 
Emanuel Berg, programmer-for-rent. CV, projects, etc at uXu
underground experts united:  http://user.it.uu.se/~embe8573


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: w3m duckduckgo as default search engine next page
  2013-10-22 22:43 w3m duckduckgo as default search engine next page yggdrasil
@ 2013-10-23  1:18 ` Eric Abrahamsen
  2013-10-23 17:16   ` yggdrasil
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Abrahamsen @ 2013-10-23  1:18 UTC (permalink / raw)
  To: help-gnu-emacs

<yggdrasil@gmx.co.uk> writes:

> Hi,
>
> I am looking to change w3m default search engine to be something else
> than google in trying to break the addiction, and duckduckgo seems a
> viable option. 
>
> I googled (...) for experiences and found
>
> ,----
> | (require 'w3m-search)
> | 
> | (setq w3m-search-default-engine "duckduckgo")
> | ;; (setq w3m-search-default-engine "google")
> | 
> | (add-to-list 'w3m-search-engine-alist '("duckduckgo" "http://duckduckgo.com/?q=%s" nil))
> `----
>
> This makes duckduckgo the default search engine, however the nifty
> feature of goinf to the next page of search resuts by SPC doesn't
> work. Is it possible to make this smoother?

That's not a w3m thing, that's provided by the web page in question.
Google provides nice rel="next|prev" links, and SPC in w3m is bound to a
command that will scroll the buffer, or follow a "next" link if you're
at the bottom of the buffer and there is such a link.

If the site doesn't provide next/prev, there's not much w3m can do, at
least not out of the box.

E




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: w3m duckduckgo as default search engine next page
  2013-10-23  1:18 ` Eric Abrahamsen
@ 2013-10-23 17:16   ` yggdrasil
  2013-10-23 17:55     ` Dale Snell
  0 siblings, 1 reply; 6+ messages in thread
From: yggdrasil @ 2013-10-23 17:16 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: help-gnu-emacs

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> <yggdrasil@gmx.co.uk> writes:
>
>> I am looking to change w3m default search engine to be something else
>> than google in trying to break the addiction, and duckduckgo seems a
>> viable option. 
>>
>> I googled (...) for experiences and found
>>
>> ,----
>> | (require 'w3m-search)
>> | 
>> | (setq w3m-search-default-engine "duckduckgo")
>> | ;; (setq w3m-search-default-engine "google")
>> | 
>> | (add-to-list 'w3m-search-engine-alist '("duckduckgo"
>> | "http://duckduckgo.com/?q=%s" nil))
>> `----
>>
>> This makes duckduckgo the default search engine, however the nifty
>> feature of goinf to the next page of search resuts by SPC doesn't
>> work. Is it possible to make this smoother?
>
> That's not a w3m thing, that's provided by the web page in question.
> Google provides nice rel="next|prev" links, and SPC in w3m is bound to a
> command that will scroll the buffer, or follow a "next" link if you're
> at the bottom of the buffer and there is such a link.
>
> If the site doesn't provide next/prev, there's not much w3m can do, at
> least not out of the box.
>

Yeah, I figured as much, sorry for being unclear. I am not trying to
insinuate a bug in w3m when it seems to be rather poor web design
practice (if there is a convention that is, which seems a reasonable
assumption...) here, but was rather hoping there's 1) an easy way to
tweak w3m to overcome this limitation in the web page, or 2) another
search engine to use that has these links, which is not google. 

I'm not too bothered and will probably just stay with google anyhow, but
given the surveillance and power in the large coorps now I thought it
worth looking into options and opinions. I mean, hey, if I could gather
all that data I would also look into creative uses of the statistics! So
why not support the smaller players if any, we all now how it is when
one company gets all too powerful.

Thanks though for your input!

Best,

J



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: w3m duckduckgo as default search engine next page
  2013-10-23 17:16   ` yggdrasil
@ 2013-10-23 17:55     ` Dale Snell
  2013-10-28 23:23       ` yggdrasil
  0 siblings, 1 reply; 6+ messages in thread
From: Dale Snell @ 2013-10-23 17:55 UTC (permalink / raw)
  To: help-gnu-emacs

On Wed, 23 Oct 2013 18:16:09 +0100
<yggdrasil@gmx.co.uk> wrote:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> 
> > That's not a w3m thing, that's provided by the web page in question.
> > Google provides nice rel="next|prev" links, and SPC in w3m is bound to a
> > command that will scroll the buffer, or follow a "next" link if you're
> > at the bottom of the buffer and there is such a link.
> >
> > If the site doesn't provide next/prev, there's not much w3m can do, at
> > least not out of the box.
> 
> Yeah, I figured as much, sorry for being unclear. I am not trying to
> insinuate a bug in w3m when it seems to be rather poor web design
> practice (if there is a convention that is, which seems a reasonable
> assumption...) here, but was rather hoping there's 1) an easy way to
> tweak w3m to overcome this limitation in the web page, or 2) another
> search engine to use that has these links, which is not google. 

You might want to look into Startpage, <https://startpage.com>.
That engine has Prev/Next links at the bottom of its search
pages, so might work correctly with w3m.

--Dale

--
"Come, muse, let us sing of rats."  -- James Grainger



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: w3m duckduckgo as default search engine next page
  2013-10-23 17:55     ` Dale Snell
@ 2013-10-28 23:23       ` yggdrasil
  0 siblings, 0 replies; 6+ messages in thread
From: yggdrasil @ 2013-10-28 23:23 UTC (permalink / raw)
  To: ddsnell; +Cc: help-gnu-emacs

Dale Snell <ddsnell@frontier.com> writes:

> On Wed, 23 Oct 2013 18:16:09 +0100
> <yggdrasil@gmx.co.uk> wrote:
>
>> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>> 
>> > That's not a w3m thing, that's provided by the web page in question.
>> > Google provides nice rel="next|prev" links, and SPC in w3m is bound to a
>> > command that will scroll the buffer, or follow a "next" link if you're
>> > at the bottom of the buffer and there is such a link.
>> >
>> > If the site doesn't provide next/prev, there's not much w3m can do, at
>> > least not out of the box.
>> 
>> Yeah, I figured as much, sorry for being unclear. I am not trying to
>> insinuate a bug in w3m when it seems to be rather poor web design
>> practice (if there is a convention that is, which seems a reasonable
>> assumption...) here, but was rather hoping there's 1) an easy way to
>> tweak w3m to overcome this limitation in the web page, or 2) another
>> search engine to use that has these links, which is not google. 
>
> You might want to look into Startpage, <https://startpage.com>.
> That engine has Prev/Next links at the bottom of its search
> pages, so might work correctly with w3m.
>

Thanks, never heard about this before but it looks like a great
option. I'll take it! 

/J



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-10-28 23:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-22 22:43 w3m duckduckgo as default search engine next page yggdrasil
2013-10-23  1:18 ` Eric Abrahamsen
2013-10-23 17:16   ` yggdrasil
2013-10-23 17:55     ` Dale Snell
2013-10-28 23:23       ` yggdrasil
     [not found] <mailman.4504.1382481855.10748.help-gnu-emacs@gnu.org>
2013-10-22 23:10 ` Emanuel Berg

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).