Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
8ab85ee7
Commit
8ab85ee7
authored
Jan 18, 2015
by
Artur Malabarba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(package--append-to-alist): Updated docstring due to new name.
parent
3ccbda73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
lisp/ChangeLog
lisp/ChangeLog
+1
-0
lisp/emacs-lisp/package.el
lisp/emacs-lisp/package.el
+5
-3
No files found.
lisp/ChangeLog
View file @
8ab85ee7
...
...
@@ -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 <sdl.web@gmail.com>
...
...
lisp/emacs-lisp/package.el
View file @
8ab85ee7
...
...
@@ -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)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment