From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: anoop aryal Newsgroups: gmane.emacs.help Subject: Re: Delete (kill) entire line at cursor - how? Date: Mon, 26 Mar 2007 17:48:27 -0500 Organization: Foresight International Message-ID: <200703261748.27531.aaryal@foresightint.com> References: <1173165762.936371.202290@q40g2000cwq.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1174949336 4453 80.91.229.12 (26 Mar 2007 22:48:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 22:48:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 27 00:48:51 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HVxzZ-0001ma-JN for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Mar 2007 00:48:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVy1r-0001jJ-4p for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Mar 2007 17:51:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVy1c-0001i4-L6 for help-gnu-emacs@gnu.org; Mon, 26 Mar 2007 18:50:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVy1a-0001fy-1k for help-gnu-emacs@gnu.org; Mon, 26 Mar 2007 18:50:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVy1Z-0001fu-Sz for help-gnu-emacs@gnu.org; Mon, 26 Mar 2007 17:50:49 -0500 Original-Received: from mail.foresightint.com ([65.42.205.140]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HVxzH-0006m0-BF for help-gnu-emacs@gnu.org; Mon, 26 Mar 2007 18:48:27 -0400 Original-Received: from thewolf.foresightint.com (thewolf.foresightint.com [192.168.15.126]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.foresightint.com (Postfix) with ESMTP id C0FE5978090 for ; Mon, 26 Mar 2007 17:48:25 -0500 (CDT) User-Agent: KMail/1.9.5 In-Reply-To: Content-Disposition: inline X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42209 Archived-At: On Monday 26 March 2007 16:55, Mathias Dahl wrote: > David Hansen 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 > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs -- anoop aryal aaryal@foresightint.com