unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* removing a surrounding list
@ 2010-01-07 10:37 Andreas Roehler
  2010-01-07 11:38 ` Andreas Röhler
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Roehler @ 2010-01-07 10:37 UTC (permalink / raw)
  To: help-gnu-emacs


Hi,

must remove surrounding lists with its contents. For example:

(unless first (set-buffer (get-buffer-create test-mode)))

should be

(set-buffer (get-buffer-create test-mode))

Is there a tool right out of the box? Looked into
paredit.el, but can't see it.

Thanks

Andreas

--
https://code.launchpad.net/s-x-emacs-werkstatt/
http://bazaar.launchpad.net/~a-roehler/python-mode/python-mode.el/




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: removing a surrounding list
  2010-01-07 10:37 removing a surrounding list Andreas Roehler
@ 2010-01-07 11:38 ` Andreas Röhler
  2010-01-07 16:29   ` Thien-Thi Nguyen
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Röhler @ 2010-01-07 11:38 UTC (permalink / raw)
  To: help-gnu-emacs

Andreas Roehler wrote:
> Hi,
> 
> must remove surrounding lists with its contents. For example:
> 
> (unless first (set-buffer (get-buffer-create test-mode)))
> 
> should be
> 
> (set-buffer (get-buffer-create test-mode))
> 
> Is there a tool right out of the box? Looked into
> paredit.el, but can't see it.
> 

Its done with

paredit-splice-sexp-killing-backward

Got help off-list...

Thanks




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: removing a surrounding list
  2010-01-07 11:38 ` Andreas Röhler
@ 2010-01-07 16:29   ` Thien-Thi Nguyen
  2010-01-07 20:47     ` Andreas Röhler
  0 siblings, 1 reply; 4+ messages in thread
From: Thien-Thi Nguyen @ 2010-01-07 16:29 UTC (permalink / raw)
  To: help-gnu-emacs

() Andreas Röhler <andreas.roehler@easy-emacs.de>
() Thu, 07 Jan 2010 12:38:46 +0100

   > (unless first (set-buffer (get-buffer-create test-mode)))
   > 
   > should be
   > 
   > (set-buffer (get-buffer-create test-mode))

   paredit-splice-sexp-killing-backward

You can also use `raise-sexp', which is included with Emacs.

thi




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: removing a surrounding list
  2010-01-07 16:29   ` Thien-Thi Nguyen
@ 2010-01-07 20:47     ` Andreas Röhler
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Röhler @ 2010-01-07 20:47 UTC (permalink / raw)
  To: Thien-Thi Nguyen; +Cc: help-gnu-emacs

Thien-Thi Nguyen wrote:
> () Andreas Röhler <andreas.roehler@easy-emacs.de>
> () Thu, 07 Jan 2010 12:38:46 +0100
> 
>    > (unless first (set-buffer (get-buffer-create test-mode)))
>    > 
>    > should be
>    > 
>    > (set-buffer (get-buffer-create test-mode))
> 
>    paredit-splice-sexp-killing-backward
> 
> You can also use `raise-sexp', which is included with Emacs.
> 
> thi
> 
> 
> 

Thanks a lot, Thi!




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-07 20:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-07 10:37 removing a surrounding list Andreas Roehler
2010-01-07 11:38 ` Andreas Röhler
2010-01-07 16:29   ` Thien-Thi Nguyen
2010-01-07 20:47     ` Andreas Röhler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).