all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Delete current parenthese-block
@ 2009-01-12 17:21 TheLonelyStar
  2009-01-12 18:00 ` Ian Eure
  0 siblings, 1 reply; 5+ messages in thread
From: TheLonelyStar @ 2009-01-12 17:21 UTC (permalink / raw)
  To: Help-gnu-emacs


Hi,

I am not sure how to call it.  I am looking for a function which deletes the
paranthese-block point is currently in.
With paranthese-block, I mean something like this:

(Text Stuff)

or

{
a line
}

or

[ Text Stuff ]

Does something like this exist?

Thanks!
Nathan
-- 
View this message in context: http://www.nabble.com/Delete-current-parenthese-block-tp21419123p21419123.html
Sent from the Emacs - Help mailing list archive at Nabble.com.





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

* Re: Delete current parenthese-block
       [not found] <mailman.4637.1231780921.26697.help-gnu-emacs@gnu.org>
@ 2009-01-12 17:42 ` poppyer
  2009-01-12 18:02   ` Teemu Likonen
  2009-01-12 22:42 ` Xah Lee
  1 sibling, 1 reply; 5+ messages in thread
From: poppyer @ 2009-01-12 17:42 UTC (permalink / raw)
  To: help-gnu-emacs


TheLonelyStar <nabble2@lonely-star.org> writes:

: Hi,
:
: I am not sure how to call it.  I am looking for a function which deletes the
: paranthese-block point is currently in.
: With paranthese-block, I mean something like this:
:
: (Text Stuff)
:
: or
:
: {
: a line
: }
:
: or
:
: [ Text Stuff ]
:
: Does something like this exist?

First, locate the left ( { or [
then, M-x kill-sexp

cheers,
poppyer
:
: Thanks!
: Nathan


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

* Re: Delete current parenthese-block
  2009-01-12 17:21 Delete current parenthese-block TheLonelyStar
@ 2009-01-12 18:00 ` Ian Eure
  0 siblings, 0 replies; 5+ messages in thread
From: Ian Eure @ 2009-01-12 18:00 UTC (permalink / raw)
  To: TheLonelyStar; +Cc: Help-gnu-emacs

On Jan 12, 2009, at 9:21 AM, TheLonelyStar wrote:

>
> Hi,
>
> I am not sure how to call it.  I am looking for a function which  
> deletes the
> paranthese-block point is currently in.

Hit C-M-u (backward-up-list) until you get to the start of the block,  
then C-M-k (kill-sexp) to kill it.

  - Ian




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

* Re: Delete current parenthese-block
  2009-01-12 17:42 ` poppyer
@ 2009-01-12 18:02   ` Teemu Likonen
  0 siblings, 0 replies; 5+ messages in thread
From: Teemu Likonen @ 2009-01-12 18:02 UTC (permalink / raw)
  To: help-gnu-emacs

poppyer (2009-01-13 01:42 +0800) wrote:

> First, locate the left ( { or [
> then, M-x kill-sexp

It's bound to C-M-k by default. One can mark such expression with
C-M-SPC (mark-sexp).


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

* Re: Delete current parenthese-block
       [not found] <mailman.4637.1231780921.26697.help-gnu-emacs@gnu.org>
  2009-01-12 17:42 ` poppyer
@ 2009-01-12 22:42 ` Xah Lee
  1 sibling, 0 replies; 5+ messages in thread
From: Xah Lee @ 2009-01-12 22:42 UTC (permalink / raw)
  To: help-gnu-emacs

On Jan 12, 9:21 am, TheLonelyStar <nabb...@lonely-star.org> wrote:
> Hi,
>
> I am not sure how to call it.  I am looking for a function which deletes the
> paranthese-block point is currently in.
> With paranthese-block, I mean something like this:
>
> (Text Stuff)
>
> or
>
> {
> a line
>
> }
>
> or
>
> [ Text Stuff ]
>
> Does something like this exist?

others has given you direct solution. You might also be interested in
this:

• Tips For Editing Lisp Code With Emacs
  http://xahlee.org/emacs/emacs_editing_lisp.html

See the section Navigating Nested Code, which list all builtin
solutions useful for coding in a syntax with nested pairs.

  Xah
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-12 22:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-12 17:21 Delete current parenthese-block TheLonelyStar
2009-01-12 18:00 ` Ian Eure
     [not found] <mailman.4637.1231780921.26697.help-gnu-emacs@gnu.org>
2009-01-12 17:42 ` poppyer
2009-01-12 18:02   ` Teemu Likonen
2009-01-12 22:42 ` Xah Lee

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.