]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix typo in treesit-explore-mode
authorYuan Fu <casouri@gmail.com>
Sat, 4 Jan 2025 05:39:32 +0000 (21:39 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 4 Jan 2025 20:58:30 +0000 (21:58 +0100)
* 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.

(cherry picked from commit 55f43f5b220ed3cc49141257918e51e403dd85ac)

lisp/treesit.el

index c57d0edd0509b5949c8346fc14174b226a2df7c7..90100d3bb104c795ef28ecb191667ce30860c173 100644 (file)
@@ -4086,7 +4086,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)))