From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wilhelm Kirschbaum Newsgroups: gmane.emacs.bugs Subject: bug#62536: 30.0.50; Can we add """ ... """ electric pair in elixir, just like python Date: Sun, 02 Apr 2023 19:21:50 +0200 Message-ID: <87bkk642k0.fsf@gmail.com> References: <83sfdm6bet.fsf@gnu.org> <87edp6oim6.fsf@gmail.com> <87lejay8n3.fsf@gmail.com> <06DAF2C4-C224-4C30-AAAE-96D1A84ED145@outlook.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3549"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.3; emacs 30.0.50 Cc: "62536@debbugs.gnu.org" <62536@debbugs.gnu.org> To: Mou Tong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 02 19:28:26 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 1pj1VC-0000nl-0q for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Apr 2023 19:28:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pj1Up-0007D6-MT; Sun, 02 Apr 2023 13:28:03 -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 1pj1Uo-0007Cl-JS for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 13:28:02 -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 1pj1Uo-0007vT-90 for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 13:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pj1Un-0002LJ-UN for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 13:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Wilhelm Kirschbaum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Apr 2023 17:28:01 +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.16804564758983 (code B ref 62536); Sun, 02 Apr 2023 17:28:01 +0000 Original-Received: (at 62536) by debbugs.gnu.org; 2 Apr 2023 17:27:55 +0000 Original-Received: from localhost ([127.0.0.1]:42541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pj1Ug-0002Kp-T4 for submit@debbugs.gnu.org; Sun, 02 Apr 2023 13:27:55 -0400 Original-Received: from mail-wr1-f54.google.com ([209.85.221.54]:34496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pj1Ue-0002Kc-N3 for 62536@debbugs.gnu.org; Sun, 02 Apr 2023 13:27:53 -0400 Original-Received: by mail-wr1-f54.google.com with SMTP id v1so27061239wrv.1 for <62536@debbugs.gnu.org>; Sun, 02 Apr 2023 10:27:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680456467; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=efgnwxuPBrxsLwMBkDZh4uYZLvv6clKK+FD6MitBgek=; b=nOZgGjWsXYUQVtUH8ViDYHy/d+DyTGofHvkuJUC2LL4dSfq4Bwd8cqOBblw+CW4hqg gd75B6vr5/3OqJ9aCJfiwJZILhRP+9bk4LRjIYqkelANbSppQcRtjTKiYKquioBHbBrD mb3vcHmEPK8SQfPGszHZrxS/hUf1eZJ4fggBHPJ6Adbp14oSE7DDUbIIZudh3KiS45Jh GiY0OwwspV/MC5k8jXptS2YNTnysgyncQbP0VPMys2b1fX39YCMUJoIvDeDeECm13dsR VgFzSJoZUBrY3K6CQlgPaGTk+AoP+brYTwQhR2005/zl2Maq95qh08TxpojJp67QKsqx GaRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680456467; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=efgnwxuPBrxsLwMBkDZh4uYZLvv6clKK+FD6MitBgek=; b=6CnQEcqbLrzH+CaIXEvZbpWk6UooF2OJdpTnwMKCobD/rssJlgiyRYfs7TIWWXeT9x ZiUseLWpZZ4MgClzKoEkHP/LT6czMOdrWwNDyWRfBAP7bAZddHxGES/1cD54omxIMenD 0AuawYtKSA9eIMZ/nSQ1pDG0wF87v36zP2DZDp9PRIU4yMbZkR4sBDDowxSYvHkGsUrH PknaIwct55ixQv1DGZ2A6BmcT30c2e56fs9sj+l31vD88wFSEJXDLxO0EesrPI5EJPuC B6opWP5AqeaR4QPeO9pPPWMph7K3Xuvp1HLIfxAPbIt6rFxOC6tDMZYfpLZTGWoUdiN1 i0hg== X-Gm-Message-State: AAQBX9dXkGhWvzU9fh8FZq3QfXItJxKNBw44FqQR2ckL16NoACWHb5pL Tm2IieeH7Wdiq+hPQUW3GG/flLi6xFI= X-Google-Smtp-Source: AKy350ZPqn0Tm9+D97UNYZLlTil4vZ0w+pjRxoZgy4T7QkrUY572sxjxg09ejY1Fx/LmZjYKh2swbQ== X-Received: by 2002:adf:f1cb:0:b0:2cf:e8b2:4f76 with SMTP id z11-20020adff1cb000000b002cfe8b24f76mr26516980wro.66.1680456466678; Sun, 02 Apr 2023 10:27:46 -0700 (PDT) Original-Received: from melissa.local ([2c0f:ef18:1431:0:b09:9616:db04:c248]) by smtp.gmail.com with ESMTPSA id e19-20020a5d5953000000b002e6a1bf2162sm5754016wri.16.2023.04.02.10.27.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 10:27:46 -0700 (PDT) In-reply-to: <06DAF2C4-C224-4C30-AAAE-96D1A84ED145@outlook.com> 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:259120 Archived-At: Mou Tong writes: >> 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 """ > | > """ > ``` Yes, I think that is better, let me have a go at it. I was concerned of doing unsolicited movement with my suggestion of inserting newlines.