Thierry Volpiatto
88acd70e67
emacs-lisp/package.el (package-reinstall): Don't change selected status.
2015-02-03 11:18:46 +00:00
Artur Malabarba
8ad2ee33a1
emacs-lisp/package.el (package--get-deps): Fix returning duplicates.
2015-02-02 13:26:40 -02:00
Artur Malabarba
ef6fa2fe0d
emacs-lisp/package.el (package-menu-execute): Clean unnecessary `and'.
2015-02-02 13:25:16 -02:00
Artur Malabarba
fe188b2e4f
emacs-lisp/package.el (package-initialize): Populate `package-selected-packages'.
2015-02-02 11:56:35 +00:00
Thierry Volpiatto
060dc14590
emacs-lisp/package.el: Fix previous patch
2015-02-02 10:15:36 +00:00
Artur Malabarba
0326960d3d
emacs-lisp/package.el: Many style changes
2015-02-01 21:01:37 -02:00
Artur Malabarba
8334021e5a
package.el (package--get-deps): Fix for indirect dependencies.
2015-02-01 20:50:13 -02:00
Artur Malabarba
5329208baf
emacs-lisp/package.el (package-install): Rename ARG to MARK-SELECTED.
2015-02-01 20:34:16 -02:00
Artur Malabarba
0ade763b74
emacs-lisp/package.el (package-selected-packages): Fix :type
2015-02-01 20:28:21 -02:00
Thierry Volpiatto
e2f0f263df
emacs-lisp/package.el: Don't allow deleting dependencies.
2015-02-01 20:17:51 -02:00
Artur Malabarba
9a895795e8
emacs-lisp/package.el (package-dir-info): Fix `while' logic.
2015-01-20 22:21:23 -02:00
Artur Malabarba
8ab85ee7ce
(package--append-to-alist): Updated docstring due to new name.
2015-01-18 10:39:26 -02:00
Artur Malabarba
3ccbda730d
package.el (package--append-to-alist): Renamed from `add-to-alist'
2015-01-18 10:13:07 -02:00
Jorgen Schaefer
d80fed0963
Type fix for defcustom.
...
* emacs-lisp/package.el (package-archive-priorities): Specify
correct type.
2015-01-17 11:58:58 +01:00
Artur Malabarba
a2cd6d90d2
emacs-lisp/package.el and package-x.el: References to package-desc-kind
2015-01-16 22:21:12 -02:00
Artur Malabarba
64fd1a5a59
(package-install-file): Install packages from directory.
2015-01-16 22:19:17 -02:00
Artur Malabarba
bc2f8d064b
(package-install-from-buffer): Install packages from dired buffer.
2015-01-16 22:19:17 -02:00
Artur Malabarba
2fe6110d71
* emacs-lisp/package.el (package-dir-info): New function.
...
Find package information for a directory. The return result is a
`package-desc'.
2015-01-16 22:19:17 -02:00
Artur Malabarba
be6dbd4b1e
* emacs-lisp/package.el (package--read-pkg-desc): New function.
...
Read a `define-package' form in current buffer. Return the pkg-desc,
with desc-kind set to KIND.
2015-01-16 22:19:17 -02:00
Jorgen Schaefer
b689b906f2
Package archives now have priorities.
...
* lisp/package.el: Provide repository priorities.
(package-archive-priorities): New variable.
(package--add-to-alist): New function.
(package--add-to-archive-contents): Use it.
(package-menu--find-upgrades): Use it as well. Small clean up to
make the use of the package name here explicit.
(package-archive-priority): New function.
(package-desc-priority-version): New function.
Fixes: debbugs:19296
2015-01-16 11:23:36 +01:00
Paul Eggert
7e09ef09a4
Update copyright year to 2015
...
Run admin/update-copyright.
2015-01-01 14:26:41 -08:00
Sam Steingold
f87eff571a
Fix the `with-demoted-errors' calls
...
* lisp/emacs-lisp/package.el (package-activate-1): Fix the
`with-demoted-errors' calls: the first argument must be a string literal.
2014-12-18 15:24:39 -05:00
Sam Steingold
0f765f454d
Avoid a compilation warning
...
* lisp/emacs-lisp/package.el: Avoid a compilation warning by declaring
the `find-library-name' function.
2014-12-18 15:23:15 -05:00
Dmitry Gutov
36c43e95de
Fixes: debbugs:19390
...
* lisp/emacs-lisp/package.el (package-activate): Do not re-activate or
reload the dependencies.
2014-12-18 18:44:11 +02:00
Dmitry Gutov
18d4bdf135
Don't reload packages at startup
...
Fixes: debbugs:19390
* lisp/emacs-lisp/package.el (package-activate-1): Add RELOAD argument
and a docstring.
(package-activate): Call itself on dependencies on PACKAGE with
the same FORCE argument. Pass FORCE as RELOAD into
`package-activate-1' .
2014-12-18 12:10:34 +02:00
Sam Steingold
92bad2aa05
load-history may contain nil "filenames"
...
* lisp/emacs-lisp/package.el (package--list-loaded-files): Handle
`(nil ...)' elements in `load-history'.
2014-12-17 16:57:09 -05:00
Dmitry Gutov
894a1f3348
Speed up package--list-loaded-files a bit
...
Fixes: debbugs:19390
* lisp/emacs-lisp/package.el (package--list-loaded-files): Don't call
file-truename on load-history elements.
2014-12-17 03:23:07 +02:00
Steve Purcell
eaf25ad549
Add an extra column for Version in list-packages table
...
* emacs-lisp/package.el (package-menu-mode): Use an extra column for
the "Version" column, to accomodate date-and-time-based versions.
2014-12-14 15:56:22 +02:00
Artur Malabarba
c13baa10d5
emacs-lisp/package.el (package-activate-1): Reload package after upgrade
...
After installing a package, reloads files returned by
`package--list-loaded-files'.
Fix bug#10125, bug#18443, and bug#18448.
2014-12-13 12:31:20 +00:00
Artur Malabarba
afd801f9a7
emacs-lisp/package.el (package--list-loaded-files): New function
...
List files in a given directory which correspond to already loaded
files.
2014-12-13 12:31:20 +00:00
Daiki Ueno
55ea575e13
package.el: Fix the last commit
2014-11-06 15:29:24 +09:00
Daiki Ueno
4cd90e0920
package.el: Display output sent to stderr, when verification failed
...
* emacs-lisp/package.el (package--display-verify-error): New function.
(package--check-signature): Use it to display output sent to stderr.
2014-11-06 12:44:52 +09:00
Vincent Belaïche
b5dc75aed7
* ses.el (macroexp): add require for this package, so that function
...
`ses--cell gets macroexp-quote.
(ses--cell): makes formula a macroexp-quote of value when formula
is nil. The rationale of this changr is to allow in the future
shorter SES files, e.g. we could have only `(ses-cell A1 1.0)'
instead of `(ses-cell A1 1.0 1.0 nil REFLIST)'. In such a case
reference list REFLIST would be re-computed after load --- thus
trading off load time against file size.
* emacs-lisp/package.el (package--alist-to-plist-args): use
macroexp-quote instead of a lambda expression which has the same
content as macroexp-quote.
(macroexp): add require for this package, so that function
`package--alist-to-plist-args' gets macroexp-quote.
* emacs-lisp/macroexp.el (macroexp-quote): new defun.
2014-10-25 01:02:25 +02:00
Stefan Monnier
e77628bd58
* lisp/epg.el: Use cl-defstruct.
...
(epg-make-data-from-file, epg-make-data-from-string, epg-data-file)
(epg-data-string): Define via cl-defstruct.
(epg--gv-nreverse): New macro.
(epg-context--make): New constructor (provided vi cl-defstruct).
(epg-make-context): Rewrite using it.
(epg-context-protocol, epg-context-program)
(epg-context-home-directory, epg-context-armor, epg-context-textmode)
(epg-context-include-certs, epg-context-cipher-algorithm)
(epg-context-digest-algorithm, epg-context-compress-algorithm)
(epg-context-passphrase-callback, epg-context-progress-callback)
(epg-context-signers, epg-context-sig-notations, epg-context-process)
(epg-context-output-file, epg-context-result, epg-context-operation)
(epg-context-pinentry-mode): Define using cl-defstruct.
(epg-context-set-protocol, epg-context-set-program)
(epg-context-set-include-certs, epg-context-set-cipher-algorithm)
(epg-context-set-digest-algorithm)
(epg-context-set-sig-notations, epg-context-set-process)
(epg-context-set-output-file, epg-context-set-result)
(epg-context-set-operation, epg-context-set-pinentry-mode)
(epg-context-set-compress-algorithm): Remove. Use setf instead.
(epg-context-set-armor, epg-context-set-textmode)
(epg-context-set-signers): Redefine using setf
and declare as obsolete.
(epg-context-set-passphrase-callback)
(epg-context-set-progress-callback): Use setf.
(epg-signature-notations): Rename from epg-sig-notations.
(epg-make-signature, epg-signature-status, epg-signature-key-id)
(epg-signature-validity, epg-signature-fingerprint)
(epg-signature-creation-time, epg-signature-expiration-time)
(epg-signature-pubkey-algorithm, epg-signature-digest-algorithm)
(epg-signature-class, epg-signature-version): Define vi cl-defstruct.
(epg-signature-set-status, epg-signature-set-key-id)
(epg-signature-set-validity, epg-signature-set-fingerprint)
(epg-signature-set-creation-time, epg-signature-set-expiration-time)
(epg-signature-set-pubkey-algorithm)
(epg-signature-set-digest-algorithm, epg-signature-set-class)
(epg-signature-set-version, epg-signature-set-notations): Remove.
Use setf instead.
(epg-make-new-signature, epg-new-signature-type)
(epg-new-signature-pubkey-algorithm)
(epg-new-signature-digest-algorithm, epg-new-signature-class)
(epg-new-signature-creation-time, epg-new-signature-fingerprint):
Define using cl-defstruct.
(epg-make-key, epg-key-owner-trust, epg-key-sub-key-list)
(epg-key-user-id-list): Define using cl-defstruct.
(epg-key-set-sub-key-list, epg-key-set-user-id-list): Remove.
Use setf instead.
(epg-make-sub-key, epg-sub-key-validity, epg-sub-key-capability)
(epg-sub-key-secret-p, epg-sub-key-algorithm, epg-sub-key-length)
(epg-sub-key-id, epg-sub-key-creation-time)
(epg-sub-key-expiration-time, epg-sub-key-fingerprint): Define using
cl-defstruct.
(epg-sub-key-set-fingerprint): Remove. Use setf instead.
(epg-make-user-id, epg-user-id-validity, epg-user-id-string)
(epg-user-id-signature-list): Define using cl-defstruct.
(epg-user-id-set-signature-list): Remove. Use setf instead.
(epg-make-key-signature, epg-key-signature-validity)
(epg-key-signature-pubkey-algorithm, epg-key-signature-key-id)
(epg-key-signature-creation-time, epg-key-signature-expiration-time)
(epg-key-signature-user-id, epg-key-signature-class)
(epg-key-signature-exportable-p): Define using cl-defstruct.
(epg-make-sig-notation, epg-sig-notation-name)
(epg-sig-notation-value, epg-sig-notation-human-readable)
(epg-sig-notation-critical): Define using cl-defstruct.
(epg-sig-notation-set-value): Remove. Use setf instead.
(epg-make-import-status, epg-import-status-fingerprint)
(epg-import-status-reason, epg-import-status-new)
(epg-import-status-user-id, epg-import-status-signature)
(epg-import-status-sub-key, epg-import-status-secret): Define using
cl-defstruct.
(epg-make-import-result, epg-import-result-considered)
(epg-import-result-no-user-id, epg-import-result-imported)
(epg-import-result-imported-rsa, epg-import-result-unchanged)
(epg-import-result-new-user-ids, epg-import-result-new-sub-keys)
(epg-import-result-new-signatures, epg-import-result-new-revocations)
(epg-import-result-secret-read, epg-import-result-secret-imported)
(epg-import-result-secret-unchanged, epg-import-result-not-imported)
(epg-import-result-imports): Define using cl-defstruct.
* lisp/emacs-lisp/package.el: Require EPG during macroexpansion.
(package--check-signature, package-import-keyring): Use setf instead of
epg-context-set-home-directory.
2014-10-23 17:38:56 -04:00
Stefan Monnier
d7f413b893
Merge from emacs-24
2014-10-02 11:13:05 -04:00
Glenn Morris
c8ea4b9f3d
* package.el (package-import-keyring): Create gnupg directory private.
...
See bug#17625#155.
2014-10-01 19:39:50 -04:00
Stefan Monnier
07bec0fc67
Merge from emacs-24
2014-09-30 19:19:31 -04:00
Stefan Monnier
a5426ef3c2
* lisp/emacs-lisp/package.el (package-check-signature): Default to nil if
...
GPG is not available.
(package-refresh-contents): Don't mess with the keyring if we won't
check the signatures anyway.
2014-09-27 12:25:53 -04:00
Glenn Morris
62fca47221
Merge from emacs-24; up to 2014-07-04T02:28:54Z!dmantipov@yandex.ru
2014-09-02 21:21:40 -07:00
Stefan Monnier
559b827d8a
* lisp/emacs-lisp/package.el (package-generate-description-file):
...
Properly quote the arguments. Change second arg.
(package--alist-to-plist-args): Rename from package--alist-to-plist and
quote the elements.
(package--make-autoloads-and-stuff): Fix the test for pre-existence of
the *-pkg.el file. Adjust to new calling convention of
package-generate-description-file.
Fixes: debbugs:18332
2014-09-02 15:51:25 -04:00
Daiki Ueno
2493e35c36
* lisp/emacs-lisp/package.el (package--check-signature): (backport)
...
If package-check-signature is allow-unsigned, don't signal error when
we can't verify signature because of missing public key.
Fixes: debbugs:17625
2014-06-26 09:47:37 -04:00
Daiki Ueno
51a3c85711
package.el: Don't signal "no public key" error if allow-unsigned
...
* emacs-lisp/package.el (package--check-signature): If
package-check-signature is allow-unsigned, don't signal error when
we can't verify signature because of missing public key
(bug#17625).
2014-06-26 16:10:22 +09:00
Glenn Morris
9ac6d28ab8
Merge from emacs-24; up to 2014-06-11T19:33:14Z!rgm@gnu.org
2014-06-25 23:55:15 -07:00
Stefan Monnier
0a27804c80
* lisp/emacs-lisp/package.el (package-list-unsigned): New var.
...
(package-desc-status): Obey it.
Fixes: debbugs:17625
2014-06-25 13:20:08 -04:00
Glenn Morris
36cf8493af
Merge from emacs-24; up to 2014-06-01T23:37:59Z!eggert@cs.ucla.edu
2014-06-07 17:35:27 -07:00
Glenn Morris
879f52734c
* lisp/emacs-lisp/package.el: Comment update
2014-06-05 00:08:42 -07:00
Glenn Morris
e1b3f35f93
Some documentation for signing of packages
...
* doc/emacs/package.texi (Package Menu, Package Installation):
Mention signed packages.
* doc/lispref/package.texi (Package Archives): Mention signing packages.
* lisp/emacs-lisp/package.el (package-check-signature)
(package-unsigned-archives): Doc fixes.
* etc/NEWS: Related edits.
2014-06-04 23:15:44 -07:00
Glenn Morris
910dc8d312
* lisp/emacs-lisp/package.el (package-pinned-packages): Doc fix.
...
* etc/NEWS: Related edit.
2014-06-02 21:41:20 -07:00
Glenn Morris
953e106ac8
Merge from emacs-24; up to 2014-05-29T17:16:00Z!dmantipov@yandex.ru
2014-06-01 17:18:22 -07:00
Glenn Morris
ff66db7950
Fix typo in previous
2014-05-29 22:15:29 -07:00