From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Flaschen Newsgroups: gmane.emacs.help Subject: Re: Delete (kill) entire line at cursor - how? Date: Wed, 07 Mar 2007 02:29:20 -0500 Message-ID: <45EE69D0.9010802@gatech.edu> References: <1173165762.936371.202290@q40g2000cwq.googlegroups.com> <1173200295.212027.291640@v33g2000cwv.googlegroups.com> <04tHh.21521$6P2.4853@newsfe16.phx> 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 1173252589 25887 80.91.229.12 (7 Mar 2007 07:29:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Mar 2007 07:29:49 +0000 (UTC) To: emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 07 08:29:43 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 1HOqaj-0002nv-PN for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Mar 2007 08:29:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOqan-0003E0-PP for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Mar 2007 02:29:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HOqaY-0003Dd-9B for help-gnu-emacs@gnu.org; Wed, 07 Mar 2007 02:29:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HOqaU-0003DA-QT for help-gnu-emacs@gnu.org; Wed, 07 Mar 2007 02:29:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOqaU-0003D7-Kl for help-gnu-emacs@gnu.org; Wed, 07 Mar 2007 02:29:26 -0500 Original-Received: from deliverator7.gatech.edu ([130.207.165.169]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HOqaP-00084W-Gc for help-gnu-emacs@gnu.org; Wed, 07 Mar 2007 02:29:21 -0500 Original-Received: from deliverator7.gatech.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 6E5AE1982 for ; Wed, 7 Mar 2007 02:29:20 -0500 (EST) (envelope-from matthew.flaschen@gatech.edu) Original-Received: from mailprx3.gatech.edu (mailprx3.prism.gatech.edu [130.207.171.17]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "smtp.mail.gatech.edu", Issuer "RSA Data Security, Inc." (verified OK)) by deliverator7.gatech.edu (Postfix) with ESMTP id 5C76A1981 for ; Wed, 7 Mar 2007 02:29:20 -0500 (EST) (envelope-from matthew.flaschen@gatech.edu) Original-Received: from [128.61.73.81] (r73h81.res.gatech.edu [128.61.73.81]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (sasl: method=PLAIN, username=mflaschen3@mailprx3.gatech.edu, sender=n/a) by mailprx3.gatech.edu (Postfix) with ESMTP id 367E2216F for ; Wed, 7 Mar 2007 02:29:20 -0500 (EST) (envelope-from matthew.flaschen@gatech.edu) User-Agent: Thunderbird 1.5.0.9 (X11/20070104) In-Reply-To: <04tHh.21521$6P2.4853@newsfe16.phx> X-Enigmail-Version: 0.94.2.0 X-detected-kernel: Solaris 9 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:41742 Archived-At: Dave Benjamin wrote: > cmr.Pent@gmail.com wrote: >> And I use stable version (21.4 that is), so the `kill-whole-line' >> command is unavailable to me. >> Maybe it does exactly what Matt suggested ;-) > > Even if you're stuck with Emacs 21, you can still use the > kill-whole-line function from Emacs 22. It's in the file "simple.el" - > you can just paste that function into your .emacs and it'll work fine > (at least, it did for me). I just took a look. It does what mine does, but better. ;) Specifically, it takes care of invisible text, and puts the killed text in the right part of the kill region. I think either should suit the OP fine. Matt Flaschen