From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mou Tong Newsgroups: gmane.emacs.bugs Subject: bug#62536: 30.0.50; Can we add """ ... """ electric pair in elixir, just like python Date: Sun, 2 Apr 2023 16:38:39 +0000 Message-ID: <06DAF2C4-C224-4C30-AAAE-96D1A84ED145@outlook.com> References: <83sfdm6bet.fsf@gnu.org> <87edp6oim6.fsf@gmail.com> <87lejay8n3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9297"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "62536@debbugs.gnu.org" <62536@debbugs.gnu.org> To: Wilhelm Kirschbaum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 02 18:39:18 2023 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 1pj0jd-0002HR-9C for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Apr 2023 18:39:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pj0jQ-0002tC-M6; Sun, 02 Apr 2023 12:39: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 1pj0jO-0002sz-TC for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 12:39:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pj0jO-0006jg-Ku for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 12:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pj0jO-0000qj-Gb for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 12:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mou Tong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Apr 2023 16:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62536 X-GNU-PR-Package: emacs Original-Received: via spool by 62536-submit@debbugs.gnu.org id=B62536.16804535303244 (code B ref 62536); Sun, 02 Apr 2023 16:39:02 +0000 Original-Received: (at 62536) by debbugs.gnu.org; 2 Apr 2023 16:38:50 +0000 Original-Received: from localhost ([127.0.0.1]:42483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pj0jC-0000qG-1i for submit@debbugs.gnu.org; Sun, 02 Apr 2023 12:38:50 -0400 Original-Received: from mail-mw2nam10olkn2108.outbound.protection.outlook.com ([40.92.42.108]:38728 helo=NAM10-MW2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pj0j9-0000q2-22 for 62536@debbugs.gnu.org; Sun, 02 Apr 2023 12:38:49 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F6+ovVpoIsUW8D72wrZrOBrvNTqAB1EAhHL9PcHah8mQC+fcUzDoFnfEoJQHbHfKJeufp8cG49LQhrxtr8/x3ymyxcSm8uD7uLfaFt74F26Ubad4e4BAtZ1k4/5ILdR/GwNCga0URwzfKSE1tpl7J/Uit8LGjWwIMLtWGUQ117uM1+5W9G+WFEZeeKMmxrwQ2fUSR4oGtGQFqzNyz1q/hIKGDBVBh1Icqci7b/JiRw2JDev7o5a8eqOfxNHycjbKzOqgLPk7GzCluz9GRBcYBpY8pUTArm5fs+aeUo5id15YPxvb1KsSPto1qv4LsJyuZhQDQ0WySz3PQcdm2yGJOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oVXHjHJ84OkGYuSJc2+7TDgsXjFYqpqZesZxkzSkfec=; b=OacxbFkq+Yjo6ct+pgHjYRX8Kt/Ob8mGR3RHIfxdLyLQEjDJTREfX9ES09H91IfrLjGPQTu21ydz6etTe+ARzP3iznY3XAMIvuHuwduJ1XSeOBsKX+kVVOuHSuyTmPUcokgcqiGMvlODgsGsh94JEiC5GPL5Xu4l+PG3ELIC9eEbSDakZpFTyL+mIuggkM1B9DOtMs/TL2nnJquqqr2TcxSP9mwQ3Q9tZ3XxWiemmJaCqq7ZNIXyhgXqN+JWXMYc/LVJVDm2v9rjt7p/bGnAtJvJxlLrI/T6gQEKKGWkTVQoR/kkOCAIcbjXJl6YCdHymHjBdBYV2mW+1pgRCO6omQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oVXHjHJ84OkGYuSJc2+7TDgsXjFYqpqZesZxkzSkfec=; b=CcZObJjcH4ObTKphKLnwbZWW7VY3vtizZZDjvQe9kDbsTIpI+/LarJ5qYJ426ixC2r3ipnZfo/onmkvhQej4gBArwGLpivb6/4qhMFqJsrVA7WAosWOT+MyR2YffCdordcu3o1tE8reCUVWg0WTOWcQsd2MrSYprW8BkY0VzuxoLw7bn7z2oewFyfcU13QfGccpdQ34wxr78vVWfu5oGpWcckloYvIl0l6gmpbEpAaTvkAFTgxRBFbNBN/C22l6TRwF/TGYVDcaGbdJ73EwBqxoJ4uYsz+gT8A4DSia30D1jL7nTS+VCtO4UYs0tVtabNOSVdF1ieP5oHvcfjjrBcw== Original-Received: from DM8P220MB0686.NAMP220.PROD.OUTLOOK.COM (2603:10b6:8:3b::13) by DM8P220MB0407.NAMP220.PROD.OUTLOOK.COM (2603:10b6:8:24::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.29; Sun, 2 Apr 2023 16:38:40 +0000 Original-Received: from DM8P220MB0686.NAMP220.PROD.OUTLOOK.COM ([fe80::e903:994:afea:4681]) by DM8P220MB0686.NAMP220.PROD.OUTLOOK.COM ([fe80::e903:994:afea:4681%7]) with mapi id 15.20.6254.030; Sun, 2 Apr 2023 16:38:39 +0000 Thread-Topic: bug#62536: 30.0.50; Can we add """ ... """ electric pair in elixir, just like python Thread-Index: AQHZYsqs/+/sPlzwQ0e4xl/M7HdCCq8S2XmAgATQNQCAAJPeAA== In-Reply-To: <87lejay8n3.fsf@gmail.com> Accept-Language: zh-CN, en-US Content-Language: en-US x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [iQ6voULHnDXI7/pQ+1p+Y/Kicly1XzW1] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM8P220MB0686:EE_|DM8P220MB0407:EE_ x-ms-office365-filtering-correlation-id: 4338272c-dd2f-4e59-2ffd-08db3398b6e1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: GrAvSuJgjPH7qCadq2UeUZTbvDqy5R6vGaf22DQZA75qbiDuIF38IWxYlrqRRFsXHEbMZP42Nrz7fJs+cqeTFLrmFCmhR9WP9qxWzLZOh5UXZtJsGs22jOSjeLa3sZwWmPyaf8OG3MbaIxX33UE64rY5PGx0tI0tZXy4JXGb4XWTAbKn3WuVT/t0i5Z3/fgn3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p4ASAdT0dFsaFxkWJbl7jLEc3uYptfEWH5qfhFmtdXi3JTexQ+6BeLcYBjUZBXnkUCX/J9guZKWSmVM9cbgMy1Q7e1CRWpAkkVxPJPMCqUVSSVScagXUwSkS6Ohz1/AjV7RtK33ZrmhP4xC12dn+NXqE3BLJ13TsSSsxpb7gYl2/pN/H4kWkV0jE2 UMrtglS6KzHt4pxIIvNLDVDYR21dPjkkcTjVl1OEHU6YhNJCElGdDYwnAGWiD5Qj4mDoE2eVVh4FWxKSdlMitD9LtnD27w6xac Content-ID: X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM8P220MB0686.NAMP220.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 4338272c-dd2f-4e59-2ffd-08db3398b6e1 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Apr 2023 16:38:39.9273 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8P220MB0407 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:259112 Archived-At: > Will it make sense to also add a newline when closing a multiline > comment/heredoc? It feels smoother to me rather than having to press > enter and then C-o ( open-line ) to position the cursor correctly? I agree with you, but I think it might be better to imitate what `c-mode` did: ```c int main () {|} ``` When `electric-pair-mode` is on, input the left `{`, Emacs helps you complete the right `}`. After press enter, your cursor will move to the next line and auto-indented according to your offset config: ```c int main () { | } ``` So how about making it work like this? ```elixir-ts @doc """|""" # after press enter @doc """ | """ ```