From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73900: 30.0.91; auto-fill adds extra space in js-ts-mode Date: Sun, 27 Oct 2024 12:55:37 +0200 Message-ID: <867c9tak7q.fsf@gnu.org> References: <87ttd7o2q8.fsf@kleehammer.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18714"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73900@debbugs.gnu.org To: Michael Kleehammer , Yuan Fu , Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 27 11:56:38 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 1t50wo-0004i3-Fw for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Oct 2024 11:56:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t50wi-0008CV-BC; Sun, 27 Oct 2024 06:56:32 -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 1t50we-0008Br-8R for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 06:56:29 -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 1t50wd-0007k9-Po for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 06:56:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=zLuWXlIfeze3+RTcZYUsx0sayv4fA2MAcyIPVcH1YSY=; b=n8gEpxyobqO3zsO8o99OhxoYN6PJM6rm23ZyRHsv/+75P6x32m986qUCUgF21ITlazSdfKgK4o8rcSEbdtpT/Gf8KQddg/HILNtXy41NaZo9bEHpRXB28XhrBSHKMPsrDaD9IhPUS2GjDMwXDRtML6oRBI6eL+z4KzklxZPw6JpRTVBnpmaB7fJnmKd1ikBIF1usdxKA85FQqWUZ1ANIwqYWyXAyKENQsQtGmuO5bJ49bEGdVtU/HvtRsK+qj2+4J0GASTKYWN5XooHiaLEzCgQi/V5uahpiCvwFw4OysVSQcuEkK6ml0dJ7qC5ruCChSPkPw7ULybTEe7Z4+2vBag==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t50xC-0007dV-4I for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 06:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Oct 2024 10:57: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.173002658429265 (code B ref 73900); Sun, 27 Oct 2024 10:57:02 +0000 Original-Received: (at 73900) by debbugs.gnu.org; 27 Oct 2024 10:56:24 +0000 Original-Received: from localhost ([127.0.0.1]:44031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t50wZ-0007bw-FS for submit@debbugs.gnu.org; Sun, 27 Oct 2024 06:56:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t50wX-0007bf-Kq for 73900@debbugs.gnu.org; Sun, 27 Oct 2024 06:56:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t50vt-0007gL-FZ; Sun, 27 Oct 2024 06:55:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=zLuWXlIfeze3+RTcZYUsx0sayv4fA2MAcyIPVcH1YSY=; b=HYju7eeJ1xZZ sfpd7to37dQFkiPQ8QZddbed7mjJRGLKKtA7G+JcNT/kkGtzHFOEFzJjxyMH4BHOPPUaxy5Q9D4vC Kdp69pPgMBN8f8alf2V0CyIPOr1Do6d2BmHeHY7SX5S9ujHQ/SaXAjLAdN6jjEuV6hMh7gW5yel1H Pt+GBTvMWPHz8gPBxpW+mmGjlfg9f1+c0i6iTVpLaMNDHsvXfbr+y8iMrpnFcnTVTR86twHxPAUBy J6oRto//aLoXaFU9g4a0bb5mXYX+Ma1e7ro+eWERIxU1TqgFz2Kzo3yPwsfTR6q7dWepix4ehGdth NLgEcnJpDlKSVmswfJPePQ==; In-Reply-To: <87ttd7o2q8.fsf@kleehammer.com> (message from Michael Kleehammer on Sat, 19 Oct 2024 22:46:55 -0500) 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:294336 Archived-At: > 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.