From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LanX Newsgroups: gmane.emacs.help Subject: Re: copying text into a paste buffer as you type? Date: Thu, 16 Dec 2010 03:27:28 -0800 (PST) Organization: http://groups.google.com Message-ID: <25f60e45-6c58-4101-8cda-d4ee4bbba46c@fu15g2000vbb.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1292501118 9324 80.91.229.12 (16 Dec 2010 12:05:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Dec 2010 12:05: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 Thu Dec 16 13:05:14 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 1PTCa4-0005MW-Qc for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Dec 2010 13:05:14 +0100 Original-Received: from localhost ([127.0.0.1]:36892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTCDM-0006GC-At for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Dec 2010 06:41:40 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!fu15g2000vbb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 89.12.228.227 Original-X-Trace: posting.google.com 1292498849 26343 127.0.0.1 (16 Dec 2010 11:27:29 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 16 Dec 2010 11:27:29 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: fu15g2000vbb.googlegroups.com; posting-host=89.12.228.227; posting-account=W9fpQwoAAADZYmkl-8sXk1VPxG3rq-Pd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.19) Gecko/2010040118 Ubuntu/8.10 (intrepid) Firefox/3.0.19,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:183342 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:77586 Archived-At: Hello Rajinder On 16 Dez., 11:58, Rajinder Yadav 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 =3D> false' once and be abl= e > to paste into the other lines > > =A0 =A0t.string :title, null =3D> false > =A0 =A0t.string :name, null =3D> false > =A0 =A0t.text :post, null =3D> false are you sure that's what you really want? I think what you really want is snippet expansion. Have a look at yasnippet, maybe starting with a youtube video. IMHO it should be possible by using embedded elisp to keep the variable parts of a line expansion into memory, and to use it as default in the next line. Another thing that came into my mind is (reimplementing?) bash's behaviour for "M-." but "null =3D> false" are multiple words. Cheers rolf