[OS X Emacs] delete parantheses pair

Peter Loshin peter.loshin at gmail.com
Wed Feb 9 07:13:56 EST 2011


I wonder whether this approach would work:

- delete the part you want to save (into the kill ring)
- delete the delimiters and optional adjoined word that you want deleted
- then yank the part you wanted to save from the kill ring

- Peter Loshin


On Tue, Feb 8, 2011 at 9:53 AM, Marinos K <marinos at agxivatein.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I want to code a function or a macro that would delete a pair of
> delimiters (but not what is inside) and optionally the adjoined word
>
> so this
>
> { abcdefgh }.sth
>
> would become
>
> abcdefgh
>
> but as soon as I delete one of the delimiters I cannot move to the other
> as it is no longer balanced.. how can I do this ?
>
> maybe there is already sth similar implemented ??
>
> m
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.8 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJNUVjDAAoJEHtg0hV818BQiMoH/0cWbaCk05f3BI8BxzEbhxKn
> cYyJ7DY2l2/p+OSq8Hvpcdf1E3nDaBCwL5EaT0OPiPPcMkEZQag44FUt8QS0bK6n
> mqoQ2QOezmly817tSx4Mn1eUlLBeAUhhMebsk9+HjElREQV3xeV/sYxi6nobLwEY
> dnxCiblp0ZBdSvHZL8wUJhC/Og3TH+8WH8BxCFHW3gfmtyngnzLWcOHHFbSkFnMt
> LOyEaTXP4W7eDF1f7j1e5RV/Xd6AT7XvnFIYo7sDiHGX7l4BwlXoDfOlkb38V0kO
> APnjYkHm+/C7tytDx7wkQZunneGg+Oars5KQ2nZvN+xOA1vr5oD+UmqrbTCNVlo=
> =BKVd
> -----END PGP SIGNATURE-----
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20110209/4144e9ac/attachment.html>


More information about the MacOSX-Emacs mailing list