aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2014-06-02 21:41:20 -0700
committerGlenn Morris2014-06-02 21:41:20 -0700
commit910dc8d31264e2105e876c686206521c5dc47c64 (patch)
tree39d462f102b0215f049073105ad67e6985198b41
parent335908691102a2aad107ce00046ee98e80509ff1 (diff)
downloademacs-910dc8d31264e2105e876c686206521c5dc47c64.tar.gz
emacs-910dc8d31264e2105e876c686206521c5dc47c64.zip
* lisp/emacs-lisp/package.el (package-pinned-packages): Doc fix.
* etc/NEWS: Related edit.
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/emacs-lisp/package.el27
3 files changed, 23 insertions, 12 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 368f77bd0f9..44bcb22e85e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -816,8 +816,8 @@ Use `electric-indent-mode' instead.
816 816
817** Package 817** Package
818 818
819FIXME 819*** New option `package-pinned-packages'. This is useful if you have multiple
820*** New option `package-pinned-packages'. 820archives enabled, with more than one offering a package that you want.
821 821
822FIXME 822FIXME
823*** New options `package-check-signature' and `package-unsigned-archives'. 823*** New options `package-check-signature' and `package-unsigned-archives'.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8d4c8d91450..bc9703db3e0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12014-06-03 Glenn Morris <rgm@gnu.org>
2
3 * emacs-lisp/package.el (package-pinned-packages): Doc fix.
4
12014-06-02 Eli Zaretskii <eliz@gnu.org> 52014-06-02 Eli Zaretskii <eliz@gnu.org>
2 6
3 * menu-bar.el (menu-bar-open): Fix invocation via M-x. 7 * menu-bar.el (menu-bar-open): Fix invocation via M-x.
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 8c275c68884..028c57da19c 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -229,18 +229,25 @@ a package can run arbitrary code."
229 :version "24.1") 229 :version "24.1")
230 230
231(defcustom package-pinned-packages nil 231(defcustom package-pinned-packages nil
232 "An alist of packages that are pinned to a specific archive 232 "An alist of packages that are pinned to specific archives.
233 233This can be useful if you have multiple package archives enabled,
234Each element has the form (SYM . ID). 234and want to control which archive a given package gets installed from.
235 SYM is a package, as a symbol. 235
236 ID is an archive name. This should correspond to an 236Each element of the alist has the form (PACKAGE . ARCHIVE), where:
237 entry in `package-archives'. 237 PACKAGE is a symbol representing a package
238 238 ARCHIVE is a string representing an archive (it should be the car of
239If the archive of name ID does not contain the package SYM, no 239an element in `package-archives', e.g. \"gnu\").
240other location will be considered, which will make the 240
241package unavailable." 241Adding an entry to this variable means that only ARCHIVE will be
242considered as a source for PACKAGE. If other archives provide PACKAGE,
243they are ignored (for this package). If ARCHIVE does not contain PACKAGE,
244the package will be unavailable."
242 :type '(alist :key-type (symbol :tag "Package") 245 :type '(alist :key-type (symbol :tag "Package")
243 :value-type (string :tag "Archive name")) 246 :value-type (string :tag "Archive name"))
247 ;; I don't really see why this is risky...
248 ;; I suppose it could prevent you receiving updates for a package,
249 ;; via an entry (PACKAGE . NON-EXISTING). Which could be an issue
250 ;; if PACKAGE has a known vulnerability that is fixed in newer versions.
244 :risky t 251 :risky t
245 :group 'package 252 :group 'package
246 :version "24.4") 253 :version "24.4")