From: Philip Kaludercic Date: Thu, 4 Aug 2022 12:20:58 +0000 (+0200) Subject: * eww.el (eww-browse): Raise error if there are no arguments X-Git-Tag: emacs-29.0.90~1447^2~459 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=24e93505b97415cc9ef59afa4cc01c05c8693c9d;p=emacs.git * eww.el (eww-browse): Raise error if there are no arguments --- diff --git a/lisp/net/eww.el b/lisp/net/eww.el index b7b2e089752..6ed0719eca6 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -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)))