Re: EWW with Duck-Duck-Go

gfp <[email protected]> Sun, 31 May 2026 14:34:16 +0000
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
Am 31.05.26 um 15:21 schrieb Michael Heerdegen via Users list for the 
GNU Emacs text editor:
> Leude,
> 
> was macht ihr hier heute fürn Quatsch?  It's surely too hot in Germany.
> It will get better soon.  I promise.
> 
> 
>>>> 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
>                             ^^^^
> The thing is named eww.  The number of "w"s is significant.
> 
>>>>       (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=")
>>>      ))
> 
> And this is also Käse: `eval-after-load' is a function.  This `progn'
> is evaluated when loading the expression - too early (that's why your
> spelling mistake doesn't even have an effect).

I was already about to ask because I also thought only "eww" and not "ewww".
But I thought you know it better...

> 
> You meant `with-eval-after-load', Tomas:
> 
> (with-eval-after-load 'eww
>    (add-to-list ...)
>    (setopt ...)
> )
> 
> gfp, please rewrite your statement accordingly.  I hope I managed to
> introduce less errors than in the prior version (the ellipses surely
> helped).
> 
>    
> Cheers,
> 
> Michael.
> 

this works now, no backtrace:

(with-eval-after-load 'eww
     (progn
       (add-to-list 'eww-readable-urls "www\\.mojeek\\.com")
       (setopt eww-search-prefix "https://www.mojeek.com/search?q=")
     ))

> 

thank you all of you for your help

it works like a charm now.

Gottfried

Gottfried
OpenPGP_0xAC95367953582A3C.asc (application/pgp-keys, 636 B)
-----BEGIN PGP PUBLIC KEY BLOCK-----

xjMEaabDLRYJKwYBBAHaRw8BAQdAb7YT561Dj5CV9io77VLLjpOOSCz+xjHVL2Bj
+S/FSUbNGmdmcCAoMjAyNikgPGdmcEBwb3N0ZW8uYXQ+wpMEExYKADsWIQQkU+mE
m7kVmbEo/+eslTZ5U1gqPAUCaabDLQIbAwULCQgHAgIiAgYVCgkICwIEFgIDAQIe
BwIXgAAKCRCslTZ5U1gqPOPkAQDhysdwuz2eJo6kCGuVszxhEw6znPKV14R8a3vn
enCgywD9GulbjLKlGTpx6WyFmZ0bBZI1GVpIVr3qGbyFcAFZZADOOARppsMtEgor
BgEEAZdVAQUBAQdAX5BGmJLZB5B2ioEAy0C0iqgJ0GzUK4IP7gSGE9k/RQIDAQgH
wngEGBYKACAWIQQkU+mEm7kVmbEo/+eslTZ5U1gqPAUCaabDLQIbDAAKCRCslTZ5
U1gqPDixAP4teZj90382b6mB2mZT+KjjZz0opx/rahnOejBcW/+SkgD/StQdLbeZ
DqGFJ0TlGeHGxNB28C1fUE815wapzB6cKg4=
=u+uM
-----END PGP PUBLIC KEY BLOCK-----
OpenPGP_signature.asc (application/pgp-signature, 236 B)
-----BEGIN PGP SIGNATURE-----

wnsEABYIACMWIQQkU+mEm7kVmbEo/+eslTZ5U1gqPAUCahxG5wUDAAAAAAAKCRCslTZ5U1gqPLzg
AP4uiMHgXZdnPHSfYJPIfeJKo+qeZ8ZA/9WQHB1M/o08bQD/ea5UdtYo7E1EZ111RG2/y1wfUwcM
jlezi7gvEbCupA4=
=+Y0E
-----END PGP SIGNATURE-----