From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Greg Rowe Newsgroups: gmane.emacs.help Subject: Re: newbie: selecting a line in emacs Date: Tue, 29 Mar 2005 15:02:41 -0500 Organization: Time-Warner Telecom Message-ID: <4249b485$0$3703$39cecf19@news.twtelecom.net> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1112126698 653 80.91.229.2 (29 Mar 2005 20:04:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2005 20:04:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 29 22:04:53 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGMvx-0001Yf-Hm for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Mar 2005 22:03:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGNCI-0004fc-Sr for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Mar 2005 15:20:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeeds.sol.net!posts.news.twtelecom.net!nnrp2.twtelecom.net!not-for-mail User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 26 Original-NNTP-Posting-Date: 29 Mar 2005 20:03:17 GMT Original-NNTP-Posting-Host: 81647f39.news.twtelecom.net Original-X-Trace: DXC=6aFjXPV4G1JD0`7P96diRHC_A=>8kQj6M=_1NR_H?JPM2cDA^[g2PAN<=dg>3m?k>G?bd^lUjG\FB Original-X-Complaints-To: abuse@twtelecom.net Original-Xref: shelby.stanford.edu gnu.emacs.help:129718 Original-To: help-gnu-emacs@gnu.org 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:25272 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25272 Saket Sathe wrote: > hi, > How do I select an entire line in emacs for yanking/pasting etc. In emacs the "selection" is all the text between the point (where the cursor is) and the mark (where you set the mark last using C-space). Normally the "selection" is not visible because the selection is ALWAYS active. In many other editors selections are not always active. A lot of emacs users like using transient mark mode. This mode will highlight the active "selection" and slightly changes the behavior of emacs to be a bit more like other editors. You can enable this mode with M-x transient-mark-mode. If you run M-x transient-mark-mode a second time it will turn it off. In transient mark mode to disable an active selection you can hit C-g. So if you want to kill/cut some text you would hit C-space at the beginning of your selection and then move to the end of your selection. Then C-w to put the text into the kill ring (to cut it). To disable the active selection in transient mark mode use C-g. Greg -- Home is where the .bashrc is.