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: Thu, 30 Mar 2023 08:19:05 +0200 Message-ID: <87edp6oim6.fsf@gmail.com> References: <83sfdm6bet.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39471"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.3; emacs 30.0.50 Cc: 62536@debbugs.gnu.org, =?UTF-8?Q?=E7=89=9F_?= =?UTF-8?Q?=E6=A1=90?= To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 30 08:32:20 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 1phlpb-000A1a-VU for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Mar 2023 08:32:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phlpM-0006Gh-3D; Thu, 30 Mar 2023 02:32: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 1phlpL-0006GU-8r for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 02:32: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 1phlpK-0004JG-VE for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 02:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phlpK-00058k-69 for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 02:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Wilhelm Kirschbaum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Mar 2023 06:32: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.168015790219733 (code B ref 62536); Thu, 30 Mar 2023 06:32:02 +0000 Original-Received: (at 62536) by debbugs.gnu.org; 30 Mar 2023 06:31:42 +0000 Original-Received: from localhost ([127.0.0.1]:55542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phlp0-00058C-F8 for submit@debbugs.gnu.org; Thu, 30 Mar 2023 02:31:42 -0400 Original-Received: from mail-wm1-f54.google.com ([209.85.128.54]:42588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phloy-00057y-00 for 62536@debbugs.gnu.org; Thu, 30 Mar 2023 02:31:40 -0400 Original-Received: by mail-wm1-f54.google.com with SMTP id m6-20020a05600c3b0600b003ee6e324b19so11039599wms.1 for <62536@debbugs.gnu.org>; Wed, 29 Mar 2023 23:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680157894; h=content-transfer-encoding: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=T7lPJA2xsIkmrW/QV34XstqW63YFUMytl5X9LqqtQ/Q=; b=BnUbpgUhPvhC+8jMYLJwC3S8WAuNXUQMS/E62xzIrgN0kTQXHsqVCOQgFOwuqst0rN TkfiFiM6gfDCVAJD4c9yPIZqOk1CQSazwzguAuGH3EylWdgWRA7RKA3r8E449fCcIM4G /gO4XvH/6wey3kRPVKVQvw5D2LWoE4kLNZojTtkXfs/fU6kOYb+NWGy025a3eXKbolxu JYmnT/MFUWcolJ5TeMxpk3V+++n8Hx1c4k2nRD+xoJXWpIcQQM5U/jKhD0rZKw9hr7QV LNwWTF4LXVMCY1t4oofg6Xyl5Wf8/6H+6G3RoQUC2tJcjQBH/QBRx3w6DzfW+ZJkbXg2 mkPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680157894; h=content-transfer-encoding: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=T7lPJA2xsIkmrW/QV34XstqW63YFUMytl5X9LqqtQ/Q=; b=W223ZpHIjP1rR8ZqnLZk2QAFDwczi61N6mDS61j+XnvZAl624BP10L0qOQiunDX6eZ +zo++N4XdUsDg+J8YnDlqAvWxxOcepD3kXlkkxZ92VAbkz6GHQXp3ZxTftgid/sMFJPH WWs2nArysLwLG5Hi0Slqcm3gh5zkv4RLbqG6b98bqgVL1cWT0oZcMw6f4RZC/jcib3fl QwIHyr/Le1WwmBtNstEZaIly4buUyrRpSD6diyVblf4ZkCNFUtNvHFhH5QkJT4vPDpOH 2OLuWwZHZyCVsXZYDA3ssxFf5I5vNdRzk0f7EGsbflF6EtgDCOqEyGI2wyFVy2TcswVL Dd7Q== X-Gm-Message-State: AO0yUKV0TReO4PXg/IrxReiLOI+RbYZpaTMVOtWd1EKO4dLETkREo2XG zNs7xDT9+OP7LNoYSViPNyhvTnBUTCQ= X-Google-Smtp-Source: AK7set8wp1KO1qMQoTe8fjC/rDS7E8L2uZIC9gNCnbjnGBw3//NesAV9gDPU+hsHuqnDx9Xt4fn8mQ== X-Received: by 2002:a1c:f217:0:b0:3ee:5c4c:bdb0 with SMTP id s23-20020a1cf217000000b003ee5c4cbdb0mr16739037wmc.39.1680157893735; Wed, 29 Mar 2023 23:31:33 -0700 (PDT) Original-Received: from melissa.local ([2c0f:ef18:1431:0:b09:9616:db04:c248]) by smtp.gmail.com with ESMTPSA id z15-20020a05600c220f00b003ef5f77901dsm4534054wml.45.2023.03.29.23.31.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 23:31:33 -0700 (PDT) In-reply-to: <83sfdm6bet.fsf@gnu.org> 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:258894 Archived-At: >> From: =E7=89=9F =E6=A1=90 >> Date: Thu, 30 Mar 2023 04:25:07 +0000 >>=20 >> In elixir, the docs in src are like this: >>=20 >> ``` elixir-ts-mode >> defmodule Foo do >> @moduledoc """ >> Foo-related functions. >>=20 >> ## Examples >>=20 >> iex> Foo.sum(1, 2) >> 3 >> """ >>=20 >> @doc """ >> Calculate the sum of two numbers. >> """ >> def sum(a, b), do: a + b >> end >> ``` >>=20 >> In python-mode, input the continious triple quotes, it will=20 >> insert the >> left quotes when electric-pair-mode is on. >>=20 >> python-mode did it here: >>=20 >> https://github.com/emacs-mirror/emacs/blob/bfa3500c3c6e4df58978e84753718= cd5358c06fb/lisp/progmodes/python.el#L6599-L6607 >>=20 >>=20 >> https://github.com/emacs-mirror/emacs/blob/bfa3500c3c6e4df58978e84753718= cd5358c06fb/lisp/progmodes/python.el#L6637-L6639 >>=20 >>=20 >> This behavior is also very common in elixir, so can we add this=20 >> to >> elixir-ts-mode? thx > > Wilhelm, WDYT? Yes, I think we should add some version of this. I am currently=20 testing a syntax-propertize-function addition to solve an issue related to electric-pair-mode and will have a look at this straight after. There was another request to automatically insert `end` when `do`=20 is entered, which might be a good addition as well.=20