From 24e93505b97415cc9ef59afa4cc01c05c8693c9d Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Thu, 4 Aug 2022 14:20:58 +0200 Subject: [PATCH] * eww.el (eww-browse): Raise error if there are no arguments --- lisp/net/eww.el | 2 ++ 1 file changed, 2 insertions(+) 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))) -- 2.39.2