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#62536: 30.0.50; Can we add """ ... """ electric pair in elixir, just like python Date: Thu, 30 Mar 2023 08:44:26 +0300 Message-ID: <83sfdm6bet.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32738"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62536@debbugs.gnu.org To: =?UTF-8?Q?=E7=89=9F_?= =?UTF-8?Q?=E6=A1=90?= , Wilhelm H Kirschbaum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 30 07:45: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 1phl65-0008J9-Nj for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Mar 2023 07:45:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phl5w-0002OV-UA; Thu, 30 Mar 2023 01:45:08 -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 1phl5r-0002Mv-3M for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 01:45:06 -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 1phl5q-000380-RC for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 01:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phl5q-0003q8-Ic for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 01:45: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: Thu, 30 Mar 2023 05:45: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.168015506514686 (code B ref 62536); Thu, 30 Mar 2023 05:45:02 +0000 Original-Received: (at 62536) by debbugs.gnu.org; 30 Mar 2023 05:44:25 +0000 Original-Received: from localhost ([127.0.0.1]:55455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phl5E-0003oo-Ug for submit@debbugs.gnu.org; Thu, 30 Mar 2023 01:44:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phl5D-0003oV-Bc for 62536@debbugs.gnu.org; Thu, 30 Mar 2023 01:44:23 -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 1phl57-00034P-5J; Thu, 30 Mar 2023 01:44:17 -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=XBsKSJwNCnwMBrVzBG/u4AH3zOqzDJ7xmDAnPu58uS8=; b=LpjdAQBtrpFcfV9l6FG9 Q4Z7fCcjcM32KsOHrn2ZvclEVePmkEJ+h9+zoARWB/nm/rUogeEaaKQoRAx9RbPok/BJXtAomxrQl 7hY8eQ6Wkrvr0b3L2Qix/5Jcko++JxRnyb66WJ5XyYH4JR5fdMBIqVpFb0DDRSZwnQtfEa14/vsE+ gHh1HtVmFhTTSk47AY3A5uhubvXnZU2KAmOjEW+9oyytNJyRwBSE6U+G3a7ETuclC/U5opxoCIKAg SeJ1smLjCV3ll/PPR4AVK998vENhvmcn6Iddl59eZa4kHoAfvZnAKXe5e0W/++oQwM5d2XfbYzUsE N66qvN0Af/Aq7Q==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phl56-00073M-GY; Thu, 30 Mar 2023 01:44:16 -0400 In-Reply-To: (message from =?UTF-8?Q?=E7=89=9F_?= =?UTF-8?Q?=E6=A1=90?= on Thu, 30 Mar 2023 04:25:07 +0000) 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:258887 Archived-At: > From: IJ ͩ > Date: Thu, 30 Mar 2023 04:25:07 +0000 > > In elixir, the docs in src are like this: > > ``` elixir-ts-mode > defmodule Foo do > @moduledoc """ > Foo-related functions. > > ## Examples > > iex> Foo.sum(1, 2) > 3 > """ > > @doc """ > Calculate the sum of two numbers. > """ > def sum(a, b), do: a + b > end > ``` > > In python-mode, input the continious triple quotes, it will insert the > left quotes when electric-pair-mode is on. > > python-mode did it here: > > https://github.com/emacs-mirror/emacs/blob/bfa3500c3c6e4df58978e84753718cd5358c06fb/lisp/progmodes/python.el#L6599-L6607 > > > https://github.com/emacs-mirror/emacs/blob/bfa3500c3c6e4df58978e84753718cd5358c06fb/lisp/progmodes/python.el#L6637-L6639 > > > This behavior is also very common in elixir, so can we add this to > elixir-ts-mode? thx Wilhelm, WDYT?