mirror of
https://github.com/larstvei/Try.git
synced 2024-11-26 11:38:30 +00:00
Don't attempt automatic refreshing of packages
It felt more like a bug than a feature most of the time.
This commit is contained in:
parent
895ac18d5c
commit
43e4fa2638
8
try.el
8
try.el
@ -75,9 +75,6 @@
|
|||||||
(require 'package)
|
(require 'package)
|
||||||
(require 'url)
|
(require 'url)
|
||||||
|
|
||||||
(defvar try-archive-contents-initial-value package-archive-contents
|
|
||||||
"Remember the initial value of `package-archive-contents' to be
|
|
||||||
able to detect the need to call `package-refresh-contents'.")
|
|
||||||
|
|
||||||
(defvar try-tmp-dir "/tmp/"
|
(defvar try-tmp-dir "/tmp/"
|
||||||
"The default place packages to try out is /tmp/.")
|
"The default place packages to try out is /tmp/.")
|
||||||
@ -110,11 +107,6 @@
|
|||||||
to a raw .el file. Packages are stored in `try-tmp-dir' and raw
|
to a raw .el file. Packages are stored in `try-tmp-dir' and raw
|
||||||
.el files are not stored at all."
|
.el files are not stored at all."
|
||||||
(interactive)
|
(interactive)
|
||||||
;; Refresh package contents if needed.
|
|
||||||
(and (eq try-archive-contents-initial-value
|
|
||||||
package-archive-contents)
|
|
||||||
(< 1 (length package-archives))
|
|
||||||
(package-refresh-contents))
|
|
||||||
;; Completions for packages.
|
;; Completions for packages.
|
||||||
(let* ((url-or-package (completing-read
|
(let* ((url-or-package (completing-read
|
||||||
"url or package: "
|
"url or package: "
|
||||||
|
Loading…
Reference in New Issue
Block a user