emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ivy-hydra 03fb20e 033/395: ivy.el (ivy-help): Insert "d


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 03fb20e 033/395: ivy.el (ivy-help): Insert "describe-mode" outline
Date: Thu, 25 Feb 2021 08:31:25 -0500 (EST)

branch: externals/ivy-hydra
commit 03fb20ece257ff047975fbf5fa482ccfb419d1b5
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    ivy.el (ivy-help): Insert "describe-mode" outline
    
    Fixes #2313
---
 ivy.el | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index c5a9128..1012860 100644
--- a/ivy.el
+++ b/ivy.el
@@ -5020,10 +5020,16 @@ make decisions based on the whole marked list."
 (defun ivy-help ()
   "Help for `ivy'."
   (interactive)
-  (let ((buf (get-buffer "*Ivy Help*")))
+  (let ((buf (get-buffer "*Ivy Help*"))
+        (inhibit-read-only t))
     (unless buf
       (setq buf (get-buffer-create "*Ivy Help*"))
+      (cl-letf (((symbol-function #'help-buffer) (lambda () buf)))
+        (describe-mode))
       (with-current-buffer buf
+        (goto-char (point-min))
+        (insert "* describe-mode\n")
+        (goto-char (point-min))
         (insert-file-contents ivy-help-file)
         (org-mode)
         (setq-local org-hide-emphasis-markers t)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]