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

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

[elpa] externals/kind-icon 226c3281d1 3/5: Simplify view-all preview


From: ELPA Syncer
Subject: [elpa] externals/kind-icon 226c3281d1 3/5: Simplify view-all preview
Date: Wed, 23 Nov 2022 16:57:49 -0500 (EST)

branch: externals/kind-icon
commit 226c3281d1f655a2c57927960a240fc22fb5d182
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>

    Simplify view-all preview
---
 kind-icon.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/kind-icon.el b/kind-icon.el
index aa08689c67..c332d4835c 100644
--- a/kind-icon.el
+++ b/kind-icon.el
@@ -224,11 +224,9 @@ float FRAC."
   "Preview all kind icons.
 In the process, svg-lib also downloads and caches them."
   (interactive)
-  (with-current-buffer (get-buffer-create "*kind-icon-preview*")
+  (with-current-buffer-window "*kind-icon-preview*" nil nil
     (font-lock-mode 0)
-    (view-buffer-other-window (current-buffer))
     (let ((inhibit-read-only t))
-      (erase-buffer)
       (insert "kind-icon badges\n\ntxt icn\tkind\n")
       (mapc (lambda (k)
              (apply 'insert



reply via email to

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