Merge pull request #8 from torenord/master

`try-and-refresh' should take the same arguments as `try'
This commit is contained in:
Lars Tveito 2018-12-04 03:36:08 +01:00 committed by GitHub
commit 8831ded178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
try.el
View File

@ -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)