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: Matthew Flaschen
Subject: Re: Delete (kill) entire line at cursor - how?
Date: Tue, 27 Mar 2007 06:46:31 -0400
User-agent: Thunderbird 1.5.0.10 (X11/20070306)

Giorgos Keramidas wrote:
> Matthew Flaschen <matthew.flaschen@gatech.edu> writes:
>> anoop aryal wrote:
>>> i'm sure it could be done better but here's something you can put in 
>>> your .emacs file:
>>>
>>> (defun c-kill-statement ()
>>>   "a handy way to kill a statement even when it spans multiple lines."
>>>   (interactive)
>>>   (save-excursion
>>>     (c-beginning-of-statement-1)
>>>     (let ((start (point)))
>>>       (c-end-of-statement)
>>>       (let ((end (point)))
>>>         (kill-region start end)))))
>> Thanks, but I really have no need for this.  I was just curious
>> whether emacs had such semantics built-in.
> 
> The answer to this depends on what you mean by 'semantics'.  Does the
> following match, or even approximate what you had in mind?
> 
Again, this is idle curiosity, but no.  That doesn't seem to have any
useful understanding of C/Java syntax.  It just kills the next word.

Matthew Flaschen




reply via email to

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