From: Steven Allen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 74149@debbugs.gnu.org
Subject: bug#74149: [PATCH] Remove undefined variable from c-ts-common-comment-indent-new-line
Date: Thu, 31 Oct 2024 16:27:55 -0700 [thread overview]
Message-ID: <87wmhnsvic.fsf@stebalien.com> (raw)
[-- 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
next reply other threads:[~2024-10-31 23:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-31 23:27 Steven Allen via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-11-01 1:19 ` bug#74149: [PATCH] Remove undefined variable from c-ts-common-comment-indent-new-line Stefan Kangas
2024-11-01 2:16 ` Steven Allen via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wmhnsvic.fsf@stebalien.com \
--to=bug-gnu-emacs@gnu.org \
--cc=74149@debbugs.gnu.org \
--cc=steven@stebalien.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.