From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tim Haynes Newsgroups: gmane.emacs.help Subject: Re: how to collapse a horizontal into vertail Date: Sun, 12 Jan 2003 00:03:41 +0000 Organization: What's Organization? Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <86of6nb5eq.fsf@potato.vegetable.org.uk> References: <86iswvcwqw.fsf@potato.vegetable.org.uk> Reply-To: news_reply@stirfried.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 1042330497 21418 80.91.224.249 (12 Jan 2003 00:14:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 12 Jan 2003 00:14:57 +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 18XVmA-0005Z1-00 for ; Sun, 12 Jan 2003 01:14:54 +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 18XVmj-0000jp-06 for gnu-help-gnu-emacs@m.gmane.org; Sat, 11 Jan 2003 19:15:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!peer1.news.newnet.co.uk!lon1-news.nildram.net!195.149.20.147.MISMATCH!mercury.nildram.co.uk!not-for-mail X-Anti-Echelon: MIT X-Anti-Echelon: Fukuyama Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Military Intelligence, i686-pc-linux) Cancel-Lock: sha1:tks8ckCKNlQbpVUuyPYhuht8mCc= Original-Lines: 22 Original-NNTP-Posting-Host: 195.149.39.120 Original-X-Trace: 1042330265 mercury.nildram.net 158 195.149.39.120 Original-Xref: shelby.stanford.edu gnu.emacs.help:108859 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:5388 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5388 Zimmen Gnauh writes: >> (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. You could use the narrow-to-region function (C-x n n) to shrink the affected area to a selected region, then widen (C-x n w) to regain view of the whole buffer. ~Tim -- 00:02:06 up 23 days, 8:49, 8 users, load average: 0.45, 0.29, 0.11 piglet@stirfried.vegetable.org.uk |I never knew that the http://piglet.is.dreaming.org |light of ages breaks the way before us