emacs-31 526912e158e: * lisp/progmodes/c-ts-mode.el (c-ts-mode--thing-settings): Remove 'comment'.
Juri Linkov <[email protected]>
| Newsgroups | gmane.emacs.diffs |
|---|---|
| Message-ID | <[email protected]> |
branch: emacs-31 commit 526912e158eaaf1b3d981f003b936f715b1caef4 Author: Juri Linkov <[email protected]> Commit: Juri Linkov <[email protected]> * lisp/progmodes/c-ts-mode.el (c-ts-mode--thing-settings): Remove 'comment'. Comment out the 'comment' thing since 'treesit-forward-comment' is not ready to handle block comments (bug#80837). Do not merge to master. --- lisp/progmodes/c-ts-mode.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 5f064716a89..6fcd4dfb54b 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -1276,7 +1276,10 @@ if `c-ts-mode-emacs-sources-support' is non-nil." "case_statement"))) (text ,(regexp-opt '("comment" "raw_string_literal"))) - (comment "comment")) + ;; This is commented out in Emacs 31 since 'treesit-forward-comment' + ;; can't uncomment block comments. It's already fixed in Emacs 32. + ;; (comment "comment") + ) "`treesit-thing-settings' for both C and C++.") ;;; Support for FOR_EACH_* macros