From owner-freebsd-questions@FreeBSD.ORG Fri Oct 27 20:32:43 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D530C16A407 for ; Fri, 27 Oct 2006 20:32:43 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B76F43D45 for ; Fri, 27 Oct 2006 20:32:43 +0000 (GMT) (envelope-from roberthuff@rcn.com) Received: from mr02.lnh.mail.rcn.net ([207.172.157.22]) by smtp02.lnh.mail.rcn.net with ESMTP; 27 Oct 2006 16:32:43 -0400 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr02.lnh.mail.rcn.net (MOS 3.7.5a-GA) with ESMTP id MKW35747; Fri, 27 Oct 2006 16:32:38 -0400 (EDT) Received: from 209-6-203-219.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.203.219]) by smtp01.lnh.mail.rcn.net with ESMTP; 27 Oct 2006 16:32:36 -0400 X-IronPort-AV: i="4.09,366,1157342400"; d="scan'208"; a="301635187:sNHT4920651632" From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17730.27873.201100.949852@jerusalem.litteratus.org> Date: Fri, 27 Oct 2006 16:32:33 -0400 To: freebsd-questions@freebsd.org In-Reply-To: <4542607E.8020101@mac.com> References: <45425D61.6030209@enabled.com> <4542607E.8020101@mac.com> X-Mailer: VM 7.17 under 21.5 (beta27) "fiddleheads" XEmacs Lucid X-Junkmail-Status: score=36/50, host=mr02.lnh.mail.rcn.net X-Junkmail-SD-Raw: score=suspect(1), refid=str=0001.0A09020A.45426CAB.0012,ss=2,fgs=0, ip=207.172.4.11, so=2006-05-09 23:27:51, dmn=5.2.113/2006-07-26 Subject: Re: replacing ^M with emacs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Oct 2006 20:32:43 -0000 Peter A. Giessel writes: > On 2006/10/27 11:26, Noah seems to have typed: > > How might I get emacs to search replace > > Put a mark right before the character (control-space) move to > right after the character and cut the character (control-w). > Move to the top of the document (esc-<) and start a "query > replace" (esc-%). Yank in the character that you previously cut > (control-y). Hit return (or enter) type in the character that > you want to replace the ^M with, hit return (or enter) again. > Enter "y" or "n" for each case... Or if you're feeling lucky, type '!' and it will do them all .... Robert Huff