diff options
| author | Basil L. Contovounesios | 2020-06-05 14:02:41 +0100 |
|---|---|---|
| committer | Basil L. Contovounesios | 2020-06-05 19:06:00 +0100 |
| commit | cc35b197c7720e0687c6a994df9a4cf767298712 (patch) | |
| tree | f78f0f87e59739926c33e600681a51a1005d90ea | |
| parent | bf09106256f9212d3162a4335c18fd2ef876066d (diff) | |
| download | emacs-cc35b197c7720e0687c6a994df9a4cf767298712.tar.gz emacs-cc35b197c7720e0687c6a994df9a4cf767298712.zip | |
Update package-menu-quick-help
* lisp/emacs-lisp/package.el (package--quick-help-keys): Filtering
is now bound to the prefix '/', not the key 'f' (bug#41721).
Advertise only the standard 'g' binding now that both it and 'r' are
bound to revert-buffer (bug#35504).
(package--prettify-quick-help-key): Avoid modifying string literals.
(package-menu-filter): Reintroduce as obsolete alias of
package-menu-filter-by-keyword for backward
compatibility (bug#36981).
| -rw-r--r-- | lisp/emacs-lisp/package.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 7af40247f30..7d6be3cf4e2 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -3279,7 +3279,7 @@ If optional arg BUTTON is non-nil, describe its associated package." | |||
| 3279 | '(("install," "delete," "unmark," ("execute" . 1)) | 3279 | '(("install," "delete," "unmark," ("execute" . 1)) |
| 3280 | ("next," "previous") | 3280 | ("next," "previous") |
| 3281 | ("Hide-package," "(-toggle-hidden") | 3281 | ("Hide-package," "(-toggle-hidden") |
| 3282 | ("refresh-contents," "g-redisplay," "filter," "help"))) | 3282 | ("g-refresh-contents," "/-filter," "help"))) |
| 3283 | 3283 | ||
| 3284 | (defun package--prettify-quick-help-key (desc) | 3284 | (defun package--prettify-quick-help-key (desc) |
| 3285 | "Prettify DESC to be displayed as a help menu." | 3285 | "Prettify DESC to be displayed as a help menu." |
| @@ -3287,7 +3287,7 @@ If optional arg BUTTON is non-nil, describe its associated package." | |||
| 3287 | (if (listp (cdr desc)) | 3287 | (if (listp (cdr desc)) |
| 3288 | (mapconcat #'package--prettify-quick-help-key desc " ") | 3288 | (mapconcat #'package--prettify-quick-help-key desc " ") |
| 3289 | (let ((place (cdr desc)) | 3289 | (let ((place (cdr desc)) |
| 3290 | (out (car desc))) | 3290 | (out (copy-sequence (car desc)))) |
| 3291 | (add-text-properties place (1+ place) | 3291 | (add-text-properties place (1+ place) |
| 3292 | '(face (bold font-lock-warning-face)) | 3292 | '(face (bold font-lock-warning-face)) |
| 3293 | out) | 3293 | out) |
| @@ -3719,6 +3719,9 @@ Statuses available include \"incompat\", \"available\", | |||
| 3719 | (list keyword) | 3719 | (list keyword) |
| 3720 | keyword))) | 3720 | keyword))) |
| 3721 | 3721 | ||
| 3722 | (define-obsolete-function-alias | ||
| 3723 | 'package-menu-filter #'package-menu-filter-by-keyword "27.1") | ||
| 3724 | |||
| 3722 | (defun package-menu-filter-by-name (name) | 3725 | (defun package-menu-filter-by-name (name) |
| 3723 | "Filter the \"*Packages*\" buffer by NAME. | 3726 | "Filter the \"*Packages*\" buffer by NAME. |
| 3724 | Show only those items whose name matches the regular expression | 3727 | Show only those items whose name matches the regular expression |