]> git.eshelyaron.com Git - emacs.git/commitdiff
* eww.el (eww-browse): Raise error if there are no arguments
authorPhilip Kaludercic <philipk@posteo.net>
Thu, 4 Aug 2022 12:20:58 +0000 (14:20 +0200)
committerPhilip Kaludercic <philipk@posteo.net>
Thu, 4 Aug 2022 12:20:58 +0000 (14:20 +0200)
lisp/net/eww.el

index b7b2e08975218214fe47eb643f56677533496bfd..6ed0719eca6a12ec8c319e640d06392c58bf1317 100644 (file)
@@ -349,6 +349,8 @@ This can also be used on the command line directly:
 
 will start Emacs and browse the GNU web site."
   (interactive)
+  (unless command-line-args-left
+    (user-error "No URL given"))
   (eww (pop command-line-args-left)))