diff options
author | Philip Kaludercic <philipk@posteo.net> | 2022-08-04 14:20:58 +0200 |
---|---|---|
committer | Philip Kaludercic <philipk@posteo.net> | 2022-08-04 14:20:58 +0200 |
commit | 24e93505b97415cc9ef59afa4cc01c05c8693c9d (patch) | |
tree | 878c5022a4ec4ebe36e4a6cbe53a351c8b67bebb /lisp/net/eww.el | |
parent | 9313551faed4e79691a781da4fdfeb791f80d4ea (diff) | |
download | emacs-24e93505b97415cc9ef59afa4cc01c05c8693c9d.tar.gz emacs-24e93505b97415cc9ef59afa4cc01c05c8693c9d.tar.bz2 emacs-24e93505b97415cc9ef59afa4cc01c05c8693c9d.zip |
* eww.el (eww-browse): Raise error if there are no arguments
Diffstat (limited to 'lisp/net/eww.el')
-rw-r--r-- | lisp/net/eww.el | 2 |
1 files changed, 2 insertions, 0 deletions
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))) |