From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: Delete (kill) entire line at cursor - how? Date: Fri, 23 Mar 2007 03:43:33 +0100 Organization: disorganized Message-ID: <87y7loy90q.fsf@localhorst.mine.nu> References: <1173165762.936371.202290@q40g2000cwq.googlegroups.com> <1173262427.110517.198500@q40g2000cwq.googlegroups.com> <200703141138.33959.aaryal@foresightint.com> <46032D86.2060508@gatech.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174618441 25395 80.91.229.12 (23 Mar 2007 02:54:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2007 02:54:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 23 03:53:53 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 1HUZua-0003Qy-SD for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Mar 2007 03:53:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUZwR-00047F-5l for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Mar 2007 21:55:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HUZw8-00046V-To for help-gnu-emacs@gnu.org; Thu, 22 Mar 2007 22:55:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HUZw7-00043z-Hw for help-gnu-emacs@gnu.org; Thu, 22 Mar 2007 22:55:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUZw7-00043w-BE for help-gnu-emacs@gnu.org; Thu, 22 Mar 2007 21:55:27 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HUZuF-0006mX-Kf for help-gnu-emacs@gnu.org; Thu, 22 Mar 2007 22:53:31 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HUZu5-0002ze-HV for help-gnu-emacs@gnu.org; Fri, 23 Mar 2007 03:53:21 +0100 Original-Received: from 85.178.8.0 ([85.178.8.0]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Mar 2007 03:53:21 +0100 Original-Received: from david.hansen by 85.178.8.0 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Mar 2007 03:53:21 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 16 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 85.178.8.0 Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:pwgWTSKH00YSYPiB6C886P/Cs9I= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:42120 Archived-At: On Thu, 22 Mar 2007 21:29:42 -0400 Matthew Flaschen wrote: > anoop aryal wrote: >> i use C-M-k to delete sexps, C-c-C-o to delete multiple consequitive blank >> lines etc. and therefore find that kill-entire-line is something i'll use >> only when none of the other constructs are available. not to say that i don't >> use C-k, it's just that given a bunch of other higher level constructs and >> functions to operate on those constructs, C-k has limited use. > > Is there such a construct for deleting the current statement in > C/C++/Java? If not, I could see using kill-entire-line often for that. There are `c-beginning-of-statement' and `c-end-of-statement'. The rest is left as an exercise to the reader. David