From 5c7a5c86a9b2f6f09ac58cea15c51382540867a3 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 31 Oct 2024 16:19:37 -0700 Subject: [PATCH] Remove undefined variable from c-ts-common-comment-indent-new-line This variable came from code copied from c-indent-new-comment-line. It's a parameter meant to be used by c-context-line-break, not a global variable. * lisp/progmodes/c-ts-common.el (c-ts-common-comment-indent-new-line): remove reference undefined variable. --- lisp/progmodes/c-ts-common.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/c-ts-common.el b/lisp/progmodes/c-ts-common.el index 5c7909ae858..cf55ddea8f7 100644 --- a/lisp/progmodes/c-ts-common.el +++ b/lisp/progmodes/c-ts-common.el @@ -336,7 +336,7 @@ c-ts-common-comment-indent-new-line (delete-horizontal-space) (if soft (insert-and-inherit ?\n) - (newline (if allow-auto-fill nil 1)))))) + (newline 1))))) (cond ;; Line starts with //, or ///, or ////... ;; Or //! (used in rust). -- 2.47.0