[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
- Re: Delete (kill) entire line at cursor - how?, (continued)
- Re: Delete (kill) entire line at cursor - how?, Matthew Flaschen, 2007/03/07
- Message not available
- Re: Delete (kill) entire line at cursor - how?, cmr . Pent, 2007/03/07
- Re: Delete (kill) entire line at cursor - how?, Matthew Flaschen, 2007/03/07
- Re: Delete (kill) entire line at cursor - how?, anoop aryal, 2007/03/14
- Re: Delete (kill) entire line at cursor - how?, Matthew Flaschen, 2007/03/22
- Re: Delete (kill) entire line at cursor - how?, David Hansen, 2007/03/22
- Re: Delete (kill) entire line at cursor - how?, Matthew Flaschen, 2007/03/22
- Re: Delete (kill) entire line at cursor - how?, anoop aryal, 2007/03/26
- Re: Delete (kill) entire line at cursor - how?, Matthew Flaschen, 2007/03/26
- Message not available
- Re: Delete (kill) entire line at cursor - how?, Giorgos Keramidas, 2007/03/27
- Re: Delete (kill) entire line at cursor - how?,
Matthew Flaschen <=
- Message not available
- Re: Delete (kill) entire line at cursor - how?, Mathias Dahl, 2007/03/26
- Re: Delete (kill) entire line at cursor - how?, anoop aryal, 2007/03/26