emacs-diffs
[Top][All Lists]
Advanced

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

emacs-30 55f43f5b220: ; Fix typo in treesit-explore-mode


From: Yuan Fu
Subject: emacs-30 55f43f5b220: ; Fix typo in treesit-explore-mode
Date: Sat, 4 Jan 2025 00:40:56 -0500 (EST)

branch: emacs-30
commit 55f43f5b220ed3cc49141257918e51e403dd85ac
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    ; Fix typo in treesit-explore-mode
    
    * lisp/treesit.el (treesit-explore-mode): We added the hook to
    kill-buffer-hook, so make sure to remove it from
    kill-buffer-hook, not post-command-hook.
---
 lisp/treesit.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/treesit.el b/lisp/treesit.el
index d788edf7ffc..2887521110b 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -3601,7 +3601,7 @@ window."
     ;; Turn off explore mode.
     (remove-hook 'post-command-hook
                  #'treesit--explorer-post-command t)
-    (remove-hook 'post-command-hook
+    (remove-hook 'kill-buffer-hook
                  #'treesit--explorer-kill-explorer-buffer t)
     (treesit--explorer-kill-explorer-buffer)))
 



reply via email to

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