From e515e3373a9423d3f56b946b90d797cb861c86cf Mon Sep 17 00:00:00 2001 From: Tore Sund Norderud Date: Mon, 3 Dec 2018 13:42:48 +0100 Subject: [PATCH] `try-and-refresh' should take the same arguments as `try' --- try.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/try.el b/try.el index 27ea2cd..ee72907 100644 --- a/try.el +++ b/try.el @@ -65,10 +65,10 @@ (completing-read "url or package: " pkgs))) ;;;###autoload -(defun try-and-refresh () +(defun try-and-refresh (&optional url-or-package) "Refreshes package-list before calling `try'." (interactive) - (package-refresh-contents) (try)) + (package-refresh-contents) (try url-or-package)) ;;;###autoload (defun try (&optional url-or-package)