[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-hydra 63549da 354/395: Fix counsel-descbinds for Em
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy-hydra 63549da 354/395: Fix counsel-descbinds for Emacs 28 |
Date: |
Thu, 25 Feb 2021 08:32:37 -0500 (EST) |
branch: externals/ivy-hydra
commit 63549dab8aff95d95acc8a5459e65e67edab1f99
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
Fix counsel-descbinds for Emacs 28
Parts of describe-buffer-bindings were recently rewritten in Elisp.
The new code seems to print page breaks and section headings to
standard-output instead of the current buffer.
* counsel.el (counsel--descbinds-cands): Bind standard-output to the
current buffer before calling describe-buffer-bindings. Simplify.
Fixes #2709.
---
counsel.el | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/counsel.el b/counsel.el
index 481231a..5000611 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1096,21 +1096,22 @@ See `describe-buffer-bindings' for further information."
"<vertical-scroll-bar>" "<horizontal-scroll-bar>")))
res)
(with-temp-buffer
- (let ((indent-tabs-mode t))
+ (let ((standard-output (current-buffer))
+ (indent-tabs-mode t))
(describe-buffer-bindings buffer prefix))
(goto-char (point-min))
;; Skip the "Key translations" section
- (re-search-forward "")
- (forward-char 1)
+ (skip-chars-forward "^\C-l")
+ (forward-char 2)
(while (not (eobp))
(when (looking-at "^\\([^\t\n]+\\)[\t ]*\\(.*\\)$")
(let ((key (match-string 1))
(fun (match-string 2))
cmd)
(unless (or (member fun '("??" "self-insert-command"))
- (string-match re-exclude key)
+ (string-match-p re-exclude key)
(not (or (commandp (setq cmd (intern-soft fun)))
- (member fun '("Prefix Command")))))
+ (equal fun "Prefix Command"))))
(push
(cons (format
"%-15s %s"
@@ -1118,7 +1119,7 @@ See `describe-buffer-bindings' for further information."
fun)
(cons key cmd))
res))))
- (forward-line 1)))
+ (forward-line)))
(nreverse res)))
(defcustom counsel-descbinds-function #'describe-function
- [elpa] externals/ivy-hydra f1472ef 266/395: ivy.el: When completing files, make "RET" reverse "DEL", (continued)
- [elpa] externals/ivy-hydra f1472ef 266/395: ivy.el: When completing files, make "RET" reverse "DEL", Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 82cb9da 272/395: ivy.el (ivy--do-shrink-window): Account for the extra prompt height, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 6f50fca 286/395: ivy.el: When reading file names, take the non-directory part of :initial-input, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d452878 291/395: counsel-grep/ag/rg/pt/...: Allow to deplay subprocess creation, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 84dfbf8 296/395: ivy-avy.el: Checkdoc, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 864570a 323/395: ivy.el (ivy--get-multi-action): Fix and add a test, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 05c12fc 310/395: counsel.el (counsel--grep-smart-case-flag): Check if base command is a string, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra b2af619 322/395: ivy.el (ivy--call-marked): Don't call multi-action if non-default action was chosen, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 683a7b7 309/395: ivy.el (ivy-completion-in-region): Fix "^" and C-g, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra ea9bd06 353/395: Encode --pcre switch correctly for ivy-occur, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 63549da 354/395: Fix counsel-descbinds for Emacs 28,
Basil L. Contovounesios <=
- [elpa] externals/ivy-hydra 387390b 312/395: Prefer derived-mode-p for major-mode comparisons, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 8d840b2 317/395: counsel.el (counsel-find-file-undo): Undo changing current directory, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 9bb6841 347/395: counsel.el (counsel-highlight-with-face): Fix preselect on next call, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra dd9c88f 319/395: ivy-avy.el: Fix package-lint warnings, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 544e7de 314/395: ivy.el (ivy-completing-read): Work better with find-file-at-point, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 4f98f97 332/395: targets/plain.el: Install avy automatically, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 6a22192 360/395: ivy.el (ivy--highlight-default): Use match faces consistently, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra f8b1ab8 328/395: Minor fixes for recent additions, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra dd43ab1 346/395: Add Emacs 27 executable-find compatibility shim, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra c76d797 370/395: Clean up some stuff around counsel-locate, Basil L. Contovounesios, 2021/02/25