Subject: bug#74149: closed (Re: bug#74149: [PATCH] Remove undefined variable from c-ts-common-comment-indent-new-line)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 01 Nov 2024 01:21:02 +0000

Your bug report

#74149: [PATCH] Remove undefined variable from c-ts-common-comment-indent-new-line

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
74149: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74149
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#74149: [PATCH] Remove undefined variable from c-ts-common-comment-indent-new-line
From: Stefan Kangas <[email-masked]>
To: Steven Allen <[email-masked]>, [email-masked]
Date: Thu, 31 Oct 2024 18:19:48 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Steven Allen via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <[email-masked]> writes:

> Remove reference to allow-auto-fill from c-ts-common. 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.

Thanks, installed on master (commit 9ff155183ca).  Closing.

Subject: [PATCH] Remove undefined variable from c-ts-common-comment-indent-new-line
From: Steven Allen <[email-masked]>
To: [email-masked]
Date: Thu, 31 Oct 2024 16:27:55 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Remove reference to allow-auto-fill from c-ts-common. 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.

>From 5c7a5c86a9b2f6f09ac58cea15c51382540867a3 Mon Sep 17 00:00:00 2001
From: Steven Allen <[email-masked]>
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