Tags: patch If there are no command line arguments, then nil is passed to eww, and eventually it is given to string-trim, that raises an apparently unrelated error due to the missing string. An alternative to this patch would be to unmark it as interactive, since it appears to be meant for batch use. I had initially confused it with `eww-open-file'. In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-08-01 built on rhea Repository revision: 47f1cae83c269ea43d6b208e055ce536c017856f Repository branch: feature/package+vc System Description: Fedora Linux 36 (Workstation Edition) Configured using: 'configure --with-pgtk --with-native-compilation --with-imagemagick'