From owner-freebsd-questions@FreeBSD.ORG Fri Oct 27 19:42:54 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 B232C16A40F for ; Fri, 27 Oct 2006 19:42:54 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id E902C43D75 for ; Fri, 27 Oct 2006 19:42:48 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-2) with ESMTP id k9RJgWH7023979 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 27 Oct 2006 22:42:33 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.8/8.13.8) with ESMTP id k9RJh8Tv088102; Fri, 27 Oct 2006 22:43:08 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.8/8.13.8/Submit) id k9RJh7Hb088101; Fri, 27 Oct 2006 22:43:07 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 27 Oct 2006 22:43:07 +0300 From: Giorgos Keramidas To: Noah Message-ID: <20061027194307.GA87997@gothmog.pc> References: <45425D61.6030209@enabled.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45425D61.6030209@enabled.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-2.546, required 5, AWL -0.15, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20, UNPARSEABLE_RELAY 0.00) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No 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:42:54 -0000 On 2006-10-27 12:26, Noah wrote: > Hi there, > > It appears that a text editor placed a bunch on ^M throughout a text > file I am working with. I assure this is equivalent to eh keystroke > control-M. Open the file in Emacs with: M-x find-file-literally RET filename RET and then replace all ^M occurences with the empty string, with: M-x replace-string RET C-q C-m RET RET The important trick here is that you use C-q to 'quote' the C-m character in the substitution string :) > also is there a mail list focused specifically on emacs usability? > please refer me to it? There are at least 2 USENET newsgroups where GNU Emacs questions can be posted: comp.emacs gnu.emacs.help I'm not sure about mailing lists, though. Regards, Giorgos