Sam Steingold
845cb4a2ce
package--ensure-init-file: widen before looking for "(package-initialize)"
2015-04-13 23:27:02 -04:00
Artur Malabarba
2bad549b95
* lisp/emacs-lisp/package.el: Fix package--ensure-init-file
2015-04-13 20:51:14 +01:00
Artur Malabarba
e99d8cb25d
* lisp/emacs-lisp/package.el: Improve transaction y-or-n prompt
...
(package-menu--prompt-transaction-p): Prompt for "Delete" first,
"Upgrade" last, and use capitalized instead of all-caps.
2015-04-12 16:16:06 +01:00
Artur Malabarba
5aa0dfe4b7
* lisp/emacs-lisp/package.el: Completely silence async operations
...
(package--make-autoloads-and-stuff): Silence autoloads.
(package--save-selected-packages): New function, silences
`customize-save-variable'.
(package--user-selected-p, package-install-from-buffer)
(package-delete, package-install): Use it.
(package-install-from-archive)
(package-menu--perform-transaction): Silence.
(package-menu-execute): Feedback when operation starts.
2015-04-12 16:16:06 +01:00
Artur Malabarba
dfdd7e1944
Use delay-mode-hooks when visiting the init-file
...
* lisp/emacs-lisp/package.el (package--ensure-init-file):
delay-mode-hooks
* lisp/cus-edit.el (custom-save-all): delay-mode-hooks
2015-04-12 16:16:06 +01:00
Artur Malabarba
d0fcb21254
* lisp/emacs-lisp/package.el (list-packages): Avoid redundant generate
2015-04-12 13:47:58 +01:00
Artur Malabarba
d06eeb85e0
* lisp/emacs-lisp/package.el (list-packages): Call refresh in right buffer
2015-04-12 13:45:30 +01:00
Artur Malabarba
50ddc67739
* lisp/emacs-lisp/package.el: Improve `package-menu-refresh'
...
(package-menu-refresh): Respect async and do new package checking.
(list-packages): Use `package-menu-refresh' instead of repeating code.
2015-04-12 03:57:58 +01:00
Artur Malabarba
6f87b180dd
* lisp/emacs-lisp/package.el: Improve package-menu-quick-help
...
(package--quick-help-keys): New variable.
(package--prettify-quick-help-key): New function.
(package-menu-quick-help): Use it.
2015-04-12 03:09:50 +01:00
Artur Malabarba
357edb4e89
* lisp/emacs-lisp/package.el: Fix initially wrong compat table
...
(package--build-compatibility-table): require finder
2015-04-12 02:33:29 +01:00
Artur Malabarba
ba273b6185
* lisp/emacs-lisp/package.el: Silence async operations
...
(package--silence): New variable.
(package--message): New function.
(package-import-keyring, package-refresh-contents)
(package-compute-transaction, package-install, package-delete)
(package-menu--perform-transaction, package-menu-execute): Use it.
2015-04-12 01:52:43 +01:00
Artur Malabarba
c1daad42c6
* lisp/emacs-lisp/package.el: Use mode-line-process for notification
2015-04-10 00:47:05 +01:00
Artur Malabarba
a480a51f24
* lisp/emacs-lisp/package.el (package-menu-mode): Mode-line notification
...
while dowloading information.
2015-04-08 19:27:45 +01:00
Artur Malabarba
0465c9dd42
* lisp/emacs-lisp/package.el: More conservative `ensure-init-file'
...
(package--ensure-init-file): Check file contents before visiting.
(package-initialize): Call it.
(package-install-from-buffer, package-install): Don't call it.
2015-04-08 19:18:30 +01:00
Artur Malabarba
c91fd97dfb
* emacs-lisp/package.el: Make the execute prompt less verbose.
...
(package-menu--list-to-prompt): New function.
(package-menu--prompt-transaction-p): Use "Upgrade" to make the
package-menu-execute prompt less verbose.
2015-04-06 17:09:43 +01:00
Artur Malabarba
67c152efc3
* emacs-lisp/package.el: Fix lack of "new" packages.
...
(package-menu--new-package-list)
(package-menu--old-archive-contents): No longer local.
2015-04-06 16:22:07 +01:00
Artur Malabarba
7471fc47b4
emacs-lisp/package.el (package-menu-execute): Add async support
...
Most install/delete logic is now in
`package-menu--perform-transaction', and this function is called
asynchronously if `package-menu-async' is non-nil.
2015-04-06 11:19:04 +01:00
Artur Malabarba
6701726b98
emacs-lisp/package.el (package-install): Add ASYNC and CALLBACK
2015-04-06 11:19:04 +01:00
Artur Malabarba
b6610d5547
emacs-lisp/package.el: Refactor pre-execute prompt
2015-04-06 11:19:04 +01:00
Artur Malabarba
7436b68132
emacs-lisp/package.el: Async support in download-transaction
2015-04-06 11:19:04 +01:00
Artur Malabarba
fdc521952e
emacs-lisp/package.el: Add package-initialize to user-init-file.
2015-04-05 11:06:20 +01:00
Artur Malabarba
b47fe819f7
emacs-lisp/package.el: Prevent outdated downloads-in-progress.
2015-04-05 10:59:18 +01:00
Artur Malabarba
b32bb3f2f6
(package--with-work-buffer-async): Protect macro arguments.
2015-04-04 20:44:59 +01:00
Artur Malabarba
f674de6f08
emacs-lisp/package.el: Don't overwrite downloads-in-progress.
2015-04-04 20:22:26 +01:00
Paul Eggert
bd55cd4d24
* emacs-lisp/package.el: Spelling fixes and use active voice.
2015-04-01 10:22:20 -07:00
Artur Malabarba
aa33f4a100
* emacs-lisp/package.el: Make package-menu asynchronous.
...
(package-menu-async): New variable. Controls whether
`list-packages' is asynchronous.
(list-packages): Now asynchronous by default.
(package-menu--new-package-list): Always buffer-local.
(package-menu--post-refresh)
(package-menu--find-and-notify-upgrades)
(package-menu--populate-new-package-list): New functions.
2015-04-01 11:09:00 +01:00
Artur Malabarba
ba7a1a7a4e
* emacs-lisp/package.el: Implement asynchronous refreshing.
...
(package--with-work-buffer-async)
(package--check-signature-content)
(package--update-downloads-in-progress): New functions.
(package--check-signature, package--download-one-archive)
(package--download-and-read-archives, package-refresh-contents):
Optional arguments for async usage.
(package--post-download-archives-hook): New variable. Hook run
after every refresh.
2015-04-01 11:08:03 +01:00
Artur Malabarba
a7270fb20f
emacs-lisp/package.el: Reorganize package.el
...
Reorganize package.el and divide it with page-breaks and comments
2015-03-31 00:47:31 +01:00
Jan D
e6127d9474
* lisp/emacs-lisp/package.el (package-refresh-contents): Fix spelling error
2015-03-28 23:05:30 +01:00
Jan D
733a9f114c
Fixes: debbugs:17879
...
* lisp/emacs-lisp/package.el (package-refresh-contents): Add a message at
the end so it does not appear to have hanged.
2015-03-28 12:15:18 +01:00
Paul Eggert
33d9869b5f
Spelling and minor grammar fixes
2015-03-10 00:49:57 -07:00
Artur Malabarba
17ecfea3b9
package.el (package-refresh-contents): Update doc.
2015-03-05 13:25:53 +00:00
Artur Malabarba
bfbcec128a
emacs-lisp/package.el (package-autoremove): Fix if logic.
2015-03-03 15:15:26 +00:00
Paul Eggert
14b4e657e2
Spelling fixes
...
* lisp/cedet/semantic/doc.el (semantic-documentation-comment-preceding-tag):
Rename from semantic-documentation-comment-preceeding-tag. All
uses changed. Leave an obsolete alias behind.
* src/lisp.h (DEFINE_NON_NIL_Q_SYMBOL_MACROS):
Rename from DEFINE_NONNIL_Q_SYMBOL_MACROS. All uses changed.
2015-02-21 20:01:05 -08:00
Artur Malabarba
f4f4f93e42
emacs-lisp/package.el (describe-package-1): Describe incompatibility.
2015-02-14 15:09:50 -02:00
Artur Malabarba
34c7535912
emacs-lisp/package.el: Move the compatibility-table building logic.
2015-02-14 11:13:29 -02:00
Artur Malabarba
a03ab7eaf5
emacs-lisp/package.el (describe-package-1): Fix "incompat" handling.
2015-02-13 13:08:38 +00:00
Artur Malabarba
3b8b549fff
emacs-lisp/package.el (package--incompatible-p): Check dependencies.
2015-02-13 12:26:46 +00:00
Artur Malabarba
511acc77a4
emacs-lisp/package.el: Indicate incompatible packages.
...
These are packages which require a higher emacs version than the
current one.
2015-02-12 00:14:46 -02:00
Artur Malabarba
0a66ca36fa
emacs-lisp/package.el (package-install): Invert the second argument.
2015-02-12 00:14:46 -02:00
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