From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steven Degutis Newsgroups: gmane.emacs.help Subject: Re: elisp how to insert text at end of each line Date: Wed, 10 Apr 2013 12:36:12 -0500 Message-ID: References: <1365614909301-283410.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdc7afe36e35b04da051b57 X-Trace: ger.gmane.org 1365615391 21700 80.91.229.3 (10 Apr 2013 17:36:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Apr 2013 17:36:31 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: acomber Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 10 19:36:34 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UPywj-0005V1-Ff for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Apr 2013 19:36:33 +0200 Original-Received: from localhost ([::1]:54355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPywi-0003pC-Dp for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Apr 2013 13:36:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPywT-0003hx-Ur for Help-gnu-emacs@gnu.org; Wed, 10 Apr 2013 13:36:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPywQ-0001Na-1C for Help-gnu-emacs@gnu.org; Wed, 10 Apr 2013 13:36:17 -0400 Original-Received: from mail-pd0-f177.google.com ([209.85.192.177]:48017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPywP-0001NQ-Ro for Help-gnu-emacs@gnu.org; Wed, 10 Apr 2013 13:36:13 -0400 Original-Received: by mail-pd0-f177.google.com with SMTP id u11so391029pdi.36 for ; Wed, 10 Apr 2013 10:36:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=h4mqPncmBBrE+QZt3vP9r8RJXcXnYdK99bBdw1nj9zE=; b=xk2RHwXEXYYdiI0ufTDmo2b9bfKbUAWTm5jYWObAgqt+DMuSNywmIFy8fEk8sj2GW0 SRGkODw7EvZofnTXGj0c7IE8iXzOvWsfOi1IdpxQiiAT9r5M16ZqkpRaDXm14vNCbUvM zEYBBkTsqfnvHGOULfMCvrPN45UrG/CMMrq9Jq+KLNe75H+99eYcVzStjqtNDbUQq6tt /umTnsGIGUYr+F1gvPe/Pg0Hd1h0zBvAPvPWYaT7jbzkA1aTe+LMTfKvTsmMoZ6esLcv DQW76q8H+AzYbVE07gp3UsyvK+9hl63uP0yYwltDfscpKVJoF55NlTAMz2FPjvPa8dUa BNeg== X-Received: by 10.66.122.196 with SMTP id lu4mr4670940pab.129.1365615373109; Wed, 10 Apr 2013 10:36:13 -0700 (PDT) Original-Received: by 10.70.24.197 with HTTP; Wed, 10 Apr 2013 10:36:12 -0700 (PDT) In-Reply-To: <1365614909301-283410.post@n5.nabble.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.192.177 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90063 Archived-At: --047d7bdc7afe36e35b04da051b57 Content-Type: text/plain; charset=ISO-8859-1 If you want to do it interactively as a user, I would use multiple-cursors.el (in MELPA, https://github.com/magnars/multiple-cursors.el/). Otherwise, don't know. -Steven On Wed, Apr 10, 2013 at 12:28 PM, acomber wrote: > I tried: > > (while (search-forward "\n") > (insert "My text to insert") > ) > > and tried using $ symbol. > > Neither worked. > > Is there a way to do this in elisp? > > > > -- > View this message in context: > http://emacs.1067599.n5.nabble.com/elisp-how-to-insert-text-at-end-of-each-line-tp283410.html > Sent from the Emacs - Help mailing list archive at Nabble.com. > > --047d7bdc7afe36e35b04da051b57 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
If you want to do it interactively as a user, I would use = multiple-cursors.el (in MELPA, https://github.com/magnars/multiple-cursors.el/).
<= br>
Otherwise, don't know.

-Steven
--047d7bdc7afe36e35b04da051b57--