From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: copying text into a paste buffer as you type? Date: Mon, 20 Dec 2010 00:09:32 -0700 Message-ID: References: <4D09F0EF.5030601@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292829018 22276 80.91.229.12 (20 Dec 2010 07:10:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Dec 2010 07:10:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 20 08:10:15 2010 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.69) (envelope-from ) id 1PUZss-0007OL-5R for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Dec 2010 08:10:14 +0100 Original-Received: from localhost ([127.0.0.1]:59859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUZsr-0006ug-IE for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Dec 2010 02:10:13 -0500 Original-Received: from [140.186.70.92] (port=52336 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUZsR-0006uS-2n for help-gnu-emacs@gnu.org; Mon, 20 Dec 2010 02:09:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUZsP-0000sw-Tc for help-gnu-emacs@gnu.org; Mon, 20 Dec 2010 02:09:46 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:45697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUZsP-0000sU-O1 for help-gnu-emacs@gnu.org; Mon, 20 Dec 2010 02:09:45 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PUZsN-0007Cw-VY for help-gnu-emacs@gnu.org; Mon, 20 Dec 2010 08:09:43 +0100 Original-Received: from c-24-8-96-241.hsd1.co.comcast.net ([24.8.96.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Dec 2010 08:09:43 +0100 Original-Received: from kevin.d.rodgers by c-24-8-96-241.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Dec 2010 08:09:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-24-8-96-241.hsd1.co.comcast.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:77685 Archived-At: On 12/16/10 9:49 AM, Drew Adams wrote: >> is there a way to get emacs to copy text into a paste buffer as you >> type? for example, I would like to type 'null => false' once >> and be able to paste into the other lines >> >> t.string :title, null => false >> t.string :name, null => false >> t.text :post, null => false > > Yes, but you have to tell it when to start and stop copying. > > C-SPC n u l l => f a l s e C-x C-x C-x C-x M-w > > Start: > `C-SPC' Mark selection beginning. > Type text. > Stop: > `C-x C-x' Activate selection, swapping mark and point. > `C-x C-x' Swap mark and point back again. > `M-x' Copy selection to kill-ring (paste buffer). > > Then `C-y' to yank (paste) it. C-SPC and M-w are keyboard commands pertaining to the region, not the selection. So the 2 C-x C-x commands are not needed. -- Kevin Rodgers Denver, Colorado, USA