1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00
Commit Graph

254 Commits

Author SHA1 Message Date
Artur Malabarba
864573cafe * lisp/emacs-lisp/package.el (package-all-keywords): Don't cache
(package--all-keywords): Deleted variable.
2015-04-25 17:04:02 +01:00
Paul Eggert
2f5da6d45a Spelling fixes 2015-04-24 23:19:59 -07:00
Artur Malabarba
8991937a74 * lisp/emacs-lisp/package.el: Hide lower-priority packages in menu
(package-menu-hide-low-priority): New variable, see its doc.
(package-archive-priorities): Update doc.
(package-desc-priority): New function.
(package-desc-priority-version): Use it.
(package--remove-hidden): New function.
(package-menu--refresh): Use it.
2015-04-22 11:27:47 +01:00
Artur Malabarba
c3b41c6448 * lisp/emacs-lisp/package.el: Implement displaying obsolete packages
(package-menu--hide-obsolete): New variable.
(package--remove-hidden): Use it.
(package-menu-hide-obsolete): New interactive function to toggle
the variable.
(package--quick-help-keys): Document it.
(package-menu-async): Add :version tag.
(package-menu-mode-map): Bind package-menu-hide-obsolete.
(package-desc-status): Indicate non-installed obsolete packages as
avail-obso.
(package-menu-mark-install): Allow installation of avail-obso.
(package-menu--status-predicate): Sort avail-obso with available.
2015-04-22 11:27:47 +01:00
Artur Malabarba
b7a015f5e0 * lisp/emacs-lisp/package.el: Filter by multiple keywords and cache keywords
(package-menu-filter): Accept a list of keywords.

(package--all-keywords): New variable to cache known keywords.
(package-all-keywords): Populate it if necessary.
(package-refresh-contents): Reset it.
2015-04-20 20:47:18 +01:00
Artur Malabarba
fad6b8a093 * lisp/emacs-lisp/package.el: Make archive and status pseudo-keywords
(package--has-keyword-p): Understand "arc:xxxx" and "status:xxxx"
as special keywords which match agains package archive and status
respectively.

* etc/NEWS: Document it.
2015-04-20 20:47:18 +01:00
Steve Purcell
4155619aac Assume package archive-contents are UTF8-encoded
* lisp/emacs-lisp/package.el (package--read-archive-file):
Set `coding-system-for-read' explicitly to 'utf-8 when reading the
downloaded and cached archive-contents files, so that non-ASCII
characters in package descriptions are displayed correctly in the
`list-packages' menu. (Bug#20231)

Co-authored-by: Steve Purcell <steve@sanityinc.com>
2015-04-19 17:56:46 +01:00
Sam Steingold
e45dbdc386 package--ensure-init-file: widen requires save-restriction 2015-04-14 15:14:20 -04:00
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