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

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

Re: Delete (kill) entire line at cursor - how?


From: anoop aryal
Subject: Re: Delete (kill) entire line at cursor - how?
Date: Mon, 26 Mar 2007 17:48:27 -0500
User-agent: KMail/1.9.5

On Monday 26 March 2007 16:55, Mathias Dahl wrote:
> David Hansen <address@hidden> writes:
> > There are `c-beginning-of-statement' and `c-end-of-statement'.  The
> > rest is left as an exercise to the reader.
>
> I needed some exercise :)
>
> (defun c-kill-statement ()
>   (interactive)
>   (kill-region (save-excursion
>                  (c-beginning-of-statement 1)
>                  (point))
>                (save-excursion
>                  (c-end-of-statement 1)
>                  (point))))

nice. ;)

>
> /Mathias
> _______________________________________________
> help-gnu-emacs mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

-- 

anoop aryal
address@hidden




reply via email to

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