diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-03-30 10:26:22 +0100 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-03-30 10:26:22 +0100 |
commit | a14c5923c100338085b013035cdc66b0dee839be (patch) | |
tree | bdca88302a4bbf4f03135a11f52f6b7121232c5c | |
parent | 3b06894624255cebefcd77ac01e1d51044d1a1dd (diff) | |
download | emacs-scratch/organizing-package.el.tar.gz |
Add blank lines after comment headersscratch/organizing-package.el
-rw-r--r-- | lisp/emacs-lisp/package.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 907fc487935..3b1d193b3b0 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -175,6 +175,7 @@ ;;; Customization options + ;;;###autoload (defcustom package-enable-at-startup t "Whether to activate installed packages when Emacs starts. @@ -341,6 +342,7 @@ a sane initial value." ;; user) it makes sense to take the package name as a symbol instead, ;; but keep in mind there could be multiple `package-desc's with the ;; same name. + (defvar package--default-summary "No description available.") (cl-defstruct (package-desc @@ -452,6 +454,7 @@ Slots: ;; command `package-initialize' is also closely related to this ;; section, but it is left for a later section because it also affects ;; other stuff. + (defvar package--builtins nil "Alist of built-in packages. The actual value is initialized by loading the library @@ -554,6 +557,7 @@ EXTRA-PROPERTIES is currently unused." ;;; Package activation ;; Section for functions used by `package-activate', which see. + (defun package-disabled-p (pkg-name version) "Return whether PKG-NAME at VERSION can be activated. The decision is made according to `package-load-list'. @@ -998,6 +1002,7 @@ The return result is a `package-desc'." ;;; Communicating with Archives ;; Set of low-level functions for communicating with archives and ;; signature checking. + (defun package--write-file-no-coding (file-name) (let ((buffer-file-coding-system 'no-conversion)) (write-region (point-min) (point-max) file-name nil 'silent))) @@ -1094,6 +1099,7 @@ GnuPG keyring is located under \"gnupg\" in `package-user-dir'." ;; function `package-read-all-archive-contents' from a cache on disk. ;; The `package-initialize' command is also closely related to this ;; section, but it has its own section. + (defconst package-archive-version 1 "Version number of the package archive understood by this file. Lower version numbers than this will probably be understood as well.") @@ -1253,6 +1259,7 @@ If optional arg NO-ACTIVATE is non-nil, don't activate packages." ;;;; Populating `package-archive-contents' from archives ;; This subsection populates the variables listed above from the ;; actual archives, instead of from a local cache. + (defun package--download-one-archive (archive file) "Retrieve an archive file FILE from ARCHIVE, and cache it. ARCHIVE should be a cons cell of the form (NAME . LOCATION), @@ -1335,6 +1342,7 @@ and make them available for download." ;; keeping track of which packages were installed strictly as ;; dependencies, and determining which packages cannot be removed ;; because they are dependencies. + (defun package-compute-transaction (packages requirements &optional seen) "Return a list of packages to be installed, including PACKAGES. PACKAGES should be a list of `package-desc'. @@ -1530,6 +1538,7 @@ if all the in-between dependencies are also in PACKAGE-LIST." ;; installed in a variety of ways (archives, buffer, file), but ;; requirements (dependencies) are always satisfied by looking in ;; `package-archive-contents'. + (defun package-archive-base (desc) "Return the archive containing the package NAME." (cdr (assoc (package-desc-archive desc) package-archives))) @@ -1732,6 +1741,7 @@ If some packages are not installed propose to install them." ;;; Package Deletion + (defun package--newest-p (pkg) "Return t if PKG is the newest package with its name." (equal (cadr (assq (package-desc-name pkg) package-alist)) |