emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#32896: closed (27.0.50; wishlist: Delete matching


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#32896: closed (27.0.50; wishlist: Delete matching pairs)
Date: Mon, 08 Oct 2018 23:09:03 +0000

Your message dated Tue, 09 Oct 2018 01:15:30 +0300
with message-id <address@hidden>
and subject line Re: bug#32896: 27.0.50; wishlist: Delete matching pairs
has caused the debbugs.gnu.org bug report #32896,
regarding 27.0.50; wishlist: Delete matching pairs
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
32896: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32896
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 27.0.50; wishlist: Delete matching pairs Date: Mon, 01 Oct 2018 09:34:43 -0500 User-agent: mu4e 1.1.0; emacs 27.0.50
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 for
editing.

Alex

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message --- Subject: Re: bug#32896: 27.0.50; wishlist: Delete matching pairs Date: Tue, 09 Oct 2018 01:15:30 +0300 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
> 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 for
> editing.

Fortunately, Emacs already has such a command named ‘delete-pair’:
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. ‘C-x M-(’ to be the inverse of
‘M-(’ (insert-pair)


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]