From: Artur Malabarba Date: Sun, 18 Jan 2015 12:38:19 +0000 (-0200) Subject: (package--append-to-alist): Updated docstring due to new name. X-Git-Tag: emacs-25.0.90~2595^2~11 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8ab85ee7ce9ad101583620e7ba3bee39cf3491ae;p=emacs.git (package--append-to-alist): Updated docstring due to new name. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 07c873d8a68..b7a1fb943a3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -2,6 +2,7 @@ * emacs-lisp/package.el (package--append-to-alist): Renamed from `package--add-to-alist' + Updated docstring due to new name. 2015-01-18 Leo Liu diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 07ddddddb99..0f094b556ba 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -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) - "Add PKG-DESC to 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 +number." (let* ((name (package-desc-name pkg-desc)) (priority-version (package-desc-priority-version pkg-desc)) (existing-packages (assq name alist)))