all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#74149: [PATCH] Remove undefined variable from c-ts-common-comment-indent-new-line
@ 2024-10-31 23:27 Steven Allen via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-11-01  1:19 ` Stefan Kangas
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Allen via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-10-31 23:27 UTC (permalink / raw)
  To: 74149

[-- Attachment #1: Type: text/plain, Size: 206 bytes --]


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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Remove-undefined-variable-from-c-ts-common-comment-i.patch --]
[-- Type: text/x-patch, Size: 1081 bytes --]

From 5c7a5c86a9b2f6f09ac58cea15c51382540867a3 Mon Sep 17 00:00:00 2001
From: Steven Allen <steven@stebalien.com>
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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#74149: [PATCH] Remove undefined variable from c-ts-common-comment-indent-new-line
  2024-10-31 23:27 bug#74149: [PATCH] Remove undefined variable from c-ts-common-comment-indent-new-line Steven Allen via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-11-01  1:19 ` Stefan Kangas
  2024-11-01  2:16   ` Steven Allen via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Kangas @ 2024-11-01  1:19 UTC (permalink / raw)
  To: Steven Allen, 74149-done

Steven Allen via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> 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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#74149: [PATCH] Remove undefined variable from c-ts-common-comment-indent-new-line
  2024-11-01  1:19 ` Stefan Kangas
@ 2024-11-01  2:16   ` Steven Allen via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 3+ messages in thread
From: Steven Allen via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-11-01  2:16 UTC (permalink / raw)
  To: Stefan Kangas, 74149-done

Stefan Kangas <stefankangas@gmail.com> writes:
>
> Thanks, installed on master (commit 9ff155183ca).  Closing.

Thanks!





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-01  2:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-31 23:27 bug#74149: [PATCH] Remove undefined variable from c-ts-common-comment-indent-new-line Steven Allen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-01  1:19 ` Stefan Kangas
2024-11-01  2:16   ` Steven Allen via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.