try-and-refresh' should take the same arguments as try'

This commit is contained in:
Tore Sund Norderud 2018-12-03 13:42:48 +01:00
parent 2fcfcbd9b0
commit e515e3373a

4
try.el
View File

@ -65,10 +65,10 @@
(completing-read "url or package: " pkgs))) (completing-read "url or package: " pkgs)))
;;;###autoload ;;;###autoload
(defun try-and-refresh () (defun try-and-refresh (&optional url-or-package)
"Refreshes package-list before calling `try'." "Refreshes package-list before calling `try'."
(interactive) (interactive)
(package-refresh-contents) (try)) (package-refresh-contents) (try url-or-package))
;;;###autoload ;;;###autoload
(defun try (&optional url-or-package) (defun try (&optional url-or-package)