From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kgold Newsgroups: gmane.emacs.help Subject: Re: replacing endline Date: Thu, 20 Apr 2006 14:54:42 -0400 Organization: Global Network Services - Remote Access Mail & News Services Message-ID: <4447d8f2$1@kcnews01> References: <1145492327.354125.133060@j33g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145562084 19940 80.91.229.2 (20 Apr 2006 19:41:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Apr 2006 19:41:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 20 21:41:23 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FWf1c-00024A-NM for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Apr 2006 21:41:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWf1c-0002bC-8D for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Apr 2006 15:41:12 -0400 User-Agent: Mozilla/5.0 (X11; U; AIX 000C89FF4C00; en-US; rv:1.7) Gecko/20040617 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: <1145492327.354125.133060@j33g2000cwa.googlegroups.com> Original-NNTP-Posting-Host: yktgi01e0-s5.watson.ibm.com Original-X-Trace: kcnews01 1145559282 129.34.20.19 (20 Apr 2006 19:54:42 +0100) Original-Lines: 35 Original-X-Complaints-To: abuse@prserv.net Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!kcnewsm01.prserv.net!prserv.net!kcnews01!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:138903 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:34521 Archived-At: I agree with Fredrik. While there's certainly a 'correct' way to do this, emacs keyboard macros are great for these unusual repetitive tasks. You could define the macro and execute it much less time than you could read the manual to learn the right way. If it's a task you do constantly, of course learn how to do it. But for one-time edits, keyboard macros are handy. sarah.dzion@gmail.com wrote: > Hi I want to convert : > 72 > 17 > 18 > 19 > 20 > 21 > 22 > 23 > 24 > 25 > > > to > > 72#17#18#19#20#21#22#23#24#25 > > how do I do this using replace-string (or something else in emacs)? > basically I do not know how to specify endline in emacs. > > Appreciate the help! > Thanks! > -A >