Commit 910dc8d3 authored by Glenn Morris's avatar Glenn Morris
Browse files

* lisp/emacs-lisp/package.el (package-pinned-packages): Doc fix.

* etc/NEWS: Related edit.
parent 33590869
...@@ -816,8 +816,8 @@ Use `electric-indent-mode' instead. ...@@ -816,8 +816,8 @@ Use `electric-indent-mode' instead.
** Package ** Package
FIXME *** New option `package-pinned-packages'. This is useful if you have multiple
*** New option `package-pinned-packages'. archives enabled, with more than one offering a package that you want.
*** New options `package-check-signature' and `package-unsigned-archives'. *** New options `package-check-signature' and `package-unsigned-archives'.
2014-06-03 Glenn Morris <>
* emacs-lisp/package.el (package-pinned-packages): Doc fix.
2014-06-02 Eli Zaretskii <> 2014-06-02 Eli Zaretskii <>
* menu-bar.el (menu-bar-open): Fix invocation via M-x. * menu-bar.el (menu-bar-open): Fix invocation via M-x.
...@@ -229,18 +229,25 @@ a package can run arbitrary code." ...@@ -229,18 +229,25 @@ a package can run arbitrary code."
:version "24.1") :version "24.1")
(defcustom package-pinned-packages nil (defcustom package-pinned-packages nil
"An alist of packages that are pinned to a specific archive "An alist of packages that are pinned to specific archives.
This can be useful if you have multiple package archives enabled,
Each element has the form (SYM . ID). and want to control which archive a given package gets installed from.
SYM is a package, as a symbol.
ID is an archive name. This should correspond to an Each element of the alist has the form (PACKAGE . ARCHIVE), where:
entry in `package-archives'. PACKAGE is a symbol representing a package
ARCHIVE is a string representing an archive (it should be the car of
If the archive of name ID does not contain the package SYM, no an element in `package-archives', e.g. \"gnu\").
other location will be considered, which will make the
package unavailable." Adding an entry to this variable means that only ARCHIVE will be
considered as a source for PACKAGE. If other archives provide PACKAGE,
they are ignored (for this package). If ARCHIVE does not contain PACKAGE,
the package will be unavailable."
:type '(alist :key-type (symbol :tag "Package") :type '(alist :key-type (symbol :tag "Package")
:value-type (string :tag "Archive name")) :value-type (string :tag "Archive name"))
;; I don't really see why this is risky...
;; I suppose it could prevent you receiving updates for a package,
;; via an entry (PACKAGE . NON-EXISTING). Which could be an issue
;; if PACKAGE has a known vulnerability that is fixed in newer versions.
:risky t :risky t
:group 'package :group 'package
:version "24.4") :version "24.4")
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