diff options
| author | Artur Malabarba | 2015-04-25 17:03:32 +0100 |
|---|---|---|
| committer | Artur Malabarba | 2015-04-25 17:04:02 +0100 |
| commit | 864573cafeabec9ce9d79a7bb4eb60a94f303847 (patch) | |
| tree | 1d721bb31ef116669166e7830b81c51376bd2125 | |
| parent | f8d660280d04728b2733e512772c5100eb44bdb4 (diff) | |
| download | emacs-864573cafeabec9ce9d79a7bb4eb60a94f303847.tar.gz emacs-864573cafeabec9ce9d79a7bb4eb60a94f303847.zip | |
* lisp/emacs-lisp/package.el (package-all-keywords): Don't cache
(package--all-keywords): Deleted variable.
| -rw-r--r-- | lisp/emacs-lisp/package.el | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index e45d79aa01d..f770acd557e 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -1373,11 +1373,6 @@ it to the file." | |||
| 1373 | (defvar package--downloads-in-progress nil | 1373 | (defvar package--downloads-in-progress nil |
| 1374 | "List of in-progress asynchronous downloads.") | 1374 | "List of in-progress asynchronous downloads.") |
| 1375 | 1375 | ||
| 1376 | (defvar package--all-keywords nil | ||
| 1377 | "List of known keywords. | ||
| 1378 | Generated by `package-all-keywords'. Reset to nil whenever the | ||
| 1379 | package archives are retrieved.") | ||
| 1380 | |||
| 1381 | (declare-function epg-check-configuration "epg-config" | 1376 | (declare-function epg-check-configuration "epg-config" |
| 1382 | (config &optional minimum-version)) | 1377 | (config &optional minimum-version)) |
| 1383 | (declare-function epg-configuration "epg-config" ()) | 1378 | (declare-function epg-configuration "epg-config" ()) |
| @@ -1495,7 +1490,6 @@ downloads in the background." | |||
| 1495 | (interactive) | 1490 | (interactive) |
| 1496 | (unless (file-exists-p package-user-dir) | 1491 | (unless (file-exists-p package-user-dir) |
| 1497 | (make-directory package-user-dir t)) | 1492 | (make-directory package-user-dir t)) |
| 1498 | (setq package--all-keywords nil) | ||
| 1499 | (let ((default-keyring (expand-file-name "package-keyring.gpg" | 1493 | (let ((default-keyring (expand-file-name "package-keyring.gpg" |
| 1500 | data-directory)) | 1494 | data-directory)) |
| 1501 | (package--silence async)) | 1495 | (package--silence async)) |
| @@ -2570,11 +2564,11 @@ KEYWORDS should be nil or a list of keywords." | |||
| 2570 | 2564 | ||
| 2571 | (defun package-all-keywords () | 2565 | (defun package-all-keywords () |
| 2572 | "Collect all package keywords" | 2566 | "Collect all package keywords" |
| 2573 | (unless package--all-keywords | 2567 | (let ((key-list)) |
| 2574 | (package--mapc (lambda (desc) | 2568 | (package--mapc (lambda (desc) |
| 2575 | (let* ((desc-keywords (and desc (package-desc--keywords desc)))) | 2569 | (setq key-list (append (package-desc--keywords desc) |
| 2576 | (setq package--all-keywords (append desc-keywords package--all-keywords)))))) | 2570 | key-list)))) |
| 2577 | package--all-keywords) | 2571 | key-list)) |
| 2578 | 2572 | ||
| 2579 | (defun package--mapc (function &optional packages) | 2573 | (defun package--mapc (function &optional packages) |
| 2580 | "Call FUNCTION for all known PACKAGES. | 2574 | "Call FUNCTION for all known PACKAGES. |