diff options
| author | Glenn Morris | 2014-06-02 21:41:20 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-06-02 21:41:20 -0700 |
| commit | 910dc8d31264e2105e876c686206521c5dc47c64 (patch) | |
| tree | 39d462f102b0215f049073105ad67e6985198b41 | |
| parent | 335908691102a2aad107ce00046ee98e80509ff1 (diff) | |
| download | emacs-910dc8d31264e2105e876c686206521c5dc47c64.tar.gz emacs-910dc8d31264e2105e876c686206521c5dc47c64.zip | |
* lisp/emacs-lisp/package.el (package-pinned-packages): Doc fix.
* etc/NEWS: Related edit.
| -rw-r--r-- | etc/NEWS | 4 | ||||
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/package.el | 27 |
3 files changed, 23 insertions, 12 deletions
| @@ -816,8 +816,8 @@ Use `electric-indent-mode' instead. | |||
| 816 | 816 | ||
| 817 | ** Package | 817 | ** Package |
| 818 | 818 | ||
| 819 | FIXME | 819 | *** New option `package-pinned-packages'. This is useful if you have multiple |
| 820 | *** New option `package-pinned-packages'. | 820 | archives enabled, with more than one offering a package that you want. |
| 821 | 821 | ||
| 822 | FIXME | 822 | FIXME |
| 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 @@ | |||
| 1 | 2014-06-03 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/package.el (package-pinned-packages): Doc fix. | ||
| 4 | |||
| 1 | 2014-06-02 Eli Zaretskii <eliz@gnu.org> | 5 | 2014-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 | 233 | This can be useful if you have multiple package archives enabled, | |
| 234 | Each element has the form (SYM . ID). | 234 | and 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 | 236 | Each 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 | |
| 239 | If the archive of name ID does not contain the package SYM, no | 239 | an element in `package-archives', e.g. \"gnu\"). |
| 240 | other location will be considered, which will make the | 240 | |
| 241 | package unavailable." | 241 | Adding an entry to this variable means that only ARCHIVE will be |
| 242 | considered as a source for PACKAGE. If other archives provide PACKAGE, | ||
| 243 | they are ignored (for this package). If ARCHIVE does not contain PACKAGE, | ||
| 244 | the 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") |