From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#35480: insert-wide-parentheses Date: Tue, 07 May 2019 23:21:57 +0300 Organization: LINKOV.NET Message-ID: <875zqmul2h.fsf@mail.linkov.net> References: <87pnp5euh9.8.fsf@jidanni.org> <87lfzswpi1.fsf@mail.linkov.net> <87muk8b6ci.8.fsf@jidanni.org> <87y33rw9n4.fsf@mail.linkov.net> <87ftpsbkqf.fsf@igel.home> <83tve8jonz.fsf@gnu.org> <87d0kvv0n5.fsf@mail.linkov.net> <87mujzkxnk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="136373"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 35480@debbugs.gnu.org, Andreas Schwab , jidanni@jidanni.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 07 22:31:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hO6k8-000ZKR-1N for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 May 2019 22:31:16 +0200 Original-Received: from localhost ([127.0.0.1]:54241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hO6k6-0002mu-Ve for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 May 2019 16:31:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hO6jv-0002lT-GH for bug-gnu-emacs@gnu.org; Tue, 07 May 2019 16:31:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hO6ju-0000xM-H6 for bug-gnu-emacs@gnu.org; Tue, 07 May 2019 16:31:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46200) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hO6ju-0000xG-Ct for bug-gnu-emacs@gnu.org; Tue, 07 May 2019 16:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hO6ju-0003hy-7p for bug-gnu-emacs@gnu.org; Tue, 07 May 2019 16:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 May 2019 20:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35480 X-GNU-PR-Package: emacs Original-Received: via spool by 35480-submit@debbugs.gnu.org id=B35480.155726100814159 (code B ref 35480); Tue, 07 May 2019 20:31:02 +0000 Original-Received: (at 35480) by debbugs.gnu.org; 7 May 2019 20:30:08 +0000 Original-Received: from localhost ([127.0.0.1]:59736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hO6j2-0003gJ-I8 for submit@debbugs.gnu.org; Tue, 07 May 2019 16:30:08 -0400 Original-Received: from lavender.maple.relay.mailchannels.net ([23.83.214.99]:48576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hO6iz-0003fF-TO for 35480@debbugs.gnu.org; Tue, 07 May 2019 16:30:07 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id ABA1D500595; Tue, 7 May 2019 20:30:03 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a5.g.dreamhost.com (100-96-14-7.trex.outbound.svc.cluster.local [100.96.14.7]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 8AF88500E82; Tue, 7 May 2019 20:30:02 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a5.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Tue, 07 May 2019 20:30:03 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Abiding-Whispering: 1bc0cf0e7fb2a699_1557261003495_3495850717 X-MC-Loop-Signature: 1557261003495:1629221418 X-MC-Ingress-Time: 1557261003494 Original-Received: from pdx1-sub0-mail-a5.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a5.g.dreamhost.com (Postfix) with ESMTP id 78A567FA42; Tue, 7 May 2019 13:29:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=43gtO4 cc8yn0k1KoOPYS7tSheCs=; b=rtEoAV5kREbOlcbcRJWdWGcrsIakJu/3/6aOOr k56niAspFGs2PAAJCZ7bW2A9ORuCDwFXFtsKLtSBTgxI28ZfrtiJvIxdBgYlkYV5 gKEVfW+tgUbdHFnRrK6XUBpLB/C2mSlI1D58it2KFZIDsL01YwdpnJZ8+oQ0zkMv ulH+s= Original-Received: from mail.jurta.org (m91-129-99-37.cust.tele2.ee [91.129.99.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a5.g.dreamhost.com (Postfix) with ESMTPSA id C3F767FA3C; Tue, 7 May 2019 13:29:55 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a5 In-Reply-To: <87mujzkxnk.fsf@gmail.com> (Noam Postavsky's message of "Mon, 06 May 2019 18:47:59 -0400") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrkedtgdduheegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledrleelrdefjeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdelledrfeejpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepnhhpohhsthgrvhhssehgmhgrihhlrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:158890 Archived-At: >> Also tried to add a button that would pre-fill the default value >> with Unicode bracket pairs, but I see no way to do this because >> customize's :options is limited to =E2=80=98hook=E2=80=99, =E2=80=98pl= ist=E2=80=99, =E2=80=98alist=E2=80=99 types >> only, alas. > > Can't you use the alist type? The options is called insert-pair-ALIST > after all. I tried the alist type: (defcustom insert-pair-alist '((?\( ?\)) (?\[ ?\]) (?\{ ?\}) (?\< ?\>) (?\" ?\") (?\' ?\') (?\` ?\')= ) "Alist of paired characters inserted by `insert-pair'." :type '(alist :key-type (character :tag "Open/Command") :value-type (choice (list :tag "Pair" (character :tag "Close")) (list :tag "Triplet" (character :tag "Open") (character :tag "Close")))) :options '(?\=EF=BC=88) :group 'lisp :version "27.1") but its :options allows specifying only keys, not alist values.