Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
5329208b
Commit
5329208b
authored
Feb 01, 2015
by
Artur Malabarba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
emacs-lisp/package.el (package-install): Rename ARG to MARK-SELECTED.
parent
0ade763b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
lisp/ChangeLog
lisp/ChangeLog
+1
-0
lisp/emacs-lisp/package.el
lisp/emacs-lisp/package.el
+7
-7
No files found.
lisp/ChangeLog
View file @
5329208b
2015-02-01 Artur Malabarba <bruce.connor.am@gmail.com>
* emacs-lisp/package.el (package-selected-packages): Fix :type
(package-install): Rename ARG to MARK-SELECTED.
2015-02-01 Thierry Volpiatto <thierry.volpiatto@gmail.com>
...
...
lisp/emacs-lisp/package.el
View file @
5329208b
...
...
@@ -1198,13 +1198,13 @@ using `package-compute-transaction'."
(mapc #'package-install-from-archive packages))
;;;###autoload
(defun package-install (pkg &optional
arg
)
(defun package-install (pkg &optional
mark-selected
)
"
Install
the
package
PKG.
PKG
can
be
a
package-desc
or
the
package
name
of
one
the
available
packages
in
an
archive
in
`
package-archives
'.
Interactively,
prompt
for
its
name
and
add
PKG
to
`
package-selected-packages
'.
When
called
from
lisp
you
will
have
to
use
ARG
if
you
want
to
simulate
an
interactive
call
to
add
PKG
to
`
package-selected-packages
'.
"
in
an
archive
in
`
package-archives
'.
Interactively,
prompt
for
its
name
.
If
called
interactively
or
if
MARK-SELECTED
is
non-nil,
add
PKG
to
`
package-selected-packages
'.
"
(interactive
(progn
;; Initialize the package system to get the list of package
...
...
@@ -1221,8 +1221,8 @@ simulate an interactive call to add PKG to `package-selected-packages'."
(symbol-name (car elt))))
package-archive-contents))
nil t))
"
\p
"
)))
(when (and
arg
(not (memq pkg package-selected-packages)))
t
)))
(when (and
mark-selected
(not (memq pkg package-selected-packages)))
(customize-save-variable 'package-selected-packages
(cons pkg package-selected-packages)))
(package-download-transaction
...
...
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