From owner-freebsd-questions@FreeBSD.ORG Fri Oct 27 19:39:50 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 7DC8316A403 for ; Fri, 27 Oct 2006 19:39:50 +0000 (UTC) (envelope-from pgiessel@mac.com) Received: from achilles.leela.ws (achilles.leela.ws [66.207.162.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19FB543D55 for ; Fri, 27 Oct 2006 19:39:49 +0000 (GMT) (envelope-from pgiessel@mac.com) Received: from [192.168.0.193] ([158.145.111.132]) (authenticated bits=0) by achilles.leela.ws (8.13.6/8.13.6) with ESMTP id k9RJdhJm055837 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 27 Oct 2006 11:39:43 -0800 (AKDT) (envelope-from pgiessel@mac.com) Message-ID: <4542607E.8020101@mac.com> Date: Fri, 27 Oct 2006 11:39:42 -0800 From: "Peter A. Giessel" User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.0 MIME-Version: 1.0 To: Noah References: <45425D61.6030209@enabled.com> In-Reply-To: <45425D61.6030209@enabled.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org 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 19:39:50 -0000 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...