]> git.eshelyaron.com Git - emacs.git/commitdiff
Restore c-ts-common-comment-setup in js-ts-mode and typescript-ts-mode.
authorJuri Linkov <juri@linkov.net>
Tue, 3 Jun 2025 15:41:01 +0000 (18:41 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 7 Jun 2025 20:00:14 +0000 (22:00 +0200)
* lisp/progmodes/js.el (js-ts-mode):
* lisp/progmodes/typescript-ts-mode.el (typescript-ts-base-mode):
Add 'c-ts-common-comment-setup' back removed in 8bccccedb65a
since it does more than setting comment variables (bug#78680).

(cherry picked from commit 6b668c2213432db04d29d36b8bf25a8f3f853c62)

lisp/progmodes/js.el
lisp/progmodes/typescript-ts-mode.el

index 312310bd91569dca49d4a2584a2f746647087350..cc09c92f49bac664bf08d82a6b2973f7466cc97a 100644 (file)
@@ -4060,6 +4060,7 @@ See `treesit-thing-settings' for more information.")
     ;; Which-func.
     (setq-local which-func-imenu-joiner-function #'js--which-func-joiner)
     ;; Comment.
+    (c-ts-common-comment-setup)
     (setq-local comment-setup-function #'js--treesit-comment-setup)
     (setq-local comment-multi-line t)
 
index c8efb4f771a62580d32d8472226218e441189aab..e207b75f95ecc78d5b2a356203d400fb6fa85a5d 100644 (file)
@@ -661,6 +661,7 @@ This mode is intended to be inherited by concrete major modes."
   :syntax-table typescript-ts-mode--syntax-table
 
   ;; Comments.
+  (c-ts-common-comment-setup)
   (setq-local comment-setup-function #'js--treesit-comment-setup)
 
   ;; Electric