help-gnu-emacs
[Top][All Lists]
Advanced

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

How to delete the parens around a sexp?


From: Marcin Borkowski
Subject: How to delete the parens around a sexp?
Date: Tue, 22 Sep 2015 09:40:28 +0200

Hi list,

I'd like to transform this:

-!-(some gibberish)

into this:

-!-some gibberish

I assume there's no function in Elisp for that, and it's trivial to
write one, but I just wanted to make sure before I code it.  raise-sexp
doesn't work, since it gobbles "gibberish" in the above example unless
given a prefix argument, and if you replace "some gibberish" with an
actual sentence, counting words manually is no fun.

(Note: before anyone tells me how such a transformation doesn't make
sense: I need it for writing in a natural language.)

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

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