From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Zimmen Gnauh Newsgroups: gmane.emacs.help Subject: Re: how to collapse a horizontal into vertail Date: Sat, 11 Jan 2003 21:37:51 GMT Organization: Optimum Online Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <86iswvcwqw.fsf@potato.vegetable.org.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042321366 25894 80.91.224.249 (11 Jan 2003 21:42:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 11 Jan 2003 21:42:46 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18XTOv-0006jO-00 for ; Sat, 11 Jan 2003 22:42:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18XTNB-0002IY-06 for gnu-help-gnu-emacs@m.gmane.org; Sat, 11 Jan 2003 16:40:57 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!wn11feed!worldnet.att.net!64.154.60.72!cyclone2.usenetserver.com!news.webusenet.com!news01.optonline.net!news4.srv.hcvlny.cv.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 24.185.94.59 Original-X-Trace: news4.srv.hcvlny.cv.net 1042321071 24.185.94.59 (Sat, 11 Jan 2003 16:37:51 EST) Original-NNTP-Posting-Date: Sat, 11 Jan 2003 16:37:51 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:108856 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5385 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5385 Tim Haynes writes: > Zimmen Gnauh writes: > > > shell command tr can be used to collapse a sentence "this is a test" > > into > > > this > > is > > a > > test > > . How can this be done in emacs? > > (replace-regexp " " "^J") > > or M-x replace-regexp, similarly. Use C-q to quote the C-j. > > Works t'other way round, too :) > this would replace all " " with "^J". However, the text I'd like to replace is only part of the buffer. I expect to mark the region first and then do something to collapse it. -- Nothing