From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#32896: 27.0.50; wishlist: Delete matching pairs Date: Tue, 09 Oct 2018 01:15:30 +0300 Organization: LINKOV.NET Message-ID: <87a7not799.fsf@mail.linkov.net> References: <87r2h9wxa4.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1539040061 8343 195.159.176.226 (8 Oct 2018 23:07:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 Oct 2018 23:07:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 32896-done@debbugs.gnu.org To: Alex Branham Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 09 01:07:36 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9eci-00024L-5m for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Oct 2018 01:07:36 +0200 Original-Received: from localhost ([::1]:48691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9eeo-0005aH-Qi for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Oct 2018 19:09:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9eeE-0005Gn-45 for bug-gnu-emacs@gnu.org; Mon, 08 Oct 2018 19:09:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9ee9-00059N-7s for bug-gnu-emacs@gnu.org; Mon, 08 Oct 2018 19:09:10 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g9ee7-00058N-GK for bug-gnu-emacs@gnu.org; Mon, 08 Oct 2018 19:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g9ee7-00014Q-BB for bug-gnu-emacs@gnu.org; Mon, 08 Oct 2018 19:09:03 -0400 Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Oct 2018 23:09:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 32896 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 32896@debbugs.gnu.org, juri@linkov.net, alex.branham@gmail.com Original-Received: via spool by 32896-done@debbugs.gnu.org id=D32896.15390401244063 (code D ref 32896); Mon, 08 Oct 2018 23:09:03 +0000 Original-Received: (at 32896-done) by debbugs.gnu.org; 8 Oct 2018 23:08:44 +0000 Original-Received: from localhost ([127.0.0.1]:40917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9edo-00013T-KY for submit@debbugs.gnu.org; Mon, 08 Oct 2018 19:08:44 -0400 Original-Received: from pop.dreamhost.com ([64.90.62.162]:59472 helo=pdx1-sub0-mail-a36.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9edm-00013L-OI for 32896-done@debbugs.gnu.org; Mon, 08 Oct 2018 19:08:43 -0400 Original-Received: from pdx1-sub0-mail-a36.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a36.g.dreamhost.com (Postfix) with ESMTP id 59A3880365; Mon, 8 Oct 2018 16:08:42 -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=zuvY/D lSUJiViZw39BUkz8dJbMM=; b=Lk8nAqkatDPIsGAkMi+zx2H+g1Esg8beX9UZnq TTbdgYelCp56yoHGTPZq5H8ISJ35SpgUbDqO9h9lLjWt6i6N5hW9YNbc8M+fZ/6C zDnIMS9d2hFNpUOO3MMtdp0J9dEKEVobo3HPuEri13rCAUdVGU17FDUmOtqXdQs/ pb9tA= Original-Received: from localhost.linkov.net (m91-129-107-184.cust.tele2.ee [91.129.107.184]) (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-a36.g.dreamhost.com (Postfix) with ESMTPSA id CFEB88036B; Mon, 8 Oct 2018 16:08:40 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a36 In-Reply-To: <87r2h9wxa4.fsf@gmail.com> (Alex Branham's message of "Mon, 01 Oct 2018 09:34:43 -0500") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrudefgddulecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtgfesthekredttderjeenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdejrddukeegnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehlohgtrghlhhhoshhtrdhlihhnkhhovhdrnhgvthdpihhnvghtpeeluddruddvledruddtjedrudekgedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegrlhgvgidrsghrrghnhhgrmhesghhmrghilhdrtghomhenucevlhhushhtvghrufhiiigvpedt 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: 208.118.235.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:151031 Archived-At: > It would be nice if Emacs had a command to remove matching pairs of > things so that (with | representing point): > > (|let (message "%s" "foobar")) > > I could delete the parens around the let function. This should work for > other pairs too: > > (let ((foobar "foobar")) (message "%s" "|foobar")) > > to delete the quotes around the second "foobar" > > I know there are 3rd-party packages that implement this but it seems > like this should be included with Emacs since it's such a great tool fo= r > editing. Fortunately, Emacs already has such a command named =E2=80=98delete-pair=E2= =80=99: it deletes the parens around the let function as in your first example as well as the quotes in your second example. It makes sense to bind this command to e.g. =E2=80=98C-x M-(=E2=80=99 to be the in= verse of =E2=80=98M-(=E2=80=99 (insert-pair)