From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: ^L character? Date: Tue, 7 Nov 2006 22:44:40 -0600 Organization: UseNetServer.com Message-ID: <6354b$45515e29$49fa2ee$11029@DIALUPUSA.NET> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1162964473 18471 80.91.229.2 (8 Nov 2006 05:41:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Nov 2006 05:41:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 08 06:41:10 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 1GhgBM-0003dO-D1 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Nov 2006 06:41:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GhgBM-0001SZ-04 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Nov 2006 00:41:04 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!uns-out.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!DIALUPUSA.NET!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 32 Original-X-Trace: 6354b45515e29a13a074b11029 Original-Xref: shelby.stanford.edu gnu.emacs.help:142965 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:38584 Archived-At: "Peter" wrote in message news:uzmb2r8zm.fsf@hotmail.com... > I'm trying to work with a file that I pasted-as-text from Acroread, in > Windows XP. I'd like to replace all of the ^L characters that show up > in this document with either nothing, or a \newline (for LaTeX). How > do I go about replacing a character like that using Emacs? > > Thank you. To replace ^L with nothing (delete): M-% C-q C-l RET RET spacebar.... then after seeing it work on a few, press ! to replace all. To replace ^L with a newline: M-% C-q C-l RET C-q C-j RET for an actual newline char 10 or .... \newline if that's what LaTeX wants. M stands for Meta (mapped to Alt on common keyboards). M-% (Alt-Shift-%) and C-q C-L C-j are keychords: While holding down the first, press the second.