Artur Malabarba
f4d7de6f9c
emacs-lisp/package.el: Add missing (require 'subr-x)
2015-02-05 21:41:02 -02:00
Artur Malabarba
a844b94074
emacs-lisp/package.el (package-delete): Don't always delesect.
2015-02-05 20:47:28 -02:00
Artur Malabarba
b2c4997c82
emacs-lisp/package.el (package-menu-mark-install): Mark dependency.
2015-02-05 20:33:23 -02:00
Artur Malabarba
3c5ac25702
emacs-lisp/package.el (package-menu-execute): Delete packages in order.
2015-02-05 20:12:47 -02:00
Tassilo Horn
da9c6486d2
Fix typo causing a void-variable error: pkg-desc
...
* emacs-lisp/package.el (package-installed-p): Fix typo causing
void-variable error.
2015-02-04 20:39:16 +01:00
Artur Malabarba
102a21d689
emacs-lisp/package.el (package-reinstall): Accept package-desc objects.
2015-02-04 15:17:06 +00:00
Artur Malabarba
5687ac9f01
emacs-lisp/package.el (package-install): Mark dependencies as selected.
...
In particular, when given a package-desc object which is already
installed, the package is not downloaded again.
2015-02-04 15:04:46 +00:00
Artur Malabarba
5b83f03725
emacs-lisp/package.el (package-delete): Always unselect package.
2015-02-04 11:01:02 -02:00
Artur Malabarba
200a47d45c
emacs-lisp/package.el (package--read-pkg-desc): Fix tar-desc reference.
2015-02-03 18:14:28 -02:00
Artur Malabarba
2a4a5069a6
emacs-lisp/package.el (package-menu-execute): Offer to remove packages.
2015-02-03 17:51:39 -02:00
Artur Malabarba
504fada7e7
emacs-lisp/package.el (package-desc-status): Add "dependency" status to Package Menu.
2015-02-03 13:56:59 +00:00
Artur Malabarba
c184e85ea2
emacs-lisp/package.el (package--user-selected-p): New function.
...
Populates `package-selected-packages' if necessary, and then checks if
symbol PKG is contained in it.
2015-02-03 13:54:41 +00:00
Artur Malabarba
2a4a94db1a
emacs-lisp/package.el (package--get-deps): delete-dups when ONLY is nil.
2015-02-03 11:36:10 +00:00
Artur Malabarba
0ee15a20bc
emacs-lisp/package.el (package-delete): Document NOSAVE.
2015-02-03 11:19:56 +00:00
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