I have found the following lisp code in an
init.el file. I am wondering if this code logic is correct. I am learning Elisp and have reviewed the documentation and searched Stack Overflow. If this is too basic a question to ask, please direct me to a source:
(when (not package-archive-contents) (package-refresh-contents))
My understanding is that logic says that if there is no package-archive file, then refresh the cache .
Following are my questions:
- Does Emacs download a cache for each of the sources in the package-archive list?
package-refresh-contentsis called only if the cache is absent, how do we (Emacs) keep the archive current? Do we have to manually use