From 3101c5031e6eae31ac64392f312091ffa9bbd777 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Wed, 30 Oct 2024 18:18:50 -0700 Subject: [PATCH] Fix undefined variable in previous commit (bug#73900) I somehow thought allow-auto-fill is a global variable that's used by cc. But it's not. It's just a function param used by c-indent-new-comment-line. * lisp/progmodes/c-ts-common.el: (c-ts-common-comment-indent-new-line): Remove reference to allow-auto-fill. --- 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 6972cfa8904..8630598708d 100644 --- a/lisp/progmodes/c-ts-common.el +++ b/lisp/progmodes/c-ts-common.el @@ -307,7 +307,7 @@ and /* */ comments. SOFT works the same as in (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.30.2