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#72184: 31.0.50; typescript-ts-mode does not bind RET to newline-and-indent Date: Sat, 27 Jul 2024 10:21:09 +0300 Message-ID: <8634nv2tcq.fsf@gnu.org> References: <31020dbe-3268-47e3-94c9-8c7acef452fd@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14292"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acorallo@gnu.org, 72184@debbugs.gnu.org To: jostein@secure.kjonigsen.net, Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 27 09:22:15 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 1sXbks-0003Yz-O8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Jul 2024 09:22:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXbkY-0003p1-Tj; Sat, 27 Jul 2024 03:21:54 -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 1sXbkX-0003oE-5X for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2024 03:21:53 -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 1sXbkW-0002Fa-T9 for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2024 03:21:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXbkg-0003FS-IO for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2024 03:22: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: Sat, 27 Jul 2024 07:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72184 X-GNU-PR-Package: emacs Original-Received: via spool by 72184-submit@debbugs.gnu.org id=B72184.172206489312380 (code B ref 72184); Sat, 27 Jul 2024 07:22:02 +0000 Original-Received: (at 72184) by debbugs.gnu.org; 27 Jul 2024 07:21:33 +0000 Original-Received: from localhost ([127.0.0.1]:40466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXbkC-0003DM-W8 for submit@debbugs.gnu.org; Sat, 27 Jul 2024 03:21:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXbkA-0003Cd-Jm for 72184@debbugs.gnu.org; Sat, 27 Jul 2024 03:21:31 -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 1sXbju-0002BR-Pt; Sat, 27 Jul 2024 03:21:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=FHxOHI/a/0AaRmGlLviiut8Z6OR7rikD2VZE+UsZJdA=; b=rBDHEt/XeWI3eMkqkAvJ wqEGHM/AvoAc0Kp4hy6yGPJg9uvrb4yrbtHLkvlspNs4hNO4Z7o04jlHb91w8ZoLfSj6bwHgb0MlU 2L3QrC0IZGoES3KuCs3Mb+siO/cvflzUQ0qz/3ihBIgEjqA9a1YqkfDpqXO4uRVSUFHcWqlSH5dFf 7PxRnXUWvGQNzJKEw/Aj1G/LFkwDMR8JD2Ji8r4wMtL6xFPL+FtoII7gSqOOJ4qcmX9LVS2xQshAQ HWfCstbUVSrZPtzrs4L86Ayix3bD8AETUYntr9Qn2Bt3v9Tg1jQJMGNW1ULv8CwflmzzQwW7NpAUS dwSXoUoLkDvTog==; In-Reply-To: <31020dbe-3268-47e3-94c9-8c7acef452fd@gutov.dev> (message from Dmitry Gutov on Sat, 20 Jul 2024 03:22:47 +0300) 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:289415 Archived-At: > Cc: 72184@debbugs.gnu.org > Date: Sat, 20 Jul 2024 03:22:47 +0300 > From: Dmitry Gutov > > On 19/07/2024 00:30, Andrea Corallo wrote: > > Jostein Kjønigsen writes: > > > >> When using typescript-ts-mode in a bare config without any custom hooks defined, > >> RET ends up being bound (by default) to `newline`. > >> > >> This is suboptimal, given that users typically want newlines to be indented. > >> > >> RET should instead be bound to `newline-and-indent`. > > Hi, > > > > AFAIK this is what we tipically do, like: c-mode, c-ts-mode, lisp-mode, > > emacs-lisp-mode etc. Why 'typescript-ts-mode' should be different? > > Right, we normally handle automatic indentation using > electric-indent-mode (which is on by default). > > If RET behaves incorrectly in typescript-ts-mode somehow, more details > should be provided. Jostein, could you please respond, so that we could make progress here? Thanks.