Re: EWW with Duck-Duck-Go

[email protected] Sun, 31 May 2026 14:06:16 +0200
Newsgroups gmane.emacs.help
Message-ID <ahwkONxguDyl5/[email protected]>
On Sun, May 31, 2026 at 11:57:15AM +0000, gfp wrote:
> Am 31.05.26 um 12:16 schrieb [email protected]:
> > On Sun, May 31, 2026 at 10:08:52AM +0000, gfp wrote:
> > > Am 31.05.26 um 11:56 schrieb [email protected]:
> > > > (eval-after-load 'ewww
> > > >       ;; your-code-here
> > > >       )
> > > 
> > > 
> > > I put it like this:
> > > 
> > > (eval-after-load 'ewww
> > >     (add-to-list 'eww-readable-urls "www\\.mojeek\\.com")
> > >     (setopt eww-search-prefix "https://www.mojeek.com/search?q="))
> > 
> > Ah, no, eval-after-load doesn't take a sequence, but just
> > *one* form (cf. its function-doc, with C-h f). So try
> > 
> >    (eval-after-load 'ewww
> >      (progn
> >        ;; your statements here
> >      ))
> > 
> > So effectively wrapping your sequence into one form.
> > 
> > Cheers
> 
> (eval-after-load 'ewww
>     (progn
>       (add-to-list 'eww-readable-urls "www\\.mojeek\\.com")
>       (setopt eww-search-prefix "https://www.mojeek.com/search?q=")
>     ))
> 
> Now I am getting this backtrace:
> 
> 
> Debugger entered--Lisp error: (void-variable eww-readable-urls)
>   (member "www\\.mojeek\\.com" eww-readable-urls)

[...]

This looks like a mismatch between the code you got and ewww's
version (probably the ewww used by the person who recommended
the code snippet has this variable and yours hasn't).

Since I'm not an ewww user myself, this is beyond my scope. So
it's either something for you to investigate or for the one who
gave you that code.

Cheers
-- 
t
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCahwkMgAKCRAFyCz1etHa
RkWAAJ9tYgEpoguOVB4oZJWfuUrgouVQcACfZGu2BMAyjUZNJQrJFMOMd8vDF3k=
=WrnC
-----END PGP SIGNATURE-----