From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: =?ISO-8859-1?Q?J=E9r=F4me_Radix?= Newsgroups: gmane.emacs.help Subject: Re: How to replace a character by an unprintable character ? Date: Mon, 24 Jan 2005 23:43:42 +0100 Message-ID: <41F57A1E.5020009@bigfoot.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1106606627 4421 80.91.229.6 (24 Jan 2005 22:43:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Jan 2005 22:43:47 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 24 23:43:35 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CtCvm-0004QC-00 for ; Mon, 24 Jan 2005 23:43:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CtD80-0003Tq-MK for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Jan 2005 17:56:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CtD7H-0003HQ-Pk for help-gnu-emacs@gnu.org; Mon, 24 Jan 2005 17:55:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CtD7E-0003GM-7h for help-gnu-emacs@gnu.org; Mon, 24 Jan 2005 17:55:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CtD7E-0003GJ-4i for help-gnu-emacs@gnu.org; Mon, 24 Jan 2005 17:55:24 -0500 Original-Received: from [212.247.154.225] (helo=mailfe08.swip.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CtCrY-0002MS-F3 for help-gnu-emacs@gnu.org; Mon, 24 Jan 2005 17:39:12 -0500 X-T2-Posting-ID: 3vKox7yaaV0iBXnZi8Z6QysR4v69/fylwdeqAMCkXIg= Original-Received: from [213.103.195.66] (HELO [192.168.1.100]) by mailfe08.swip.net (CommuniGate Pro SMTP 4.2.7) with ESMTP id 80617325; Mon, 24 Jan 2005 23:38:28 +0100 User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: fr, en Original-To: Drew Adams In-Reply-To: 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: main.gmane.org gmane.emacs.help:23598 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23598 Thanks Drew for your answer. I've tried that too : C-q C-m writes ^M in the replacement string, and when doing the replacement, I have the following a^Mb^Mc^Md It seems it comes from the different line separation conventions (unix dos, mac...) I can't figure out how to get a b c d without closing/reopening the file to force emacs to guess in which line separation convention to run (I don't know of a way to change it with a single command...) I keep searching... Drew Adams a écrit : > > Using M-% or C-M-% how do you replace each `;' in > a;b;c;d by a carriage return () > I've tried several things out in the replacement string without > success : > > C-q > > > `C-q C-m' (C-m is RETURN.) > >