From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#73900: 30.0.91; auto-fill adds extra space in js-ts-mode Date: Mon, 28 Oct 2024 05:10:35 +0200 Message-ID: References: <87ttd7o2q8.fsf@kleehammer.com> <867c9tak7q.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10549"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 73900@debbugs.gnu.org To: Eli Zaretskii , Michael Kleehammer , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 28 04:11:44 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t5GAQ-0002b4-VU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Oct 2024 04:11:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5GAC-0004wF-FK; Sun, 27 Oct 2024 23:11:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t5GAB-0004w4-37 for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 23:11:27 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t5GAA-00059O-Q8 for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 23:11:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=SR17Mrt1fQFSlvomZ04jDF+RPkR7c/ObDAqKBjeWL8w=; b=lfKURzQSfT7JJNMK6A8GG0LjKTRZh8Cs4ygNHbwP07dRwveznjEcbgj55B2XMISlt460U0lKmDycRb5Y5o6H/Mt8OPihe60E6CVJXPz6vovTh81XQIAZslDV/4zQKYREvZhENMGelZqmyqR4dA3jWffLG04+kF9cbElYt8AMrZmkxnXB1x9It9m3bbCWeqG8NlVdGQVQghP/a/8bLc+ewuRPeaTjcD9pE4qJsjdKkXmzsdMqYpRH87YRqx7VpXTQsGcgMxGv+tuEIvNaFiyZ9qgx6J97Emk2kSi/8FruZ2fsNc0kqe1TLfS+HmNyw5eNButegND5CESpT76EFDzf9g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5GAk-0000J3-7S for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 23:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Oct 2024 03:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73900 X-GNU-PR-Package: emacs Original-Received: via spool by 73900-submit@debbugs.gnu.org id=B73900.17300850831106 (code B ref 73900); Mon, 28 Oct 2024 03:12:02 +0000 Original-Received: (at 73900) by debbugs.gnu.org; 28 Oct 2024 03:11:23 +0000 Original-Received: from localhost ([127.0.0.1]:49491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5GA7-0000Hj-0z for submit@debbugs.gnu.org; Sun, 27 Oct 2024 23:11:23 -0400 Original-Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]:51671) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5GA5-0000HT-DN for 73900@debbugs.gnu.org; Sun, 27 Oct 2024 23:11:21 -0400 Original-Received: from phl-compute-02.internal (phl-compute-02.phl.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id 2BFFF1140112; Sun, 27 Oct 2024 23:10:40 -0400 (EDT) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Sun, 27 Oct 2024 23:10:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1730085040; x=1730171440; bh=SR17Mrt1fQFSlvomZ04jDF+RPkR7c/ObDAqKBjeWL8w=; b= CXgmpCPex2N8+RuKCRksN8j/XK0jrvPapscD5Vr9FbSvImCzl78e4+CO4Qqsfdcl QkWyZ1tvsAe5PZJbRDQ8DZmnZudFctknhafd4s3F7TKek3iBtk4g4jXTr3f8gOkM zTK/cBYeYf9CEx4ET/HuIgx0W3u2gCSE9yVxpRJoVNwY6LPaVFSIuLKNwYHQGanC E0uXAQy90nc0lhBtwf0Lgw7Vck8KtOVuwxz3k14vI+TGCVNFY5mVmFOaikTLn/Ij KLRZJNkSYdNfwNku3RRjz0k0Yaqg4fkQWnsNdG9MZse8Zljc9/T6GJQ7RdvMH9FC 19AT9M2m5wQGiu7WAY8UZw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1730085040; x= 1730171440; bh=SR17Mrt1fQFSlvomZ04jDF+RPkR7c/ObDAqKBjeWL8w=; b=X GQJg3XMuPaRGezse9O0UTM0EFyYMNDZ9EBhRVEfC3ExR97MP/vWIwtdAO5kjT9gk OlXMPCIdOvo1IoVj/Fs3by+PGGLM8bU2wyjaVRQlxlbFAy3mtoLrWpBl5uK96ktG 1R9OH6QqSY5JB2pS/Bz3Qd4L8Ud32yLC+mTbPMoPDPy+kV4MRCO9cUoS5I+a3NDf DHfosg030i5duD0KvJ+aYWawiF0hwiC+WRtOtYQTAyFFEYwYQmdRR0iVXZCOYsPp jNWn/4rAuI4jgOo8YFXOj4MaaYx/UcgD2hZvLIdq3u8sTIVIQVkrb1u9yI8Ez0I6 nXF4zLnn3Xt5alqr74sPQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdejjedgheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdrug gvvheqnecuggftrfgrthhtvghrnhepteduleejgeehtefgheegjeekueehvdevieekueef tddvtdevfefhvdevgedujeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphhtthho peegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrgh dprhgtphhtthhopehmihgthhgrvghlsehklhgvvghhrghmmhgvrhdrtghomhdprhgtphht thhopegtrghsohhurhhisehgmhgrihhlrdgtohhmpdhrtghpthhtohepjeefledttdesug gvsggsuhhgshdrghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 27 Oct 2024 23:10:38 -0400 (EDT) Content-Language: en-US In-Reply-To: <867c9tak7q.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294406 Archived-At: On 27/10/2024 12:55, Eli Zaretskii wrote: >> From: Michael Kleehammer >> Date: Sat, 19 Oct 2024 22:46:55 -0500 >> >> In Emacs 30, js-ts-mode auto-fill chooses an incorrect prefix when >> wrapping comments. >> >> 1) emacs -Q >> >> 2) In the scratch buffer: >> a) M-x js-ts-mode >> b) M-x auto-fill-mode >> c) M-x erase-buffer >> >> 3) Paste in a long JS comment: >> >> // This buffer is for text that is not saved, and for Lisp evaluation. To create a file, visit it >> >> 4) At end of line, press . >> >> The text wraps like so: >> >> // This buffer is for text that is not saved, and for Lisp evaluation. >> // To create a file, visit it >> >> In previous versions, it would wrap like so: >> >> // This buffer is for text that is not saved, and for Lisp evaluation. >> // To create a file, visit it > Adding people who know about js-ts-mode, in the hope they will have > comments or suggestions. I suppose the answer is somewhere around the fact that we have both normal-auto-fill-function and fill-paragraph-function, and that js-ts-mode (through c-ts-common-comment-setup) only configures the latter, while js-mode (in js--mode-setup) has settings for both. Not sure why the default do-auto-fill doesn't skip over the space, though.