[OS X Emacs] delete parantheses pair

Marinos K marinos at agxivatein.com
Wed Feb 9 03:54:20 EST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I though afterwards of storing point position in a register,

but this is also crude I guess

m

On 09/02/2011 7:40 ?.?., David Rogoff wrote:
> 
>>
>> 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 ??
>>
> Really crude solution from a semi-elisp-literate user: 
> 1) search for the opening delimiter
> 2) insert some unique character string there (e.g. ZYZYZY)
> 3) go to the closing delimiter and delete it
> 4) back search for the ZYZYZY string and delete it and the following
> character, which should be the opening delimiter
> 
> 
> 
> _____________________________________________________________
> 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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNUlY7AAoJEHtg0hV818BQGqEIAKyYfjLPCwQDrIUjT/QH5h8p
jBrvV8f0lWxdTIAwAEr05EOfngJL7DPGy0TwwBCQEU7iFY2SsZMfq2NFIc0QI4P7
XPawZTZGnpRCx+CSiu9ge/zJjhRhKpjyVOg4ijPef2BLdyWNVRxXXfHrXHIkBdea
LBaaEkIjBKpZq7LXvuUZ6bxUAkLoif1NeDFsGcx7HO412KvLAboUz4Mfh6BAaE0Y
FbE4L6hagxqshV/eKsIyp8uXlo9tQdaXNPCCySk926QWMaORp4MdluPRpNI2Ji3/
lrTsz8zuaHdLJVUiGyO1K2Wo1puxa3YpvY3RA1smoLGnJx9ZjB8pKPHxOCMyl6Q=
=KU/Z
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x7CD7C050.asc
Type: application/pgp-keys
Size: 4258 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20110209/949c008d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x7CD7C050.asc.sig
Type: application/octet-stream
Size: 287 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20110209/949c008d/attachment.obj>


More information about the MacOSX-Emacs mailing list