]> git.eshelyaron.com Git - emacs.git/commit
Remove treesit.el dependency from prog-mode.el
authorYuan Fu <casouri@gmail.com>
Thu, 17 Apr 2025 05:50:56 +0000 (22:50 -0700)
committerEshel Yaron <me@eshelyaron.com>
Thu, 17 Apr 2025 07:19:46 +0000 (09:19 +0200)
commit21f7cba1e3ce6f679428954fb4ea8f25d9dee3d6
treea338f0f3342550e85b850c42e0f8ea9c0a4902c0
parent46b8b1bf7512ed0d46dd5b7a50ad2245a314c28a
Remove treesit.el dependency from prog-mode.el

prog-mode.el doens't need treesit.el dependency.  And it
shouldn't depend on it.  In principle, treesit.el should
integrate into various parts of Emacs through standard hooks and
variables.

* lisp/progmodes/prog-mode.el:
(prog-fill-reindent-defun): Remove treesit.el functions.  Use
generic functions to check whether the current line has
comments, and make the test more comprehensive.

(cherry picked from commit 79814379d646e507c1af8ab26e300ac43d036664)
lisp/progmodes/prog-mode.el