Commit 8ab85ee7 authored by Artur Malabarba's avatar Artur Malabarba
Browse files

(package--append-to-alist): Updated docstring due to new name.

parent 3ccbda73
......@@ -2,6 +2,7 @@
* emacs-lisp/package.el (package--append-to-alist): Renamed from
Updated docstring due to new name.
2015-01-18 Leo Liu <>
......@@ -1157,10 +1157,12 @@ Also, add the originating archive to the `package-desc' structure."
(package--append-to-alist pkg-desc package-archive-contents)))))
(defun package--append-to-alist (pkg-desc alist)
"Append an entry for PKG-DESC to the start of ALIST and return it.
This entry takes the form (`package-desc-name' PKG-DESC).
Packages are grouped by name. The package descriptions are sorted
by version number."
If ALIST already has an entry with this name, destructively add
PKG-DESC to the cdr of this entry instead, sorted by version
(let* ((name (package-desc-name pkg-desc))
(priority-version (package-desc-priority-version pkg-desc))
(existing-packages (assq name alist)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment