mirror of
https://github.com/larstvei/Try.git
synced 2024-11-26 03:28:31 +00:00
try-and-refresh' should take the same arguments as
try'
This commit is contained in:
parent
2fcfcbd9b0
commit
e515e3373a
4
try.el
4
try.el
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user