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#72184: 31.0.50; typescript-ts-mode does not bind RET to newline-and-indent Date: Sat, 20 Jul 2024 03:22:47 +0300 Message-ID: <31020dbe-3268-47e3-94c9-8c7acef452fd@gutov.dev> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34958"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 72184@debbugs.gnu.org To: Andrea Corallo , Jostein =?UTF-8?Q?Kj=C3=B8nigsen?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 20 02:24:27 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 1sUxtg-0008r4-Iu for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Jul 2024 02:24:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sUxtM-00051g-KU; Fri, 19 Jul 2024 20:24:04 -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 1sUxtL-00051Y-KV for bug-gnu-emacs@gnu.org; Fri, 19 Jul 2024 20:24:03 -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 1sUxtL-0002Tj-Bl for bug-gnu-emacs@gnu.org; Fri, 19 Jul 2024 20:24:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sUxtK-0001W6-HV for bug-gnu-emacs@gnu.org; Fri, 19 Jul 2024 20:24: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: Sat, 20 Jul 2024 00:24: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.17214349825694 (code B ref 72184); Sat, 20 Jul 2024 00:24:02 +0000 Original-Received: (at 72184) by debbugs.gnu.org; 20 Jul 2024 00:23:02 +0000 Original-Received: from localhost ([127.0.0.1]:51409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUxsL-0001Tj-Uk for submit@debbugs.gnu.org; Fri, 19 Jul 2024 20:23:02 -0400 Original-Received: from fout3-smtp.messagingengine.com ([103.168.172.146]:55047) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUxsJ-0001TK-GM for 72184@debbugs.gnu.org; Fri, 19 Jul 2024 20:23:01 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id 590BE138013C; Fri, 19 Jul 2024 20:22:54 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 19 Jul 2024 20:22:54 -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=1721434974; x=1721521374; bh=btnzUFYTezUvrjss0BJlNDU+0BqEsuBvcwQmX27gB+0=; b= LP7Qy0dcWvAoOaNinPdCi0jJboDHARXi3ab6+2WY/CQPucUwgzWDn8se3ooozFjz ilVLspXLIH8wyAkGSV8h9Jk3YySUaLszEi23zmOCKgjaTePKgnAc1MSUgCjka2Ea K8fXi3Bb35Mi++l5H8IkPukCQxj0SlzQoOpc5zOAr/Ng+tktwzxgc7L0RFNQ7wrk FUAq87XZLmHXnzGfRVwOjou9x2jMqZE1USG991lhra1DarAmof2USXFnG35Gn2lD PXiwjgcp2Hf335+/1lYxJDJKmBDIX5XV2A6RWIpENkp1kv3yBMPJixWvuOloO+jt SUe1NeJGbOYFEPXMMe/Y5g== 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=1721434974; x= 1721521374; bh=btnzUFYTezUvrjss0BJlNDU+0BqEsuBvcwQmX27gB+0=; b=S T2fWRZlCkiqA4EaeMZjWTS7bXo6n/5gla7AM2ij4WSEPYsq+f0s1n9YR6uUsESNw 9EAE5hGJTUNzzm84Z2ENMcn3AMPwrotZT9YtZquBiU+ayS+HbYxMKk85EU2kn+nP 5KC8Bh3YVZYJD+oPCebdM+F1JIwqrSPREHmuwxITWf/ZOTufXSmh+0HrGKRhnxyS yl6e9+TlvsBtKv9girbZ3wscTjInBxAjzRFAHyD9LGPqNgwIkFncfPrJm8VzJ2zP eW8r2Y9ki8bXNgKrrTLzV+hFUgQHGUoXk4/lBraM+3mJd2Pp+ebH9WqdBqMM+dyU Y7wRzXr0omLHOtQW5fWcA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrhedvgdefhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeegleefteekgffhvdfhtdegveevveetteegteevgeettdehhfdukeetheffueek keenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 19 Jul 2024 20:22:52 -0400 (EDT) Content-Language: en-US In-Reply-To: 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:289006 Archived-At: 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.