[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to delete the parens around a sexp?
From: |
Marco Wahl |
Subject: |
Re: How to delete the parens around a sexp? |
Date: |
Tue, 22 Sep 2015 10:38:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Hi!
Marcin Borkowski <mbork@mbork.pl> writes:
> 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,
Maybe you can use command paredit-splice-sexp from paredit mode.
C-h k M-s in paredit mode yields:
M-s runs the command paredit-splice-sexp (found in paredit-mode-map),
which is an interactive compiled Lisp function in ‘paredit.el’.
- How to delete the parens around a sexp?, Marcin Borkowski, 2015/09/22
- Re: How to delete the parens around a sexp?, Nicolas Richard, 2015/09/22
- Re: How to delete the parens around a sexp?, Rasmus, 2015/09/22
- Re: How to delete the parens around a sexp?, Andreas Röhler, 2015/09/22
- Re: How to delete the parens around a sexp?, Emanuel Berg, 2015/09/22
- Re: How to delete the parens around a sexp?, John Mastro, 2015/09/22